forked from davist11/jQuery-One-Page-Nav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.css
107 lines (90 loc) · 1.13 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
body {
color: #222;
font: 16px/1.5 Helvetica, Arial, sans-serif;
}
h1,
h2,
h3,
p,
pre,
ul {
margin: 0;
padding: 0;
}
h1 {
font-size: 48px;
line-height: 1;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
line-height: 1;
margin-bottom: 1em;
}
h3 {
font-size: 16px;
line-height: 1;
margin-bottom: 1em;
}
p,
pre,
ul {
margin-bottom: 2em;
}
pre {
background: #fefefe;
border: 1px solid #dedede;
overflow-x: auto;
padding: 2em;
}
ul {
margin-left: 1em;
}
#nav {
left: 20px;
list-style: none;
margin: 0;
position: fixed;
top: 20px;
}
#nav li {
margin-bottom: 2px;
}
#nav a {
background: #ededed;
color: #666;
display: block;
font-size: 14px;
padding: 5px 10px;
text-decoration: none;
text-transform: uppercase;
}
#nav a:hover {
background: #dedede;
}
#nav .current a {
background: #666;
color: #ededed;
}
#container {
margin: 0 auto;
width: 800px;
}
.section {
border-bottom: 5px solid #ccc;
min-height: 60vh;
padding: 50px 20px;
}
.section p:last-child {
margin-bottom: 0;
}