UNPKG

989 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: 2;
14 text-align: left;
15}
16
17h1 {
18 font-size: 4rem;
19 display: inline-block;
20 font-weight: 100;
21 margin: 1rem auto;
22 padding: 1rem 2rem;
23}
24
25@supports (background: paint(something)) {
26 h1 {
27 /*
28 Optionally set property values.
29 This can be done at root or local scope
30 */
31 --extra-scallopRadius: 15; /* default: 10 */
32 --extra-scallopColor: #8266ff; /* default: black */
33 --extra-scallopWeight: 3; /* default: 2 */
34
35 background: paint(extra-scallopedBorder);
36 line-height: 1.5;
37 }
38
39 i {
40 --extra-scallopRadius: 5; /* default: 10 */
41 --extra-scallopColor: #00eeff; /* default: black */
42 --extra-scallopWeight: 1; /* default: 2 */
43
44 /* Must add padding to show border properly*/
45 padding: 0.75rem;
46
47 background: paint(extra-scallopedBorder);
48 }
49}
\No newline at end of file