-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
demo.css
73 lines (62 loc) · 1.1 KB
/
demo.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
::selection { background: indigo; color: seashell }
[href] { text-decoration-color: darkviolet; color: indigo }
:focus { text-decoration-color: orchid; outline-color: blueviolet }
:hover { text-decoration-color: indigo }
html {
font: 20px/1.5 sans-serif;
background: seashell;
color: #0a0b0c;
}
body {
margin: 0 auto;
padding: 1em;
max-width: 60em;
}
h1 {
font-size: 3rem;
overflow-wrap: break-word;
}
p,
h2 {
max-width: 20em;
font-size: 1.6rem;
line-height: 1.2;
overflow-wrap: break-word;
}
nav,
header,
figure,
footer {
display: block;
margin: 0 0 2rem;
}
ul {
list-style: none;
padding: 0;
}
li {
display: table;
background: lavender;
margin: 0 0 .5rem;
}
figcaption {
display: block;
font-weight: 700;
margin: 0 0 1rem;
max-width: 30em;
}
demo-item {
color: #010101;
display: block;
box-sizing: border-box;
}
demo-item:nth-child(odd) { background: violet }
demo-item:nth-child(even) { background: gold }
demo-case {
box-sizing: border-box;
display: block;
font-size: 1.5rem;
font-family: monospace;
min-height: 8rem;
background: mistyrose;
}