forked from gajus/contents
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.css
57 lines (53 loc) · 1.22 KB
/
main.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
* {
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; }
#contents ol {
counter-reset: section;
list-style-type: none; }
#contents li:before {
counter-increment: section;
content: counters(section, '.') '. '; }
#contents > ol {
background: #FFF8DC;
border: 1px solid #E0DCBF;
padding: 10px; }
#contents a {
color: #0000ee;
text-decoration: none; }
#contents a:hover {
text-decoration: underline; }
article {
overflow: hidden;
position: relative;
margin: 40px 0 40px 340px;
background: #fff;
border: 1px solid #ccc;
padding: 20px 40px 40px 40px; }
article h1, article h2, article h3, article h4 {
font-size: 30px;
line-height: 40px;
margin: 0 0 10px 0;
padding: 0;
font-weight: bold; }
article h1 {
margin: 0 0 20px 0;
padding-top: 20px; }
article h2, article h3, article h4 {
font-size: 20px;
line-height: 30px;
padding-top: 20px; }
article h3, article h4 {
font-size: 16px;
line-height: 24px; }
article p {
margin: 10px 0; }