-
Notifications
You must be signed in to change notification settings - Fork 4
/
styles.scss
278 lines (232 loc) · 5.48 KB
/
styles.scss
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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
/*-- scss:defaults --*/
// Import fonts (define mainfont in _quarto.yml)
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
// fonts
$nunito: 'Nunito', sans-serif;
$josefin: 'Josefin Sans', sans-serif;
// Colors
$light-green: #D1D9CE;
$medium-green: #98A08D;
$dark-green: #757B6D;
$cream: #FDFBF7;
$dark-gray: #5A5856;
$medium-gray: #64605f;
$violet: #846075;
$terracotta: #BD6E53;
//$hunter-green: #464B37;
//$terracotta-dark: #a15e47;
//$orange: #c27e00;
//$champagne: #E7CEBE;
//$purple: #9158A2;
//$burnt-orange: #ad7237;
//$blue-gray: #466060;
//$wine: #6B2737;
//$rose: #885053;
//$lime: #bdba66;
//$moss: #959252;
//$dark-brown: #424024;
//$midnight-green: #0F5257;
// Base document colors
$navbar-bg: $cream;
$navbar-fg: $medium-green;
$navbar-hl: $terracotta;//$orange;//$purple;
$body-bg: $light-green;
$body-color: $medium-gray;
$footer-bg: $cream;
$link-color: $terracotta;// $orange;//$purple;
// Inline code
$code-bg: $cream;
$code-color: $violet;//$burnt-orange;
// Code blocks
$code-block-bg: $cream;
/*-- scss:rules --*/
/* ELEMENT SELECTORS */
h1, h2, h3, h4, h5, h6 {
font-family: $josefin;
letter-spacing: 1px;
font-weight: 700;
color: $medium-gray;
}
body {
font-family: $nunito;
line-height: 1.5; // min 1.5 suggested for assistive tech
font-size: 19.5px;
font-weight: 375;//350;
}
// modify blockquote styling
blockquote {
margin: 0 0 1rem;
padding: 0.625rem 1.25rem;
border-left: 0.25rem solid $cream;
}
a {
text-decoration: none;
}
/* ID selectors */
// responsive-ish iframes (width adjusts to viewport size; couldn't figure out how to expand viewport height, so set to this size for now)
#map-size {
width: 100%;
height: 350px;
}
// landing page text
#bio {
font-size: 1.1em;
}
// landing page icon size
#landing-icons {
font-size: 1.4em;
}
// banner titles (these turned dark green after updating to Quarto v1.5.56, so forcing them to be gray again with this rule)
.quarto-title-banner h1 {
color: $medium-gray;
}
// figure caption text styling
.figure-caption {
color: $medium-gray;
font-style: italic;
}
// blockquote text styling
.blockquote {
color: $dark-gray;
}
// larger text
.large-text {
font-size: 25px;
}
// slightly smaller than default text
.small-text {
font-size: 17px;
}
// smallest text
.extra-small-text {
font-size: 14px;
}
// extra space above line of text (but not as much as <br>)
.topbr {
display: block;
margin-top: 1em;
}
// center align text
.center-text {
text-align: center;
left: 50%;
}
// right-align text
.right-align-text {
text-align: right;
}
// dark gray text
.dark-gray-text {
color: $dark-gray;
}
// gray-italic text (mostly used for captions)
.gray-italic {
color: $medium-gray;
font-style: italic;
font-size: 17px;
}
// gray background; was .quote-text-bg
.dark-green-bg {
background-color: rgba(152, 160, 141, 0.3); //rgba(166, 164, 161, 0.4);
padding-top: 5px;
padding-bottom: 5px;
padding-right: 5px;
padding-left: 8px;
border-radius: 15px;
}
// btn styling
.btn {
color: $dark-gray;
background-color: $cream; //$light-sage-green;
border-color: $dark-gray;
}
// button hover styling
.btn:hover {
color: $cream;
background-color: $terracotta;//$orange;//$purple;
border-color: $dark-gray;
}
// image styling
.img-styling {
border-radius: 2%;
border: 2px solid $medium-gray;
display: block;
margin-left: auto;
margin-right: auto;
//width: 80%;
}
// center image only
.center-img {
display: block;
margin-left: auto;
margin-right: auto;
}
/* CLASS SELECTORS (copied from inspecting site -- Quarto defined?) */
// resize logo (top left corner) see https://github.com/robertmitchellv/robertmitchellv.github.io/blob/main/custom-dark.scss
.navbar-brand img {
max-height: 50px;
width: auto;
}
// headshot shape
.rounded {
border-radius: 50px 20px 50px 20px !important;
}
// button text size (landing page)
.about-link-text {
font-size: 18px;
}
// button icon size (landing page)
.bi {
font-size: 18px;
}
// dropdown navbar text color
.dropdown-item {
color: $medium-green;
background-color: $cream;
}
// listing card styling
.card {
background-color: $cream;
//border-radius: 5.25em;
}
.callout.callout-style-default .callout-body {
background-color: $cream;
}
// listing description text styling
.description {
font-size: 25px;
}
// about page link button colors
div.quarto-about-jolla .about-link {
color: $dark-green;
}
// animate logo (rises on hover; HT Briana Barajas :) https://github.com/briana-barajas/briana-barajas.github.io/blob/main/styles.scss )
.navbar-logo {
transition: all 0.3s;
}
.navbar-logo:hover {
transform: translateY(-4px);
}
// responisve embedded slides (thanks Casey O'Hara; see https://github.com/nceas-learning-hub/coreR_test/blob/main/lh-style.css)
.slide-deck{
border: 3px solid #dee2e6;
border-top-color: rgb(222, 226, 230);
border-top-style: solid;
border-top-width: 3px;
border-right-color: rgb(222, 226, 230);
border-right-style: solid;
border-right-width: 3px;
border-bottom-color: rgb(222, 226, 230);
border-bottom-style: solid;
border-bottom-width: 3px;
border-left-color: rgb(222, 226, 230);
border-left-style: solid;
border-left-width: 3px;
border-image-source: initial;
border-image-slice: initial;
border-image-width: initial;
border-image-outset: initial;
border-image-repeat: initial;
width: 70%;
height: 475px;
}