jaandrle revised this gist 6 months ago. Go to revision
1 file changed, 1 insertion
progressiveenhancement.css
| @@ -9,6 +9,7 @@ | |||
| 9 | 9 | } | |
| 10 | 10 | h1 { | |
| 11 | 11 | text-wrap: balance; /* pretty */ | |
| 12 | + | text-align-last: center; | |
| 12 | 13 | } | |
| 13 | 14 | .text-box-trim { | |
| 14 | 15 | text-box-trim: both; | |
jaandrle revised this gist 6 months ago. Go to revision
1 file changed, 1 insertion
progressiveenhancement.css
| @@ -5,6 +5,7 @@ | |||
| 5 | 5 | scrollbar-gutter: stable; | |
| 6 | 6 | transition-behavior: allow-discrete; | |
| 7 | 7 | color-scheme: light dark; | |
| 8 | + | overflow-x: clip; | |
| 8 | 9 | } | |
| 9 | 10 | h1 { | |
| 10 | 11 | text-wrap: balance; /* pretty */ | |
jaandrle revised this gist 6 months ago. Go to revision
1 file changed, 4 insertions, 1 deletion
progressiveenhancement.css
| @@ -1,10 +1,13 @@ | |||
| 1 | + | :root { | |
| 2 | + | interpolate-size: allow-keywords; | |
| 3 | + | } | |
| 1 | 4 | .container { | |
| 2 | 5 | scrollbar-gutter: stable; | |
| 3 | 6 | transition-behavior: allow-discrete; | |
| 4 | 7 | color-scheme: light dark; | |
| 5 | 8 | } | |
| 6 | 9 | h1 { | |
| 7 | - | text-wrap: balance; | |
| 10 | + | text-wrap: balance; /* pretty */ | |
| 8 | 11 | } | |
| 9 | 12 | .text-box-trim { | |
| 10 | 13 | text-box-trim: both; | |
jaandrle revised this gist 6 months ago. Go to revision
1 file changed, 29 insertions
progressiveenhancement.css(file created)
| @@ -0,0 +1,29 @@ | |||
| 1 | + | .container { | |
| 2 | + | scrollbar-gutter: stable; | |
| 3 | + | transition-behavior: allow-discrete; | |
| 4 | + | color-scheme: light dark; | |
| 5 | + | } | |
| 6 | + | h1 { | |
| 7 | + | text-wrap: balance; | |
| 8 | + | } | |
| 9 | + | .text-box-trim { | |
| 10 | + | text-box-trim: both; | |
| 11 | + | text-box-edge: cap alphabetic; | |
| 12 | + | } | |
| 13 | + | dialog[open]{ | |
| 14 | + | display: block; /* user agent style */ | |
| 15 | + | opacity: 1; | |
| 16 | + | translate: 0 0; | |
| 17 | + | ||
| 18 | + | @starting-style { | |
| 19 | + | opacity: 0; | |
| 20 | + | translate: 0 -25vh; | |
| 21 | + | } | |
| 22 | + | } | |
| 23 | + | .alt { | |
| 24 | + | content: url(./img) / "ALT"; | |
| 25 | + | } | |
| 26 | + | /* | |
| 27 | + | https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter | |
| 28 | + | function round(), light-dark(), | |
| 29 | + | */ | |