-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle_web.css
More file actions
189 lines (184 loc) · 4.69 KB
/
style_web.css
File metadata and controls
189 lines (184 loc) · 4.69 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
@media screen {
:root {
--p1: 2.5px;
--p2: calc(2 * var(--p1));
--p4: calc(4 * var(--p1));
--p5: calc(5 * var(--p1));
--p6: calc(6 * var(--p1));
--p8: calc(8 * var(--p1));
--p16: calc(16 * var(--p1));
--sb-color: #262626;
--sidebar-color: rgb(219, 219, 219);
--page-width: 8.5in;
--sidebar-width: 2in;
--front-page-width: 6.5in; /* subtract above */
--page-height: calc(11in - var(--header-height));
--gutter: 15px;
--sb-gutter: 5px;
font-size: 15px;
}
html,
body,
.all-content,
.pages {
background-color: var(--bg-color);
width: var(--page-width);
margin: 0 auto;
position: relative;
}
html {
background-color: var(--bg-color);
}
.pages {
background-color: white;
}
/* HEADER */
.header {
}
/* SIDEBAR */
.sidebar {
font-size: 0.8rem;
width: var(--sidebar-width);
height: var(--page-height);
position: relative;
left: 0;
background-color: var(--sb-color);
color: var(--sidebar-color);
}
.sidebar section:not(.subsection) {
padding-top: var(--gutter);
padding-left: var(--gutter);
padding-right: var(--gutter);
font-size: 0.8rem;
}
.sidebar section h1,
.sidebar section h2 {
font-family: "Raleway";
font-weight: 500;
}
.sidebar section h1 {
padding-bottom: var(--p2);
font-size: 1.2rem;
}
.sidebar section h1:not(:first-of-type) {
padding-top: var(--p4);
}
.sidebar section h2 {
margin-top: 0;
padding-top: var(--p2);
padding-bottom: 5px;
font-size: 1rem;
}
.sidebar section h1:after {
/* add bottom border */
/* left: var(--gutter); */
left: 0;
width: calc(var(--sidebar-width) - 2 * var(--gutter));
border-bottom: 1px solid var(--color);
}
.sidebar .subsection {
margin-top: 0;
padding-top: 0;
}
/* .sidebar .subsection h2 {
font-size: 1rem;
padding-top: var(--sb-gutter);
} */
/* SIDEBAR.contact */
/* PAGES */
.page {
width: calc(var(--page-width) - var(--gutter));
height: var(--page-height);
margin: 0 0 0 0;
border-bottom: 1px dashed black;
position: absolute;
}
.front-page .page {
width: var(--front-page-width);
height: var(--page-height);
position: absolute;
top: var(--header-height);
left: var(--sidebar-width);
}
.front-page .page section {
width: calc(var(--front-page-width) - var(--gutter));
margin-left: var(--gutter);
margin-right: var(--gutter);
}
.page h1,
.page h2 {
font-weight: 400;
color: rgb(1, 69, 145);
font-family: Raleway;
font-size: 1.2rem;
border-bottom: 0;
}
.page h1 + h1,
.page h2 + h2 {
margin-top: var(--p4);
padding-top: 0;
}
.page h1 {
font-size: 1.2rem;
}
.page h2 {
font-size: 1rem;
}
.page h1:after {
/* add bottom border */
left: 0;
/* width: calc(var(--front-page-width) - 2 * var(--gutter)); */
width: calc(var(--front-page-width) - 2 * var(--gutter));
border-bottom: 1px solid black;
}
.front-page section {
padding-top: var(--gutter);
}
/* Page */
.page section {
font-family: "Petrona";
font-weight: 300;
}
.page section:not(:first-of-type) {
padding-top: var(--gutter);
}
.page > section > p {
line-height: 1.2;
}
/* LISTS */
/* Top level */
.page section > ul {
/* list-style: symbols(cyclic "-") outside; */
list-style-type: none;
}
.page section > ul > li p {
padding-left: var(--p4);
} /* must precede rule below */
.page section > ul > li p::first-line {
padding-left: var(--p8);
}
ul + li {
padding-top: var(--p2);
}
/* Second-level */
.page section > ul > ul {
padding-left: var(--p6);
padding-bottom: var(--p2);
}
.page section > ul > ul li::marker {
color: var(--header-bg-color);
}
.page section > ul > ul > li {
border-left: 2px solid var(--header-bg-color);
padding-left: var(--p4);
line-height: 0.1px;
margin-top: var(--p5);
margin-bottom: var(--p1);
/* margin-left: calc(0 - var(--p4)); */
}
.page section > ul > ul > li > p {
padding-bottom: var(--p1);
font-size: 0.875rem;
/* padding-left: 20px; */
}
}