-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcustom.css
More file actions
96 lines (84 loc) · 4.7 KB
/
Copy pathcustom.css
File metadata and controls
96 lines (84 loc) · 4.7 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
/* 1) Enlarge the logo image. The theme applies `h-9` directly to <img>. */
nav a img.h-9 {
height: 120px !important; /* adjust to taste */
width: auto !important;
}
/* 2) Give the header bar enough room (the theme sets h-[60px] on the sticky header) */
body > div.sticky.top-0 {
height: 140px !important; /* slightly taller than the logo */
}
/* 3) Vertically center things after the taller header (optional nicety) */
body > div.sticky.top-0 nav {
align-items: center !important;
}
/* 0) Single source of truth for the header height */
:root { --header-h: 120px; } /* set this to your desired logo/header size */
/* 1) Make the top sticky header match the variable */
body > div.sticky.top-0 {
height: var(--header-h) !important;
min-height: var(--header-h) !important;
overflow: visible !important;
}
/* 2) Ensure in-page anchor links don't hide under the taller header */
html { scroll-padding-top: var(--header-h) !important; }
/* 3) Move fixed/sticky side panels down to clear the taller header */
/* Left ToC container (note the escaped colon in the class) */
div.fixed.xl\:article-grid { top: var(--header-h) !important; }
/* Right sticky block that had inline style top:60px */
.lg\:sticky { top: var(--header-h) !important; }
/* 4) (If needed) keep nav contents centered vertically */
body > div.sticky.top-0 nav { align-items: center !important; }
/* 5) Your logo size rule (keep whatever you settled on) */
nav a img.h-9 {
height: calc(var(--header-h) - 20px) !important; /* a little smaller than bar */
width: auto !important;
max-height: none !important;
}
/* ---------------------------------------------------------------- */
/* Notebook tag badges */
/* Higher-specificity selectors (article span.tag) with !important */
/* defeat any conflicting book-theme inline-span styling. */
/* ---------------------------------------------------------------- */
article span.tag,
.myst-card span.tag,
span.tag {
display: inline-block !important;
padding: 2px 10px !important;
margin: 3px 4px 3px 0 !important;
border-radius: 999px !important;
font-size: 0.8em !important;
font-weight: 500 !important;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
border: 1px solid transparent !important;
line-height: 1.5 !important;
white-space: nowrap !important;
vertical-align: baseline !important;
text-decoration: none !important;
background: #eceff1 !important;
color: #263238 !important;
border-color: #cfd8dc !important;
}
article span.tag-origin, span.tag-origin { background: #e3f2fd !important; color: #0d47a1 !important; border-color: #90caf9 !important; }
article span.tag-platform, span.tag-platform { background: #e8f5e9 !important; color: #1b5e20 !important; border-color: #a5d6a7 !important; }
article span.tag-dataset, span.tag-dataset { background: #fff3e0 !important; color: #bf360c !important; border-color: #ffcc80 !important; }
article span.tag-task, span.tag-task { background: #f3e5f5 !important; color: #4a148c !important; border-color: #ce93d8 !important; }
article span.tag-access, span.tag-access { background: #eceff1 !important; color: #263238 !important; border-color: #b0bec5 !important; }
article span.tag-level, span.tag-level { background: #e0f2f1 !important; color: #004d40 !important; border-color: #80cbc4 !important; }
/* Tags are rendered as markdown links wrapping styled spans, e.g.
[<span class="tag tag-origin">origin:aws</span>](tag-index#tag-origin-aws)
MyST emits the outer link as <a class="link">. Strip its default link
styling so only the pill shows, and add a subtle hover. */
a.link:has(> span.tag),
a:has(> span.tag) {
text-decoration: none !important;
color: inherit !important;
}
a:has(> span.tag):hover span.tag { filter: brightness(0.95); }
@media (prefers-color-scheme: dark) {
article span.tag-origin, span.tag-origin { background: #1e3a5f !important; color: #90caf9 !important; border-color: #1976d2 !important; }
article span.tag-platform, span.tag-platform { background: #1b3a25 !important; color: #a5d6a7 !important; border-color: #2e7d32 !important; }
article span.tag-dataset, span.tag-dataset { background: #4a2818 !important; color: #ffcc80 !important; border-color: #ef6c00 !important; }
article span.tag-task, span.tag-task { background: #3a1f4a !important; color: #ce93d8 !important; border-color: #7b1fa2 !important; }
article span.tag-access, span.tag-access { background: #2a2f33 !important; color: #b0bec5 !important; border-color: #455a64 !important; }
article span.tag-level, span.tag-level { background: #1a3530 !important; color: #80cbc4 !important; border-color: #00897b !important; }
}