-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.css
253 lines (203 loc) · 5.69 KB
/
theme.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
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
--font-body: "Roboto",-apple-system,BlinkMacSystemFont,roboto,segoe ui,Helvetica,Arial,sans-serif;
--font-header: "Fira Sans Condensed",Tahoma,"Helvetica Neue",Helvetica,Arial,sans-serif;
--font-mono: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
--color-background: white;
--color-primary: black;
--color-primary-dark: #2F4238;
--color-secondary: #4CAF50;
--color-tertiary: #a08a74;
--color-text: #172a3a;
--color-white: #FFFFFF;
}
/* base variables */
/* Edit the CSS properties in this file to create a custom
Distill theme. Only edit values in the right column
for each row; values shown are the CSS defaults.
To return any property to the default,
you may set its value to: unset
All rows must end with a semi-colon. */
/* Optional: embed custom fonts here with `@import` */
/* This must remain at the top of this file. */
html {
/*-- Main font sizes --*/
--title-size: 50px;
--body-size: 1.06rem;
--code-size: 14px;
--aside-size: 12px;
--fig-cap-size: 13px;
/*-- Main font colors --*/
--title-color: var(--color-text);
--header-color: rgba(0, 0, 0, 0.8);
--body-color: rgba(0, 0, 0, 0.8);
--aside-color: rgba(0, 0, 0, 0.6);
--fig-cap-color: rgba(0, 0, 0, 0.6);
/*-- Specify custom fonts ~~~ must be imported above --*/
--heading-font: var(--font-header);
--mono-font: var(--font-mono);
--body-font: var(--font-body);
--navbar-font: var(--font-header);
}
/*-- ARTICLE METADATA --*/
d-byline {
--heading-size: 0.6rem;
--heading-color: rgba(0, 0, 0, 0.5);
--body-size: 0.8rem;
--body-color: rgba(0, 0, 0, 0.8);
}
/*-- ARTICLE TABLE OF CONTENTS --*/
.d-contents {
--heading-size: 18px;
--contents-size: 13px;
}
/*-- ARTICLE APPENDIX --*/
d-appendix {
--heading-size: 15px;
--heading-color: rgba(0, 0, 0, 0.65);
--text-size: 0.8em;
--text-color: rgba(0, 0, 0, 0.5);
}
/*-- WEBSITE HEADER + FOOTER --*/
/* These properties only apply to Distill sites and blogs */
.distill-site-header {
--title-size: 18px;
--text-color: var(--color-primary);
--text-size: 18px;
--hover-color: var(--color-secondary);
--bkgd-color: var(--color-background);
font-weight: 500;
}
.distill-site-footer {
--text-color: #ededeb;
--text-size: 15px;
--hover-color: var(--color-white);
--bkgd-color: var(--color-primary);
}
/*-- Additional custom styles --*/
/* Add any additional CSS rules below */
html body {
background-color: var(--color-background);
}
/* Links */
a {
color: var(--color-primary);
border-bottom: 0px;
text-decoration: none;
}
d-article a {
color: var(--color-primary);
border-bottom: 0px;
text-decoration: none;
}
a:hover, a:focus {
color: var(--color-secondary);
font-weight: 500;
border-color: var(--color-secondary);
}
d-article a:hover, a:focus {
color: var(--color-secondary);
font-weight: 500;
border-color: var(--color-secondary);
}
/* Buttons on home page */
.btn-outline-dark {
background-color: var(--color-primary);
color: var(--color-white);
border: 0px;
}
.btn-outline-dark:hover {
background-color: var(--color-secondary);
}
/* Menu */
.nav-dropdown-content a {
color: var(--color-primary);
}
.nav-dropdown-content a:hover {
background-color: var(--color-background);
}
/* Link buttons */
.icon-link {
background-color: var(--color-primary);
color: var(--color-white);
padding: 3px 5px 3px 5px;
margin: 0 2px 0 2px;
border-radius: 5px; /* Rounded edges */
}
.icon-link:hover {
background-color: var(--color-secondary);
color: var(--color-white);
}
.icon-link-details {
background-color: var(--color-primary-dark);
color: var(--color-white);
padding: 3px 5px 3px 5px;
margin: 0 2px 0 2px;
border-radius: 5px; /* Rounded edges */
}
.icon-link-details:hover {
background-color: var(--color-secondary);
color: var(--color-white);
}
/* For floating images - see lab page, for example */
.float-left img {
float:left;
padding: 5px 10px 5px 0px;
}
.float-right img {
float:right;
padding: 5px 0px 5px 10px;
}
/* Footer */
.distill-site-footer p {
margin-bottom: 0em;
}
/* Pubs page */
.pub {
margin: 0 0 0 0;
}
/* For dropping a shadow behind images */
.shadow {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
text-align: center;
}
d-article img {
margin-bottom: 10px;
}
/* Smaller spacing in bullet lists */
d-article li {
margin-bottom: 0;
}
/* Code chunks */
/* Chunk output */
d-article pre {
overflow: auto !important;
border-radius: 5px; /* Rounded edges */
font-size: 12px;
color: #fff;
background-color: #696969;
padding: 5px 5px 5px 18px;
}
/* Chunk code */
d-article div.sourceCode pre {
overflow: auto !important;
border-radius: 5px; /* Rounded edges */
background-color: #fff;
color: black;
padding: 5px 5px 5px 18px;
}
d-article div.sourceCode {
background-color: transparent;
}
.button {
background-color: #748ba0; /* Green */
}
b, strong {
color: black;
}
a:link {
color: black;
text-decoration: underline;
}
.posts-list .post-preview .thumbnail img { width: 30%; display: inline; }