-
Notifications
You must be signed in to change notification settings - Fork 172
Expand file tree
/
Copy pathcustom.css
More file actions
98 lines (87 loc) · 2.96 KB
/
custom.css
File metadata and controls
98 lines (87 loc) · 2.96 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
/* Dark mode: primary CTA text on yellow button */
html.dark .bg-primary-dark span {
color: #1a1a1a !important;
}
/* Dark mode: unify navbar / sidebar / page shell with main content */
html.dark #navbar,
html.dark #sidebar,
html.dark #sidebar-content,
html.dark navbar-link,
html.dark navbar {
background-color: #211927 !important;
}
html.dark .almond-layout,
html.dark .almond-layout > div,
html.dark body {
background-color: #211927 !important;
}
html.dark #almond-background-color {
background-color: #211927 !important;
}
/* Light mode: keep shell readable; does not force dark purple */
html:not(.dark) #navbar,
html:not(.dark) #sidebar,
html:not(.dark) #sidebar-content,
html:not(.dark) navbar-link,
html:not(.dark) navbar {
background-color: #ffffff !important;
}
html:not(.dark) .almond-layout,
html:not(.dark) .almond-layout > div,
html:not(.dark) body {
background-color: #f7f6f9 !important;
}
html:not(.dark) #almond-background-color {
background-color: #f7f6f9 !important;
}
/*
* Light mode: current item = purple text (#49378B), not a full-width fill.
* Clears theme pill backgrounds on active nav tab, sidebar row, dropdown, group.
*/
html:not(.dark) .nav-tabs-item[data-active],
html:not(.dark) mobile-nav-tabs-item[data-active],
html:not(.dark) nav-dropdown-item[data-active],
html:not(.dark) sidebar-group[data-active],
html:not(.dark) #sidebar-content li[data-active],
html:not(.dark) #sidebar-content [data-active]:not([data-active] [data-active]) {
background-color: transparent !important;
box-shadow: none !important;
color: #49378b !important;
font-weight: 600 !important;
}
html:not(.dark) .nav-tabs-item[data-active] *,
html:not(.dark) mobile-nav-tabs-item[data-active] *,
html:not(.dark) nav-dropdown-item[data-active] *,
html:not(.dark) sidebar-group[data-active] *,
html:not(.dark) #sidebar-content li[data-active] a,
html:not(.dark) #sidebar-content li[data-active] *,
html:not(.dark) #sidebar-content [data-active] a,
html:not(.dark) #sidebar-content [data-active] * {
color: inherit !important;
}
/* Right TOC: same treatment — purple current heading, no block fill */
html:not(.dark) toc-item[data-active],
html:not(.dark) toc-item[data-active-deepest],
html:not(.dark) toc-item[data-active] a,
html:not(.dark) toc-item[data-active-deepest] a {
background-color: transparent !important;
color: #49378b !important;
font-weight: 600 !important;
}
/* Light mode: all page + article headings (h1–h6) use accent purple */
html:not(.dark) #header :where(h1, h2, h3, h4, h5, h6),
html:not(.dark) #content-area :where(h1, h2, h3, h4, h5, h6) {
color: #49378b !important;
}
/*
* Light mode: Comfy Cloud CTA — purple border + label (#49378B), no neon yellow fill.
*/
html:not(.dark) #navbar a[href*="comfy.org/cloud"] {
background-color: transparent !important;
color: #49378b !important;
border: 1px solid #49378b !important;
box-shadow: none !important;
}
html:not(.dark) #navbar a[href*="comfy.org/cloud"] * {
color: inherit !important;
}