Repository navigation
Expand file tree
/
Copy pathstyles.scss
More file actions
221 lines (175 loc) · 4.68 KB
/
Copy pathstyles.scss
File metadata and controls
221 lines (175 loc) · 4.68 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
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
/*-- scss:uses --*/
// Fraunces (variable serif) for headings, Atkinson Hyperlegible for body,
// JetBrains Mono for code. One request for all three families.
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..800,0..100,0..1;1,9..144,300..800,0..100,0..1&family=JetBrains+Mono:ital,wght@0,400;0,600;1,400&display=swap');
/*-- scss:defaults --*/
// Shared by light.scss and dark.scss. Typography and shape only: NO colours
// here. Everything uses !default so the palette files always win.
// https://quarto.org/docs/output-formats/html-themes.html#sass-variables
$font-family-sans-serif: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !default;
$headings-font-family: "Fraunces", Georgia, "Times New Roman", serif !default;
$font-family-monospace: "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace !default;
$headings-font-weight: 600 !default;
$font-size-root: 17px !default;
$border-radius: .5rem !default;
$border-radius-lg: .75rem !default;
$code-block-border-left: false !default;
$callout-border-width: 4px !default;
/*-- scss:rules --*/
// ~*~ Home page (about / trestles template) ~*~
div.quarto-about-trestles {
.about-entity {
padding-top: 3em;
.bi {
color: $site-olive;
font-size: 32px;
}
.about-link {
border: 0;
border-radius: $border-radius;
color: $site-olive;
&:hover {
background-color: $site-surface;
}
}
.title {
// Gradient-filled name with an olive underline
font-family: $headings-font-family;
font-weight: 800;
font-size: 2.75rem;
line-height: 1.1;
font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
background: linear-gradient(183deg, $wordart-from 10%, $wordart-to 70%);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
text-decoration: underline;
text-decoration-color: $site-olive;
text-decoration-thickness: 3px;
text-underline-offset: 6px;
padding-bottom: 0.5em;
padding-top: 0.3em;
}
}
.about-contents {
padding-top: 3em;
// Get rid of the vertical border from the trestles template
@include media-breakpoint-up(lg) {
border-left: solid 0px $border-color;
padding-left: 1.5em;
}
.fa-solid,
.fa-brands {
color: $site-olive;
}
p {
margin-bottom: 0.5rem;
}
}
}
// Experience / Education grid on the home page
.about-cv {
h2 {
margin-top: 0.5rem;
}
.cv-item {
margin-bottom: 1.5rem;
p {
margin-bottom: 0.5rem;
}
}
}
// ~*~ Navbar ~*~
.navbar {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
footer.footer .nav-footer,
#quarto-header nav {
padding-left: 2em;
padding-right: 1em;
}
.navbar-title {
font-family: $headings-font-family;
font-weight: 700;
letter-spacing: 1px;
}
.menu-text {
font-weight: 600;
}
// ~*~ Blog listing (posts.qmd) ~*~
.quarto-grid-item.card {
border: 1px solid $site-line;
border-radius: $border-radius-lg;
overflow: hidden;
transition: transform 0.15s ease, box-shadow 0.15s ease;
&:hover {
transform: translateY(-2px);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.card-img-top img {
object-fit: cover;
}
// Posts without an image get a themed placeholder instead of a blank block
.listing-item-img-placeholder {
background: linear-gradient(135deg, $site-olive-deep, $site-sage);
display: flex;
align-items: center;
justify-content: center;
&::after {
content: "~";
font-family: $headings-font-family;
font-size: 2.5rem;
color: $site-bg;
opacity: 0.85;
}
}
.listing-title {
font-family: $headings-font-family;
color: $site-olive;
}
.card-attribution {
color: $site-muted;
}
.listing-categories .listing-category {
color: $site-olive !important;
border-color: $site-sage;
background: transparent;
}
}
.quarto-listing-category .category {
color: $site-muted;
&.active {
color: $site-olive;
}
}
// ~*~ Post pages ~*~
.quarto-title-meta-heading {
color: $site-muted;
}
.quarto-category {
border-color: $site-sage;
}
// Callouts: left accent bar only
.callout.callout-style-default {
border-right: 0px;
border-top: 0px;
border-bottom: 0px;
}
// ~*~ Contact form (contact.qmd) ~*~
#fs-frm {
max-width: 40rem;
.form-label {
color: $site-muted;
margin-bottom: 0.35rem;
}
.form-control {
margin-bottom: 1.25rem;
&:focus {
box-shadow: 0 0 0 0.2rem rgba($site-accent, 0.25);
}
}
textarea {
resize: vertical;
}
}