forked from zachfedor/css-positioning-lab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlab-styles.css
More file actions
61 lines (55 loc) · 901 Bytes
/
lab-styles.css
File metadata and controls
61 lines (55 loc) · 901 Bytes
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
html {
background: #fefefe;
color: #444;
font-family: Helvetica, Arial, sans-serif;
font-size: calc(0.5rem + 1.25vw);
}
body {
margin: 0;
padding: 2rem;
}
h1 {
border-bottom: 4px dotted #8fbcbb;
font-family: Courier, monospace;
letter-spacing: 0.3rem;
padding-bottom: 0.5rem;
text-align: center;
}
ul {
list-style-type: none;
padding-left: 2rem;
}
li {
position: relative;
}
li:before {
color: #8fbcbb;
content: "»";
left: -1rem;
position: absolute;
}
article {
margin: 3rem 0;
}
section {
border: 2px solid #444;
margin: 3rem 0 1rem;
padding: 2rem;
position: relative;
}
section:before {
background: #444;
color: #fefefe;
content: '#'attr(id);
font-size: 0.8rem;
left: -2px;
line-height: 0.8rem;
padding: 4px 12px;
position: absolute;
top: calc(-0.8rem - 8px);
}
section:after {
content: "";
display: table;
clear: both;
}