-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
241 lines (204 loc) · 5.75 KB
/
Copy pathstyles.css
File metadata and controls
241 lines (204 loc) · 5.75 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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
/* css styles — high-contrast charcoal & off-white scheme */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:ital,wght@0,200..800;1,200..800&display=swap');
/* Route all Bootstrap/Quarto link colouring (body, TOC, footer) to the ink colour */
:root {
--paper: #f4f4f3; /* off-white used in place of pure white throughout */
--ink: #262626; /* dark charcoal used in place of pure black throughout */
--bs-link-color: #262626;
--bs-link-hover-color: #262626;
--bs-link-color-rgb: 38, 38, 38;
--bs-link-hover-color-rgb: 38, 38, 38;
}
body {
background-color: var(--paper);
color: var(--ink);
}
/* Litera theme sets paragraphs in Georgia serif; use the sans-serif body font instead */
p {
font-family: var(--bs-body-font-family);
}
h1, h2, h3, h4, h5, h6 {
color: var(--ink);
}
/* Film-title typography: uppercase, letterspaced, light weight, generous space above */
h1, h2 {
text-transform: uppercase;
letter-spacing: 0.15em;
font-weight: 300;
}
/* Keep code spans (R package names) in their true case inside headings */
h1 code, h2 code {
text-transform: none;
letter-spacing: normal;
}
h2 {
margin-top: 3rem;
}
main.content {
background: var(--paper);
padding: 1.5rem 2rem;
border: 2px solid var(--ink);
margin-top: 1.5rem;
margin-bottom: 2rem;
}
/* High-contrast links: charcoal and underlined, inverting on hover/focus */
a {
color: var(--ink);
text-decoration: underline;
}
a:hover,
a:focus {
color: var(--paper);
background-color: var(--ink);
text-decoration: none;
}
/* Charcoal navbar with off-white links, inverting on hover/focus */
.navbar {
background-color: var(--ink) !important;
}
.navbar .navbar-brand,
.navbar .nav-link {
color: var(--paper) !important;
text-transform: uppercase;
letter-spacing: 0.12em;
}
.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus,
.navbar .nav-link:hover,
.navbar .nav-link:focus {
color: var(--ink) !important;
background-color: var(--paper);
}
.nav-footer {
background-color: var(--paper);
border-top: 2px solid var(--ink);
color: #666;
}
/* Monochrome code spans: grey instead of the theme's purple */
code {
color: #666;
}
/* TOC current-section highlight and hover: monochrome instead of the theme's blue */
.sidebar nav[role="doc-toc"] ul > li > a.active,
.sidebar nav[role="doc-toc"] ul > li > ul > li > a.active {
border-left: 1px solid #666;
color: #666 !important;
}
.sidebar nav[role="doc-toc"] ul > li > a:hover,
.sidebar nav[role="doc-toc"] ul > li > ul > li > a:hover {
color: var(--ink) !important;
}
/* Space out list entries so each reference reads as a distinct unit */
main.content li {
margin-bottom: 0.9rem;
line-height: 1.55;
}
/* Indent year subheadings in the publications list (heading only, not the section body) */
h5.year-heading {
margin-left: 1.5rem;
margin-top: 2.25rem;
padding-top: 0.75rem;
border-top: 1px solid var(--ink);
color: #666;
letter-spacing: 0.1em;
}
/* Letterbox wrapper: charcoal bars above and below the banner, bleeding to the card edges */
p:has(> img.site-banner) {
position: relative;
margin: 0 -2rem 1rem;
padding: 0.833rem 0;
background: var(--ink);
}
/* On the banner-first home page, remove the card's top padding so the top bar
sits flush against the inside of the border (no negative-margin overhang) */
main.content:has(> header:empty + p > img.site-banner) {
padding-top: 0;
}
/* Vignette overlay: darkened corners over the image, between the bars */
p:has(> img.site-banner)::after {
content: "";
position: absolute;
inset: 0.833rem 0;
box-shadow: inset 0 0 120px rgba(38, 38, 38, 0.55);
pointer-events: none;
}
/* Quarto emits an empty title header on pages without a title; its bottom margin
would otherwise leave a gap between the banner and the card top */
#title-block-header:empty {
display: none;
}
/* On pages with a title, drop the banner below the heading instead of bleeding to the card top */
#title-block-header:not(:empty) + p:has(> img.site-banner) {
margin-top: 0.75rem;
}
/* Home page hero statement: large, light-weight framing line under the banner */
.hero-lead {
font-size: 1.6rem;
font-weight: 300;
line-height: 1.45;
margin: 2rem 0 2.75rem;
}
.hero-lead strong {
font-weight: 600;
}
/* Homepage section headings: two-thirds of the default h2 size (scaling the same
way as Litera's h2) so they sit below the hero lead rather than dominating it */
h2.home-h2 {
font-size: calc((1.29rem + 0.48vw) * 2 / 3);
}
/* Roles as a definition list: letterspaced label above the institution */
.roles dl {
margin-top: 0.5rem;
margin-bottom: 0;
}
.roles dt {
text-transform: uppercase;
letter-spacing: 0.12em;
font-weight: 600;
font-size: 0.95rem;
color: #666;
margin-top: 1.35rem;
}
.roles dd {
margin-left: 0;
margin-bottom: 0;
font-size: 0.9rem;
line-height: 1.5;
}
/* Profile / navigation links as bordered chips that invert on hover, echoing the
navbar and letterbox motifs rather than sitting as a plain bullet list */
.profile-links {
margin-top: 0.75rem;
}
/* Pandoc wraps the consecutive links in a <p>; lay the chips out on that element */
.profile-links,
.profile-links p {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
}
.profile-links p {
margin: 0;
}
.profile-links a {
display: inline-block;
padding: 0.5rem 1.1rem;
border: 2px solid var(--ink);
text-decoration: none;
text-transform: uppercase;
letter-spacing: 0.1em;
font-size: 0.85rem;
}
.profile-links a:hover,
.profile-links a:focus {
color: var(--paper);
background-color: var(--ink);
}
/* Full image at its natural aspect ratio, with a bleak grade: crushed blacks, pulled-down highlights */
img.site-banner {
display: block;
width: 100%;
max-width: none;
margin: 0;
filter: grayscale(100%) contrast(1.18) brightness(0.85);
}