-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.css
221 lines (183 loc) · 4.89 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
/* 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. */
/* Font options: Sanchez (headers / serif), Nunito Sans (body / sans-serif) */
@import url('https://fonts.googleapis.com/css2?family=Sanchez&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400&display=swap');
/* Code font (Roboto Mono) */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400&display=swap');
html {
/*-- Main font sizes --*/
--title-size: 50px;
--title-weight: 400;
--body-size: 1.06rem;
--code-size: 14px;
--aside-size: 12px;
--fig-cap-size: 13px;
/*-- Main font colors --*/
--title-color: #003660;
--title-weight: 400;
--header-color: rgba(4, 124, 145, 1);
--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: Sanchez;
--mono-font: Roboto Mono;
--body-font: Nunito Sans;
--navbar-font: Nunito Sans; /* websites + blogs only */
}
/*-- 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: 20px;
--text-color: rgba(255, 255, 255, 0.8);
--text-size: 18px;
--hover-color: white;
--bkgd-color: #003660;
}
.distill-site-footer {
--text-color: rgba(255, 255, 255, 0.8);
--text-size: 15px;
--hover-color: white;
--bkgd-color: #003660;
}
/*-- Additional custom styles --*/
/* Add any additional CSS rules below */
d-article h1 {
grid-column: text;
font-size: 40px;
font-weight: 360;
line-height: 1.1em;
margin: 0 0 0.5rem;
padding-top: 30px;
}
d-article h2 {
grid-column: text;
font-size: 32px;
font-weight: 200;
line-height: 1.1em;
margin: 0 0 0.5rem;
padding-top: 30px;
}
d-article h3 {
grid-column: text;
font-size: 24px;
font-weight: 400;
line-height: 1.1em;
margin: 0 0 0.5rem;
padding-top: 20px;
padding-bottom: 15px;
}
a.title {
font-style: bold;
}
a, .nav-dropdown .nav-dropbtn {
font-weight: 500;
}
/* Formatting tables (can update here or individually) */
table, td, tr, th {
border-collapse: collapse;
font-family: Nunito Sans;
border: 1px solid gainsboro;
vertical-align: top;
}
d-article table th, d-article table td {
font-size: 15px;
padding: 2px 8px;
border: 1px solid gainsboro;
}
code {
font-family: Roboto Mono;
}
.distill-site-header a, .distill-site-header .title {
text-align: left;
padding: 14px 14px 14px 14px;
}
d-title h1 {
grid-column: text;
font-size: 40px;
font-weight: 400;
line-height: 1.1em;
margin: 0 0 0.5rem;
color: #003660;
}
/* Update toc list font */
.d-contents nav ul li {
font-size: 20px;
}
/* Add column class for two columns */
.row {
display: flex;
}
.column {
flex: 50%;
}
.columnpic {
width: 50%;
text-align: center;
/* background: lightblue; */
}
.pic {
width: 100%;
}
/* Update overall layout (body width) */
@media(min-width: 1180px) {
.base-grid,
distill-header,
d-title,
d-abstract,
d-article,
d-appendix,
distill-appendix,
d-byline,
d-footnote-list,
d-citation-list,
distill-footer {
grid-template-columns: [screen-start] 0.5fr [page-start kicker-start] 30px [middle-start] 50px [text-start kicker-end] 100px 100px 100px 100px 100px 100px 100px 100px [text-end gutter-start] 30px [middle-end] 50px [page-end gutter-end] 0.5fr [screen-end];
grid-column-gap: 20px;
}
/* Change navbar dropdown menu bg color */
.nav-dropdown-content a:hover {
background-color: #047C91;
color: black;
}
/* Custom table filtering */
* {
box-sizing: border-box;
}
#myInput {
/* background-image: url('/css/searchicon.png'); */
background-position: 10px 10px;
background-repeat: no-repeat;
width: 100%;
font-size: 16px;
padding: 12px 20px 12px 40px;
border: 1px solid #ddd;
margin-bottom: 12px;
}