-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
335 lines (291 loc) · 7.14 KB
/
Copy pathstyle.css
File metadata and controls
335 lines (291 loc) · 7.14 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
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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
/* Basic Quarto code styling */
p.caption {
color: #777;
margin-top: 10px;
}
p code {
white-space: inherit;
}
pre {
word-break: normal;
word-wrap: normal;
}
pre code {
white-space: inherit;
}
/* Code typography (match older bookdown look: smaller + clearer) */
pre,
pre code,
.sourceCode {
font-family: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
"Liberation Mono", "Courier New", monospace;
font-size: 0.95em;
line-height: 1.55;
}
/* Reset default margins and padding */
body {
margin: 0;
padding: 0;
font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Custom layout container with CSS Grid */
.page-layout-custom {
display: grid;
grid-template-columns: 300px 1fr;
min-height: 100vh;
margin: 0;
padding: 0;
}
/* Sidebar styling - fixed 300px width, sticky position */
.sidebar {
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f4 100%);
border-right: 1px solid #dee2e6;
box-shadow: 2px 0 12px rgba(0,0,0,0.08);
z-index: 1000;
}
/* Hide collapse/expand buttons for parts */
.sidebar-item.part .sidebar-item-toggle,
.sidebar-item-section .sidebar-item-toggle,
.sidebar-part .sidebar-item-toggle {
display: none !important;
}
/* Ensure part sections are always expanded */
.sidebar-item.part .sidebar-item-container,
.sidebar-item-section .sidebar-item-container {
display: block !important;
}
/* Style the sidebar 'part' headings - Professional section headers */
.sidebar-item-section > .sidebar-item-container > .sidebar-item-text,
.sidebar-item.part,
.sidebar-part,
.sidebar-section-title {
color: #2d3748 !important;
font-weight: 600;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 1px;
margin-top: 1.5rem;
margin-bottom: 0.8rem;
padding: 0.8rem 0;
background: none;
border: none;
border-bottom: 2px solid #e2e8f0;
box-shadow: none;
pointer-events: none;
position: relative;
}
.sidebar-item-section > .sidebar-item-container > .sidebar-item-text::after,
.sidebar-item.part::after,
.sidebar-part::after,
.sidebar-section-title::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 40px;
height: 2px;
background: linear-gradient(90deg, #6b7280 0%, #9ca3af 100%);
}
/* Chapter/page links styling - Professional gray links */
.sidebar-item {
border-radius: 0;
margin: 0;
transition: all 0.3s ease;
position: relative;
}
.sidebar-item .sidebar-item-text {
color: #4b5563;
font-weight: 400;
padding: 0.6rem 0;
border-radius: 0;
transition: all 0.3s ease;
display: block;
border-left: none;
background: none;
text-decoration: none;
position: relative;
font-size: 0.95rem;
line-height: 1.4;
}
.sidebar-item .sidebar-item-text:hover {
background-color: transparent;
color: #1f2937;
border-left: none;
transform: translateX(3px);
box-shadow: none;
text-decoration: none;
}
/* Active page styling - Professional gray accent */
.sidebar-item .sidebar-item-text.active {
background: none !important;
color: #111827 !important;
font-weight: 600 !important;
border-left: 3px solid #51555c !important;
box-shadow: none !important;
transform: translateX(0px);
padding-left: 0.5rem;
}
/* Override any blue active states */
.sidebar-item .sidebar-item-text.active,
.sidebar-item.active .sidebar-item-text,
.sidebar-item .sidebar-item-text[aria-current],
.sidebar-item .sidebar-item-text[aria-current="page"] {
background: none !important;
color: #111827 !important;
font-weight: 600 !important;
border-left: 3px solid #4b5563 !important;
border-color: #4b5563 !important;
box-shadow: none !important;
}
/* Nested items (subsections) - Refined hierarchy */
.sidebar-item .sidebar-item .sidebar-item-text {
padding-left: 1.5rem;
font-size: 0.87rem;
font-weight: 400;
color: #9ca3af;
border-left: none;
background-color: transparent;
position: relative;
}
.sidebar-item .sidebar-item .sidebar-item-text:hover {
border-left: none;
background-color: transparent;
color: #6b7280;
transform: translateX(2px);
}
/* Professional content link styling - Override all blue links */
a {
color: #4b5563 !important;
text-decoration: none !important;
}
a:hover {
color: #1f2937 !important;
text-decoration: underline !important;
}
a:visited {
color: #6b7280 !important;
}
/* More specific targeting for content areas */
main.content a,
.content a,
article a,
.page-layout-body a,
#quarto-content a,
.quarto-container a {
color: #444951 !important;
text-decoration: none !important;
font-weight: 500;
transition: all 0.2s ease;
}
main.content a:hover,
.content a:hover,
article a:hover,
.page-layout-body a:hover,
#quarto-content a:hover,
.quarto-container a:hover {
color: #1f2937 !important;
text-decoration: underline !important;
}
main.content a:visited,
.content a:visited,
article a:visited,
.page-layout-body a:visited,
#quarto-content a:visited,
.quarto-container a:visited {
color: #6b7280 !important;
}
/* Code links should remain distinct */
code a,
pre a {
color: inherit !important;
text-decoration: none !important;
}
/* Section dividers - Subtle spacing */
.sidebar-item-section {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
padding-top: 0;
border-top: none;
}
.sidebar-item-section:first-child {
border-top: none;
padding-top: 0;
}
/* Elegant scrollbar styling for sidebar */
.sidebar-navigation::-webkit-scrollbar {
width: 5px;
}
.sidebar-navigation::-webkit-scrollbar-track {
background: rgba(0,0,0,0.05);
border-radius: 3px;
}
.sidebar-navigation::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #9ca3af 0%, #6b7280 100%);
border-radius: 3px;
}
.sidebar-navigation::-webkit-scrollbar-thumb:hover {
background: linear-gradient(180deg, #6b7280 0%, #4b5563 100%);
}
/* Responsive design for mobile devices */
@media (max-width: 768px) {
.page-layout-custom {
grid-template-columns: 1fr;
grid-template-rows: auto 1fr;
}
.sidebar {
position: relative;
height: auto;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
border-right: none;
border-bottom: 1px solid #dee2e6;
}
.main-content {
grid-template-columns: 0.5fr 4fr 0.5fr;
padding: 1rem 0;
}
.content-center {
padding: 1rem;
}
.sidebar-item .sidebar-item-text {
padding: 0.5rem 0;
font-size: 0.9rem;
}
.sidebar-navigation {
padding: 1rem 0.8rem;
}
}
/* Additional responsive breakpoint for tablets */
@media (min-width: 769px) and (max-width: 1024px) {
.main-content {
grid-template-columns: 0.5fr 4fr 0.5fr;
}
}
/* Large screens - maintain the 1/5, 3/5, 1/5 ratio */
@media (min-width: 1200px) {
.main-content {
grid-template-columns: 1fr 3fr 1fr;
}
.content-center {
padding: 3rem;
}
}
/* Callout Box Styles */
.callout-box {
border-left: 4px solid #007acc;
background-color: #f5f8fa;
padding: 1em 1.2em;
margin: 1.5em 0;
border-radius: 4px;
font-size: 0.95em;
line-height: 1.6;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
/* Optional modifier for info-type callouts */
.callout-box.info {
border-color: #007acc;
background-color: #f0f8ff;
}