-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
85 lines (69 loc) · 1020 Bytes
/
index.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
body {
font-family: 'Raleway', sans-serif;
}
html, body {
height: 100%;
/*need to set margin to 0 to prevent scrollbars from showing*/
margin: 0;
}
.wrap {
/*100% of viewheight*/
height: 100vh;
display: flex;
}
.flex {
flex: 1;
display: flex;
}
nav, main {
overflow-y: scroll;
padding: 0em 2em 2em 2em;
}
nav {
flex: 1;
flex-direction: column;
}
nav a {
display: flex;
text-decoration: none;
margin-top: 1em;
margin-left: 1em;
}
a:link {
color: black;
}
a:visited {
color: black;
}
a:hover {
color: blue;
}
a:active {
color: blue;
}
section code {
margin-left: 1em;
background-color: lightgrey;
padding: .4em;
border-radius: 3px;
}
main {
flex: 3;
}
.main-doc-title {
position: fixed;
width: 100%;
background-color:white;
}
.main-doc-content {
margin-top: 4em;
}
h1 {
font-size: 1.5em;
margin-top:1em;
}
/*create top margin to factor in fixed header when jumping to sections*/
section.anchor {
padding-top: 50px;
margin-top: -50px;
}