-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
637 lines (543 loc) · 13.3 KB
/
style.css
File metadata and controls
637 lines (543 loc) · 13.3 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
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
/*-- scss:rules --*/
/* Overall page styling */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
font-size: 16px;
background: #f8f9fa !important;
min-height: 100vh;
}
/* RESPONSIVE WIDTH - adapts to screen size */
.quarto-container {
max-width: min(95vw, 1600px); /* 95% of viewport width, max 1600px */
width: 95vw;
background: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(10px);
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin: 2rem auto; /* Center it */
padding: 2rem;
}
.page-layout-article {
max-width: min(95vw, 1600px);
width: 95vw;
}
/* Header styling */
h1, h2, h3, h4, h5, h6 {
color: #2c3e50;
font-weight: 600;
margin-top: 2rem;
margin-bottom: 1rem;
}
h1 {
color: #1a252f;
border-bottom: 3px solid #2980b9;
padding-bottom: 0.5rem;
font-size: 2.2em;
}
h2 {
font-size: 1.8em;
}
h3 {
font-size: 1.5em;
}
/* Body text */
p, li, td {
font-size: 1.05em;
color: #2c3e50;
}
/* Links */
a {
color: #2980b9;
text-decoration: none;
transition: color 0.3s ease;
}
a:hover {
color: #3498db;
text-decoration: underline;
}
/* LHS Sidebar styling */
.sidebar {
background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%) !important;
border-right: 3px solid #2980b9;
}
.sidebar .sidebar-navigation .nav-link {
color: #ecf0f1 !important;
}
.sidebar .sidebar-navigation .nav-link:hover {
color: #85c1e9 !important;
background-color: rgba(133, 193, 233, 0.2) !important;
}
.sidebar .sidebar-navigation .nav-link.active {
background-color: rgba(133, 193, 233, 0.25) !important;
color: #85c1e9 !important;
font-weight: 600 !important;
}
.sidebar .sidebar-title {
color: #ecf0f1 !important;
}
.sidebar .sidebar-tools a {
color: #ecf0f1 !important;
}
.sidebar .sidebar-tools a:hover {
color: #85c1e9 !important;
}
.sidebar-navigation {
color: #ecf0f1;
}
/* RHS Panel - PROPER styling without breaking layout */
#quarto-margin-sidebar,
.margin-sidebar,
nav[role="doc-toc"],
.toc-right {
background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%) !important;
border-radius: 8px;
padding: 1rem;
}
#quarto-margin-sidebar *,
.margin-sidebar *,
nav[role="doc-toc"] *,
.toc-right * {
color: white !important;
}
#quarto-margin-sidebar a,
.margin-sidebar a,
nav[role="doc-toc"] a,
.toc-right a {
color: #ecf0f1 !important;
display: block;
padding: 0.25rem 0.5rem;
}
#quarto-margin-sidebar a:hover,
.margin-sidebar a:hover,
nav[role="doc-toc"] a:hover,
.toc-right a:hover {
color: #85c1e9 !important;
background-color: rgba(133, 193, 233, 0.1) !important;
}
/* CORRECTED: RHS TOC active section highlighting (border only) */
#quarto-margin-sidebar .nav-link.active,
nav[role="doc-toc"] .nav-link.active,
#quarto-margin-sidebar a.active,
nav[role="doc-toc"] a.active {
color: #85c1e9 !important;
font-weight: bold !important;
background-color: transparent !important; /* No background highlight */
border-left: 3px solid #85c1e9 !important; /* Light blue border */
padding-left: calc(0.5rem - 3px); /* Adjust padding for the border */
}
/* PAGINATION - Blue instead of orange */
.pagination .page-item .page-link {
color: #2980b9 !important;
border-color: #2980b9 !important;
}
.pagination .page-item.active .page-link {
background-color: #2980b9 !important;
border-color: #2980b9 !important;
color: white !important;
}
/* SEARCH RESULTS DROPDOWN - DEFINITIVE FIX for orange background */
.search-results {
border-color: #2980b9 !important;
}
/* This targets the hover state when using a mouse */
#quarto-search .aa-suggestion:hover {
background-color: rgba(41, 128, 185, 0.15) !important;
color: #2c3e50 !important;
}
/* THIS IS THE KEY FIX: A highly specific selector for the keyboard-selected item */
#quarto-search .aa-dropdown-menu .aa-suggestion.aa-cursor {
background: rgba(41, 128, 185, 0.2) !important; /* Use 'background' shorthand to override everything */
color: #2c3e50 !important; /* Ensure text remains dark and readable */
border-left: 3px solid #2980b9 !important; /* The blue accent border */
}
/* Search results highlights */
.search-match,
mark {
background-color: rgba(41, 128, 185, 0.3) !important;
color: #2c3e50 !important;
}
/* Any other orange elements that might appear */
.btn-primary,
.bg-primary {
background-color: #2980b9 !important;
border-color: #2980b9 !important;
}
.btn-primary:hover {
background-color: #3498db !important;
border-color: #3498db !important;
}
.text-primary {
color: #2980b9 !important;
}
.border-primary {
border-color: #2980b9 !important;
}
/* Code blocks */
pre {
background-color: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 6px;
padding: 1rem;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
code {
background-color: #f1f3f4;
padding: 0.2rem 0.4rem;
border-radius: 3px;
font-size: 0.95em;
}
/* Table styles */
table {
width: 100%;
border-collapse: collapse;
margin: 1.5rem 0;
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
table td:nth-child(1),
table td:nth-child(2) {
white-space: nowrap;
}
th, td {
padding: 12px 15px;
border: 1px solid #e0e0e0;
text-align: left;
color: #2c3e50;
}
tr:nth-child(even) {
background-color: #f8f9fa;
}
tr:nth-child(odd) {
background-color: #ffffff;
}
th {
background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
color: white !important;
font-weight: 600 !important;
text-transform: uppercase;
letter-spacing: 0.5px;
font-size: 0.95em;
}
tbody tr:hover {
background-color: #e3f2fd;
transition: background-color 0.2s ease;
}
/* Cards/content blocks */
.card, .callout {
background: white;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin: 1rem 0;
padding: 1.5rem;
border-left: 4px solid #2980b9;
}
/* Navigation and buttons */
.btn, button {
background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
border: none;
border-radius: 6px;
padding: 0.5rem 1rem;
color: white;
font-weight: 500;
transition: all 0.3s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn:hover, button:hover {
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
/* Your existing title meta customization */
.quarto-title-meta-heading::before {
content: "Due Date";
}
.quarto-title-meta-heading {
visibility: hidden;
position: relative;
}
.quarto-title-meta-heading::before {
visibility: visible;
position: absolute;
left: 0;
top: 0;
}
/* Footer styling */
footer, .page-footer {
background: #2c3e50 !important;
color: #ecf0f1 !important;
padding: 2rem 0;
margin-top: 3rem;
border-top: 3px solid #2980b9;
}
/* Fix for page bottom stripes */
html, body {
background: #f8f9fa !important;
}
.page-layout-article {
background: #f8f9fa !important;
}
/* Remove any unwanted alternating backgrounds */
.quarto-listing-container-default div,
.quarto-listing-container div,
.quarto-listing div,
.listing div {
background: transparent !important;
}
/* ENHANCED MOBILE-FIRST RESPONSIVE DESIGN */
@media (max-width: 1400px) {
.quarto-container {
width: 92vw;
max-width: 92vw;
}
}
@media (max-width: 1200px) {
.quarto-container {
width: 90vw;
max-width: 90vw;
}
}
@media (max-width: 768px) {
.quarto-container {
margin: 1rem auto;
padding: 1.5rem;
border-radius: 4px;
width: 95vw;
max-width: 95vw;
}
/* Hide RHS TOC on tablets to save space */
#quarto-margin-sidebar {
display: none !important;
}
/* Better table display on tablets */
table {
font-size: 0.9em;
overflow-x: auto;
display: block;
white-space: nowrap;
}
th, td {
padding: 8px 10px;
min-width: 100px;
}
body {
font-size: 15px;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.6em;
}
}
/* MOBILE PHONES - Complete mobile optimization */
@media (max-width: 576px) {
body {
font-size: 14px;
line-height: 1.5;
}
.quarto-container {
width: 100vw;
max-width: 100vw;
padding: 1rem;
margin: 0.5rem auto;
border-radius: 4px;
}
/* Hide left sidebar completely on phones */
#quarto-sidebar,
.sidebar {
display: none !important;
}
/* Hide right sidebar completely on phones */
#quarto-margin-sidebar,
.margin-sidebar,
nav[role="doc-toc"] {
display: none !important;
}
/* Make content take full width */
.content,
.page-layout-article {
margin-left: 0 !important;
width: 100% !important;
max-width: 100% !important;
}
/* Mobile-friendly headers */
h1 {
font-size: 1.8em;
margin-top: 1rem;
margin-bottom: 0.8rem;
line-height: 1.2;
}
h2 {
font-size: 1.5em;
margin-top: 1rem;
margin-bottom: 0.8rem;
}
h3 {
font-size: 1.3em;
margin-top: 0.8rem;
margin-bottom: 0.6rem;
}
/* Mobile-friendly body text */
p, li, td {
font-size: 1em;
line-height: 1.6;
margin-bottom: 1rem;
}
/* Mobile-friendly tables */
table {
font-size: 0.8em;
overflow-x: auto;
display: block;
max-width: 100%;
border-radius: 4px;
}
th, td {
padding: 8px 6px;
font-size: 0.85em;
min-width: 80px;
}
/* Mobile-friendly cards */
.card, .callout {
padding: 1rem;
margin: 0.8rem 0;
border-radius: 4px;
}
/* Mobile-friendly code blocks */
pre {
padding: 0.8rem;
font-size: 0.8em;
overflow-x: auto;
}
code {
font-size: 0.8em;
}
/* Larger touch targets for mobile */
.btn, button {
padding: 0.75rem 1.2rem;
font-size: 1em;
min-height: 44px; /* Apple's recommended minimum touch target */
}
/* Mobile navigation */
.navbar-nav {
flex-direction: column;
}
.nav-link {
padding: 0.75rem 1rem;
min-height: 44px;
display: flex;
align-items: center;
}
/* Mobile pagination */
.pagination {
justify-content: center;
flex-wrap: wrap;
}
.pagination .page-link {
padding: 0.5rem 0.75rem;
min-width: 44px;
min-height: 44px;
display: flex;
align-items: center;
justify-content: center;
}
}
/* Very small screens (older phones) */
@media (max-width: 320px) {
.quarto-container {
padding: 0.5rem;
margin: 0.25rem auto;
}
body {
font-size: 13px;
}
h1 {
font-size: 1.6em;
}
h2 {
font-size: 1.4em;
}
h3 {
font-size: 1.2em;
}
table {
font-size: 0.75em;
}
th, td {
padding: 6px 4px;
min-width: 60px;
}
}
.code-copy-button,
.clipboard-button,
button[title*="Copy"],
button[aria-label*="Copy"],
pre button,
div[class*="sourceCode"] button,
.sourceCode button {
background-color: transparent !important;
background-image: none !important;
border: 1px solid #dee2e6 !important;
color: #6c757d !important;
transform: none !important;
box-shadow: none !important;
/* Make it smaller */
padding: 0.25rem 0.5rem !important;
font-size: 0.75rem !important;
min-height: auto !important;
width: auto !important;
height: auto !important;
}
.code-copy-button:hover,
.clipboard-button:hover,
button[title*="Copy"]:hover,
button[aria-label*="Copy"]:hover,
pre button:hover,
div[class*="sourceCode"] button:hover,
.sourceCode button:hover {
background-color: #f8f9fa !important;
background-image: none !important;
border-color: #adb5bd !important;
color: #495057 !important;
transform: none !important;
box-shadow: none !important;
/* Keep same smaller size on hover */
padding: 0.25rem 0.5rem !important;
font-size: 0.75rem !important;
}
/* Mobile/narrow window top navigation bar */
.navbar,
.navbar-expand-lg,
.navbar-light,
.navbar-default,
.quarto-navbar,
.navbar-brand,
.navbar-toggler,
.navbar-nav,
.navbar-header {
background-color: #2c3e50 !important;
background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
border-bottom: 3px solid #2980b9 !important;
}
/* Navigation links in the mobile bar */
.navbar .nav-link,
.navbar .navbar-nav .nav-link,
.navbar a,
.navbar-brand,
.navbar-toggler {
color: #ecf0f1 !important;
}
.navbar .nav-link:hover,
.navbar .navbar-nav .nav-link:hover,
.navbar a:hover,
.navbar-brand:hover {
color: #85c1e9 !important;
}
/* Mobile menu toggle button */
.navbar-toggler {
border-color: #85c1e9 !important;
}
.navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28236, 240, 241, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}