-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom.css
More file actions
203 lines (178 loc) · 5.41 KB
/
Copy pathcustom.css
File metadata and controls
203 lines (178 loc) · 5.41 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
/* ============================================================
custom.css — Spatial Analysis for Environmental Science
Layers on top of cosmo. Pulls design language from cover:
Playfair Display headings, Source Code Pro code, teal accents.
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,600&family=Source+Code+Pro:wght@400;600&display=swap');
/* ------------------------------------------------------------
Navbar — thin teal top border echoes the cover accent bar
------------------------------------------------------------ */
.navbar {
border-top: 3px solid #2ecc71;
}
/* ------------------------------------------------------------
Headings — Playfair Display, teal underline accent on h1/h2
------------------------------------------------------------ */
h1, h2, h3, h4 {
font-family: 'Playfair Display', serif;
}
h1.title {
font-size: 2.4rem;
font-weight: 700;
}
h2 {
font-weight: 600;
padding-bottom: 0.3rem;
border-bottom: 1px solid #d4ede6;
margin-top: 2rem;
}
h3 {
font-weight: 600;
color: #2a5a48;
}
/* ------------------------------------------------------------
Links — teal family
------------------------------------------------------------ */
a {
color: #1a8a62;
text-decoration: none;
}
a:hover {
color: #4dd9a0;
text-decoration: underline;
}
/* ------------------------------------------------------------
Inline code — subtle teal tint, Source Code Pro
------------------------------------------------------------ */
code {
font-family: 'Source Code Pro', monospace;
font-size: 0.875em;
background-color: #f0faf5;
color: #1a6a4a;
padding: 0.15em 0.4em;
border-radius: 3px;
}
/* ------------------------------------------------------------
Code blocks — clean, slightly warm background
------------------------------------------------------------ */
pre {
font-family: 'Source Code Pro', monospace;
font-size: 0.875em;
background-color: #f8faf9;
border: 1px solid #d4ede6;
border-left: 3px solid #2ecc71;
border-radius: 4px;
padding: 1rem;
}
pre code {
background-color: transparent;
color: inherit;
padding: 0;
}
/* ------------------------------------------------------------
Blockquotes — left border in teal family
------------------------------------------------------------ */
blockquote {
border-left: 3px solid #4dd9a0;
background-color: #f5fbf8;
padding: 0.75rem 1rem;
color: #3a5a4a;
font-style: italic;
}
/* ------------------------------------------------------------
TOC — teal active/hover states
------------------------------------------------------------ */
#TOC a {
color: #444;
}
#TOC a:hover {
color: #1a8a62;
}
#TOC a.active {
color: #1a8a62;
font-weight: 600;
}
/* ------------------------------------------------------------
Sidebar nav links
------------------------------------------------------------ */
.sidebar-item-text {
font-size: 0.9rem;
}
.sidebar-item a.active {
color: #1a8a62 !important;
font-weight: 600;
}
/* ------------------------------------------------------------
Sidebar part headers — uppercase teal, visually distinct
from chapter links
------------------------------------------------------------ */
.sidebar-item-section .sidebar-section-item,
.sidebar-item-section > .sidebar-item-container > .sidebar-item-text {
text-transform: uppercase;
font-weight: 700;
letter-spacing: 0.09em;
font-size: 0.78rem;
color: #1a8a62 !important;
margin-top: 0.6rem;
}
/* Hide page breadcrumbs */
.quarto-page-breadcrumbs,
nav[aria-label="breadcrumb"],
.breadcrumb {
display: none !important;
}
/* ------------------------------------------------------------
Aside chapters — sidebar TOC
Targets by filename ("Aside" in href)
------------------------------------------------------------ */
.sidebar-item a[href*="Aside"] {
font-style: italic;
font-size: 0.85rem;
opacity: 0.75;
padding-left: 1.1em;
}
.sidebar-item a[href*="Aside"]::before {
content: "↳ ";
font-style: normal;
opacity: 0.6;
}
/* ------------------------------------------------------------
Aside chapters — chapter page
Targets .aside-chapter on the section wrapper
------------------------------------------------------------ */
.aside-chapter > h1:first-child::before {
content: "aside";
display: block;
font-family: 'Source Code Pro', monospace;
font-size: 0.75rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #4dd9a0;
opacity: 0.8;
margin-bottom: 0.3em;
}
/* ------------------------------------------------------------
Horizontal rules — thin teal gradient, echoes cover
------------------------------------------------------------ */
hr {
border: none;
height: 1px;
background: linear-gradient(90deg, #2ecc71, #3498db, transparent);
margin: 2rem 0;
}
/* ------------------------------------------------------------
Figure captions — small, muted, Source Code Pro
------------------------------------------------------------ */
.figure-caption, figcaption {
font-family: 'Source Code Pro', monospace;
font-size: 0.8rem;
color: #6a8a7a;
margin-top: 0.4rem;
}
/* ------------------------------------------------------------
Math — just a touch of breathing room
------------------------------------------------------------ */
.math.display {
margin: 1.5rem 0;
overflow-x: auto;
}