-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcustom.css
More file actions
131 lines (110 loc) · 4.62 KB
/
Copy pathcustom.css
File metadata and controls
131 lines (110 loc) · 4.62 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
/**
* Copyright (c) 2026 HOOX · HOOX · jango-blockchained (hoox-sh)
* SPDX-License-Identifier: Apache-2.0
*/
/* ==========================================================================
Hoox docs — custom theming
--------------------------------------------------------------------------
docs.json `colors` only accepts { primary, light, dark } and rejects extra
keys (additionalProperties:false on colorsSchema), so secondary tokens are
defined here as CSS custom properties and applied via selectors.
Color roles
--hoox-primary #F97316 — brand (active TOC, primary CTA, logo)
--hoox-blue #2563EB — body content links (blue-600, not sky)
--hoox-blue-hover #1D4ED8 — body content links on hover (blue-700)
Left sidebar / footer / navbar secondary — white in dark, dark in light
Balance mirrors the Cloudflare dashboard: orange is reserved for primary
brand moments; everything else blends in (white in dark, near-black in light).
========================================================================== */
:root {
--hoox-blue: #2563eb;
--hoox-blue-hover: #1d4ed8;
}
/* ---------- Right sidebar "On this page" TOC -------------------------
id "table-of-contents" lives on a wrapper <div>, not the <nav>.
Tailwind generates .dark\:text-gray-400 with !important (specificity 0,2,0);
`html` prefix lifts our specificity to (0,1,2,1) so the override wins.
Inactive links → grey. Hover → white. Active → brand orange. */
html #table-of-contents a,
html #table-of-contents .toc-item a,
html #table-of-contents nav a,
html #table-of-contents ul li a {
color: #d4d4d8 !important;
}
html #table-of-contents a:hover,
html #table-of-contents .toc-item a:hover,
html #table-of-contents nav a:hover {
color: #ffffff !important;
}
html #table-of-contents a[aria-current="location"],
html #table-of-contents a[data-active="true"] {
color: #f97316 !important;
}
/* ---------- Body content links → blue (blue-600) ---------------------
Covers the main MDX article and any in-content anchor elements.
Primary CTA buttons excluded via :not([class*="button"]):not([class*="bg-"]). */
html article a:not([class*="button"]):not([class*="bg-"]),
html main a:not([class*="button"]):not([class*="bg-"]),
html #content-area a:not([class*="button"]):not([class*="bg-"]) {
color: var(--hoox-blue) !important;
}
html article a:not([class*="button"]):not([class*="bg-"]):hover,
html main a:not([class*="button"]):not([class*="bg-"]):hover,
html #content-area a:not([class*="button"]):not([class*="bg-"]):hover {
color: var(--hoox-blue-hover) !important;
}
/* ---------- Left sidebar (nav, tabs, pages) → white / dark ----------
Covers the tab bar (End User / DevOps / API Reference), the navigation
tree, and the current page indicator. Scoped to dark mode for white,
with a light-mode fallback. The right TOC is excluded by scoping to
elements that are NOT inside #content-side-layout. */
html.dark :not(#content-side-layout) > nav a,
html.dark :not(#content-side-layout) > nav button,
html.dark :not(#content-side-layout) > nav span,
html.dark aside:not(#content-side-layout *) a,
html.dark aside:not(#content-side-layout *) button,
html.dark aside:not(#content-side-layout *) span,
html.dark [data-sidebar] a,
html.dark [data-sidebar] button,
html.dark [class*="sidebar"]:not(#content-side-layout *) a,
html.dark [class*="sidebar"]:not(#content-side-layout *) button {
color: #ffffff !important;
}
html.dark [data-sidebar] a[aria-current="page"],
html.dark
[class*="sidebar"]:not(#content-side-layout *)
a[aria-current="page"] {
color: #ffffff !important;
font-weight: 600 !important;
}
:where(html:not(.dark)) :not(#content-side-layout) > nav a,
:where(html:not(.dark)) :not(#content-side-layout) > nav button,
:where(html:not(.dark)) :not(#content-side-layout) > nav span,
:where(html:not(.dark)) aside a,
:where(html:not(.dark)) [data-sidebar] a,
:where(html:not(.dark)) [data-sidebar] button,
:where(html:not(.dark)) [class*="sidebar"] a,
:where(html:not(.dark)) [class*="sidebar"] button {
color: #1f2937 !important;
}
:where(html:not(.dark)) [data-sidebar] a[aria-current="page"],
:where(html:not(.dark)) [class*="sidebar"] a[aria-current="page"] {
color: #111827 !important;
font-weight: 600 !important;
}
/* ---------- Footer → white (dark) / dark (light) ---------------------
Comprehensive coverage: text, links, headings — all descendants. */
html.dark footer,
html.dark footer * {
color: #ffffff !important;
}
html.dark footer a:hover {
color: #cbd5e1 !important;
}
footer,
footer * {
color: #1f2937 !important;
}
footer a:hover {
color: #111827 !important;
}