-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.scss
320 lines (265 loc) · 6.79 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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
/*-- scss:defaults --*/
// Fonts
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap');
// Colours
$night: #141414;
$midnight_green: #003647;
$blue: #0086b2;
$blue_green: #1f97bc;
$moonstone: #54b0cc;
$light_blue: #bce2f0;
$alice_blue: #e3f2f8;
$seasalt: #f7f7f7;
// Base Document Colours
$navbar-bg: $seasalt; // navbar
$navbar-fg: $midnight_green; // navbar foreground elements
$navbar-hl: $blue; // highlight color when hovering over navbar links
$body-bg: $seasalt; // page background
$body-color: $night; // page text
$footer-bg: $alice_blue; // footer
$link-color: $midnight_green; // hyperlinks
/*-- scss:rules --*/
/* NAVIGATION BAR */
// resize logo (top left corner) (from https://github.com/samanthacsik/samanthacsik.github.io/blob/main/green_theme.scss)
.navbar-brand img {
max-height: 50px;
width: auto;
margin-left: 10px;
}
/* BODY CONTENT */
// image styling
img {
max-width: 100%;
height: auto;
}
// listing card styling
.card {
background-color: $seasalt;
border: none;
}
.card-header {
font-weight: 400;
font-size: 1.5em;
background-color: $seasalt !important;
border: none !important;
}
// this ensures the listing cards on pages outside of the index page keep their border, white background etc
.quarto-grid-item.card-left{
background-color: white;
background-clip: border-box;
border: 1px solid rgba(0,0,0,.125);
border-radius: 0.25rem;
}
.listing-title {
text-decoration: none;
}
// container for any and all content (stops content being too wide)
.content-container {
padding-left: 1.5em;
padding-right: 1.5em;
text-align: left;
max-width: calc(1000px + 6vw);
margin: 0 auto;
padding-top: 1em;
padding-bottom: 1.8em;
box-sizing: border-box;
}
.pullout-container {
padding-left: 1.2em;
padding-right: 1.2em;
padding-top: 2.5em;
}
.pullout-block {
text-align: center;
max-width: calc(1000px + 6vw);
margin: 0 auto;
padding-top: 1em;
padding-bottom: 1.8em;
box-sizing: border-box;
}
// blue background
.blue-background {
background-color: $blue_green;
}
// invisible text
.seasalt-text {
color: $seasalt;
}
/* image gallery (based on W3 schools responsive image gallery tutorial) */
// image styling
div.gallery img {
width: 75%;
height: auto;
}
div.gallery-center {
margin: 0 auto;
text-align: center;
justify-content: center;
}
// description styling
div.desc {
padding: 15px;
text-align: center;
font-size: 1rem;
}
* {
box-sizing: border-box;
}
.responsive {
padding: 0 6px;
float: left;
width: 24.99999%;
text-align: center;
}
@media only screen and (max-width: 700px) {
.responsive {
width: 49.99999%;
margin: 6px 0;
}
}
@media only screen and (max-width: 500px) {
.responsive {
width: 100%;
}
}
.clearfix:after {
content: "";
display: table;
clear: both;
}
/* PAGE-SPECIFIC CONTENT STYLING */
// 'hero' image banner for index page
.hero {
position: relative;
width: 100vw;
height: 50vh;
display: flex;
justify-content: center;
align-items: center;
}
// add styling to hero image before placing it on page (e.g. darken photo)
.hero::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(0, 0, 0, 0.25),rgba(0, 0, 0, 0.25)), url('images/clouds_cropped.jpg');
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
}
// text to sit on top of hero image
.hero-content {
position: relative;
color: white;
text-align: center;
margin: 0.625rem;
}
/* TEXT SIZE (based on https://medium.com/@jamesweee/minimum-maximum-responsive-font-sizing-in-css-38793acc9f8f) */
h1 {
color: $midnight_green;
font-size: 1.8rem;
}
h2 {
color: $midnight_green;
break-after: false
}
.description {
font-size: 20px;
font-style: italic;
color: $midnight_green;
}
// define font size to change with size of screen/table-layout:
//screen size variables
$mobile: 500px; // Screen min
$desktop: 1200px; // Screen max
$screen-diff: ($desktop / 1px - $mobile / 1px);
//font size variables for hero-title text
$font-min-hero-title: 50px;
$font-max-hero-title: 90px;
$font-diff-hero-title: ($font-max-hero-title / 1px - $font-min-hero-title / 1px);
.hero-title {
text-align: center;
color: white;
font-weight: bold;
// Mobile
@media (max-width: 599px) {
font-size: $font-min-hero-title;
}
// Everything in between mobile (600px) to desktop (1200px)
@media (min-width: 600px) and (max-width: 1200px) {
font-size: calc(#{$font-min-hero-title} + (100vw - #{$mobile}) / #{$screen-diff} * #{$font-diff-hero-title});
}
// Desktop
@media (min-width: 1201px) {
font-size: $font-max-hero-title;
}
}
//font size variables for home-sub text (section titles on homepage)
$font-min-home-sub: 30px;
$font-max-home-sub: 40px;
$font-diff-home-sub: ($font-max-home-sub / 1px - $font-min-home-sub / 1px);
.home-sub {
text-align: center;
color: $blue_green;
font-weight: bold;
// Mobile
@media (max-width: 599px) {
font-size: $font-min-home-sub;
}
// Everything in between mobile (600px) to desktop (1200px)
@media (min-width: 600px) and (max-width: 1200px) {
font-size: calc(#{$font-min-home-sub} + (100vw - #{$mobile}) / #{$screen-diff} * #{$font-diff-home-sub});
}
// Desktop
@media (min-width: 1201px) {
font-size: $font-max-home-sub;
}
}
//font size variables for p-blue text (p text inside blue flexbox)
$font-min-p-blue: 16px;
$font-max-p-blue: 20px;
$font-diff-p-blue: ($font-max-p-blue / 1px - $font-min-p-blue / 1px);
.pullout-text p {
text-align: left;
color: $seasalt;
margin-left: 3vw;
margin-right: 3vw;
color: white;
margin-top: 0.5em;
// Mobile
@media (max-width: 599px) {
font-size: $font-min-p-blue;
}
// Everything in between mobile (600px) to desktop (1200px)
@media (min-width: 600px) and (max-width: 1200px) {
font-size: calc(#{$font-min-p-blue} + (100vw - #{$mobile}) / #{$screen-diff} * #{$font-diff-p-blue});
}
// Desktop
@media (min-width: 1201px) {
font-size: $font-max-p-blue;
}
}
//font size variables for quarto-title (page titles)
$font-min-quarto-title: 32px;
$font-max-quarto-title: 48px;
$font-diff-quarto-title: ($font-max-quarto-title / 1px - $font-min-quarto-title / 1px);
.quarto-title h1 {
text-align: left;
color: $midnight_green;
margin-top: 0.5em;
// Mobile
@media (max-width: 599px) {
font-size: $font-min-quarto-title;
}
// Everything in between mobile (600px) to desktop (1200px)
@media (min-width: 600px) and (max-width: 1200px) {
font-size: calc(#{$font-min-quarto-title} + (100vw - #{$mobile}) / #{$screen-diff} * #{$font-diff-quarto-title});
}
// Desktop
@media (min-width: 1201px) {
font-size: $font-max-quarto-title;
}
}