forked from gajus/contents
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.scss
77 lines (61 loc) · 1.38 KB
/
example.scss
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
74
75
76
77
* {
margin: 0; padding: 0;
}
body {
font: normal 16px/24px 'Helvetica Neue', Helvetica, Arial, freesans, sans-serif;
}
main {
width: 960px; margin: 0 auto; overflow: hidden;
}
#contents {
position: fixed; top: 40px; width: 320px;
ol {
counter-reset: section;
list-style-type: none;
}
li:before {
counter-increment: section;
content: counters(section, '.') '. ';
}
> ol {
background: #FFF8DC; border: 1px solid #E0DCBF; padding: 10px;
}
a {
color: #0000ee; text-decoration: none;
&:hover {
text-decoration: underline;
}
}
.active-anchor {
> a {
color: #f00;
}
}
.active-child {
> a {
&::after { content: ' (active child)'; text-decoration: none; color: #444; }
}
}
}
article {
overflow: hidden; position: relative; margin: 40px 0 40px 340px; background: #fff; border: 1px solid #ccc; padding: 20px 40px 40px 40px;
h1,
h2,
h3,
h4 {
font-size: 30px; line-height: 40px; margin: 0 0 10px 0; padding: 0; font-weight: bold;
}
h1 {
margin: 0 0 20px 0; padding-top: 20px;
}
h2,
h3,
h4 {
font-size: 20px; line-height: 30px; padding-top: 20px;
}
h3,
h4 { font-size: 16px; line-height: 24px; }
p {
margin: 10px 0;
}
}