Repository navigation
Expand file tree
/
Copy pathsidebar-groups.css
More file actions
46 lines (43 loc) · 1.54 KB
/
Copy pathsidebar-groups.css
File metadata and controls
46 lines (43 loc) · 1.54 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
/* Mobile nav drawer: 44px hit areas on the menu buttons. */
#mobile-nav button[aria-haspopup],
#mobile-nav button[aria-label*="lose" i] {
min-height: 44px;
min-width: 44px;
}
/* Theme switch: grow the hit area to 44px tall without changing the pill. */
#mobile-nav button[aria-label^="Switch to"] {
position: relative;
}
#mobile-nav button[aria-label^="Switch to"]::after {
content: "";
position: absolute;
inset: -7px 0;
}
/* Sidebar anchors (Try Graphify, Blog, Community, Changelog): the icons
are hosted SVG masks, which Mintlify paints in the link colour. Paint them
the same quiet gray as page icons, darker on hover. */
#navigation-items a.nav-anchor svg {
background-color: rgb(var(--gray-400)) !important;
}
#navigation-items a.nav-anchor:hover svg {
background-color: rgb(var(--gray-900)) !important;
}
html.dark #navigation-items a.nav-anchor svg {
background-color: rgb(var(--gray-500)) !important;
}
html.dark #navigation-items a.nav-anchor:hover svg {
background-color: rgb(var(--gray-300)) !important;
}
/* Sidebar tags such as NEW. Mintlify draws them as primary text on
bg-primary/10. Our primary colour is black in both themes, so that
chip is clear in light mode and disappears in dark mode. Keep the
default light-mode chip, and use a light translucent chip in dark
mode. Body text is set to 400 across chrome, so restore the weight
Mintlify already asks for on the tag. */
.nav-tag-pill-text {
font-weight: 600;
}
html.dark .nav-tag-pill-text {
background-color: rgb(255 255 255 / 14%);
color: #fff;
}