UNPKG

906 BCSSView Raw
1body {
2 font-family: monospace;
3 height: 100vh;
4 width: 100vw;
5 text-align: center;
6}
7
8p {
9 max-width: 660px;
10 margin: 0 auto;
11 font-weight: 300;
12 font-size: 1.2rem;
13 line-height: 1.5;
14 text-align: left;
15}
16
17h1 {
18 font-size: 4rem;
19 display: inline-block;
20 font-weight: 100;
21 margin: 1rem auto;
22}
23
24@supports (background: paint(something)) {
25 h1 {
26 /*
27 Optionally set property values.
28 This can be done at root or local scope
29 */
30 --extra-underlineNumber: 5; /* default: 3 */
31 --extra-underlineColor: #8266ff; /* default: black */
32 --extra-underlineSpread: 15; /* default: 20 */
33 --extra-underlineWidth: 1; /* default: 2 */
34
35 background: paint(extra-superUnderline);
36 line-height: 1.5;
37 }
38
39 a {
40 --extra-underlineColor: #00eeff; /* default: black */
41 --extra-underlineSpread: 10; /* default: 20 */
42
43 background: paint(extra-superUnderline);
44 }
45}
\No newline at end of file