-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
178 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
html { | ||
font-family: Calibri, Helvetica, Arial, sans-serif; | ||
} | ||
body { | ||
max-width: max-content; | ||
margin-inline: auto; | ||
} | ||
h1, h2, h3, h4, h5, h6 { | ||
font-family: Noah; | ||
max-width: max-content; | ||
margin: 0; | ||
} | ||
h2 { | ||
border-block: 1px solid #AAAAAAAA; | ||
border-block-start: 2px solid #AAAAAA; | ||
padding-block: 0.25em 0.125em; | ||
margin-block: 1em 0.5em; | ||
border-top-right-radius: 0.5em; | ||
background: linear-gradient(270deg, #AAA1, #AAA4 0.5em, #AAAA); | ||
padding-inline: 0.5em; | ||
margin-inline: -0.5em 0; | ||
text-shadow: 0 0 2px #FFF, 0 0 1px #FFF, 0 0 1px #FFF; | ||
} | ||
h3 { | ||
margin-block-start: 1em; | ||
} | ||
ol + h3 { | ||
margin-block-start: 2em; | ||
} | ||
h4 { | ||
display: block; | ||
width: 100%; | ||
padding-block: 0.33em 0.25em; | ||
padding-inline: 1em; | ||
} | ||
ol { | ||
padding: 0; | ||
margin-inline: 0; | ||
list-style: none; | ||
} | ||
details ol { | ||
columns: 2; | ||
} | ||
li { | ||
padding-block: 0.125em; | ||
} | ||
li > span { | ||
padding-inline: 1em; | ||
} | ||
ol.implementations li > span > strong { | ||
text-transform: capitalize; | ||
} | ||
|
||
.implementations > li { | ||
margin-block: 1em; | ||
} | ||
|
||
.implementations.added ol li:is(:hover, :focus, :focus-within), | ||
.implementations.added h4:has(+ ol:is(:hover, :focus-within)) { | ||
background: hsla(120deg, 50%, 90%, 1); | ||
} | ||
.implementations.removed ol li:is(:hover, :focus, :focus-within), | ||
.implementations.removed h4:has(+ ol:is(:hover, :focus-within)) { | ||
background: hsla(0deg, 50%, 93%, 1); | ||
} | ||
|
||
@supports selector(:has()) { | ||
.implementations ol li:is(:hover, :focus, :focus-within), | ||
.implementations h4:has(+ ol:is(:hover, :focus-within)) { | ||
border-radius: 0.5em; | ||
} | ||
.implementations h4:has(+ ol:is(:hover, :focus-within)) { | ||
border-bottom-left-radius: 0; | ||
} | ||
.implementations ol li:is(:hover, :focus, :focus-within) { | ||
border-radius: 0 0.5em 0.5em 0.75em; | ||
} | ||
.implementations.added ol li:has(~ li:is(:hover, :focus-within)) { | ||
border-inline-start: 0.5em solid hsla(120deg, 50%, 90%, 1); | ||
} | ||
.implementations.removed ol li:has(~ li:is(:hover, :focus-within)) { | ||
border-inline-start: 0.5em solid hsla(0deg, 50%, 93%, 1); | ||
} | ||
.implementations ol li:has(~ li:is(:hover, :focus-within)) > :first-child { | ||
padding-inline-start: 0.5em; | ||
} | ||
} | ||
|
||
@supports (grid-template-columns: subgrid) { | ||
li > span { | ||
padding-inline: 0; | ||
} | ||
.implementations > li { | ||
margin-block: 0.5em; | ||
} | ||
.implementations { | ||
display: grid; | ||
grid-template-columns: auto auto auto auto; | ||
gap: 0 1em; | ||
} | ||
.implementations ol { | ||
display: grid; | ||
grid-template-columns: subgrid; | ||
grid-column: 1 / -1; | ||
margin-inline-start: 2ch; | ||
} | ||
.implementations li { | ||
display: grid; | ||
grid-column: span 4; | ||
grid-template-columns: subgrid; | ||
} | ||
} | ||
|
||
[class^="ni"] { | ||
--niColor: hsl(120deg, 30%, 75%); | ||
--niLength: 1%; | ||
background: linear-gradient(135deg, var(--niColor) 0%, var(--niColor) calc(var(--niLength) * 33%), transparent 0); | ||
padding-inline: 1ch; | ||
} | ||
|
||
.ni1 {--niLength: 1;} | ||
.ni2 {--niLength: 2;} | ||
.ni3 {--niLength: 4; --niColor: hsl(120deg, 70%, 35%); color: #FFF; font-weight: 750;} | ||
|
||
footer { | ||
border-block-start: 1px solid #AAAAAAAA; | ||
margin-block: 3em 0; | ||
padding-block: 0.25em 1em; | ||
} | ||
|
||
.filtered li:has(>[class^="ni"]:not(.ni3)) { | ||
display: none; | ||
} |