Skip to content

Commit d0c725b

Browse files
committed
feat: add tabbed package manager instructions and fix version selector styling
- Add tabbed installation commands for npm, pnpm, Yarn, and Bun in README - Fix version string color being too dark in component selector - Fix white background on version dropdown menu in dark mode
1 parent 4c119e3 commit d0c725b

2 files changed

Lines changed: 103 additions & 40 deletions

File tree

README.adoc

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,37 @@ antora antora-playbook.yml
6161

6262
You can also install this theme as a dev dependency:
6363

64+
[tabs]
65+
====
66+
npm::
67+
+
6468
[source,bash]
6569
----
66-
pnpm add -D antora-dark-theme
67-
# or
6870
npm install --save-dev antora-dark-theme
6971
----
7072
73+
pnpm::
74+
+
75+
[source,bash]
76+
----
77+
pnpm add -D antora-dark-theme
78+
----
79+
80+
Yarn::
81+
+
82+
[source,bash]
83+
----
84+
yarn add -D antora-dark-theme
85+
----
86+
87+
Bun::
88+
+
89+
[source,bash]
90+
----
91+
bun add -D antora-dark-theme
92+
----
93+
====
94+
7195
Then reference the supplemental UI from `node_modules`:
7296

7397
[source,yaml]

supplemental-ui/css/site-extra.css

Lines changed: 77 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ html.dark-theme .toc .toc-menu h3 {
8181
color: #ffffff;
8282
}
8383

84-
html.dark-theme .nav .nav-item.is-current-page > .nav-link {
84+
html.dark-theme .nav .nav-item.is-current-page>.nav-link {
8585
color: #ffffff;
8686
}
8787

@@ -122,22 +122,22 @@ html.dark-theme .tableblock {
122122

123123
/* All block types - more specific selectors for Antora */
124124
html.dark-theme .doc .sidebarblock,
125-
html.dark-theme .doc .sidebarblock > .content {
125+
html.dark-theme .doc .sidebarblock>.content {
126126
background-color: #25262b !important;
127127
background: #25262b !important;
128128
border-color: #373a40;
129129
}
130130

131131
html.dark-theme .doc .exampleblock,
132-
html.dark-theme .doc .exampleblock > .content {
132+
html.dark-theme .doc .exampleblock>.content {
133133
background-color: #1f2125 !important;
134134
background: #1f2125 !important;
135135
border-color: #373a40;
136136
}
137137

138138
html.dark-theme .doc .quoteblock,
139139
html.dark-theme .doc .quoteblock blockquote,
140-
html.dark-theme .doc .quoteblock > blockquote {
140+
html.dark-theme .doc .quoteblock>blockquote {
141141
background-color: #1f2125 !important;
142142
background: #1f2125 !important;
143143
border-color: #4dabf7;
@@ -150,30 +150,30 @@ html.dark-theme .doc .quoteblock cite {
150150

151151
html.dark-theme .doc .verseblock,
152152
html.dark-theme .doc .verseblock pre,
153-
html.dark-theme .doc .verseblock > pre {
153+
html.dark-theme .doc .verseblock>pre {
154154
background-color: #1f2125 !important;
155155
background: #1f2125 !important;
156156
border-color: #373a40;
157157
color: #c1c2c5;
158158
}
159159

160160
html.dark-theme .doc .literalblock,
161-
html.dark-theme .doc .literalblock > .content,
161+
html.dark-theme .doc .literalblock>.content,
162162
html.dark-theme .doc .literalblock pre {
163163
background-color: #141517 !important;
164164
background: #141517 !important;
165165
border-color: #373a40;
166166
}
167167

168168
html.dark-theme .doc .listingblock,
169-
html.dark-theme .doc .listingblock > .content {
169+
html.dark-theme .doc .listingblock>.content {
170170
background-color: #141517 !important;
171171
background: #141517 !important;
172172
border-color: #373a40;
173173
}
174174

175175
html.dark-theme .doc .openblock,
176-
html.dark-theme .doc .openblock > .content {
176+
html.dark-theme .doc .openblock>.content {
177177
background-color: transparent !important;
178178
background: transparent !important;
179179
border-color: #373a40;
@@ -183,40 +183,40 @@ html.dark-theme .doc .openblock > .content {
183183
html.dark-theme .doc details,
184184
html.dark-theme .doc details[open],
185185
html.dark-theme .doc .exampleblock[%collapsible],
186-
html.dark-theme .doc details > summary {
186+
html.dark-theme .doc details>summary {
187187
background-color: #1f2125 !important;
188188
background: #1f2125 !important;
189189
border-color: #373a40;
190190
color: #c1c2c5;
191191
}
192192

193-
html.dark-theme .doc details > summary {
193+
html.dark-theme .doc details>summary {
194194
cursor: pointer;
195195
}
196196

197-
html.dark-theme .doc details > .content {
197+
html.dark-theme .doc details>.content {
198198
background-color: #1f2125 !important;
199199
background: #1f2125 !important;
200200
}
201201

202202
/* Block titles */
203-
html.dark-theme .doc .sidebarblock > .content > .title,
204-
html.dark-theme .doc .exampleblock > .content > .title,
205-
html.dark-theme .doc .quoteblock > .title,
206-
html.dark-theme .doc .verseblock > .title,
207-
html.dark-theme .doc .literalblock > .title,
208-
html.dark-theme .doc .listingblock > .title,
209-
html.dark-theme .doc .openblock > .title {
203+
html.dark-theme .doc .sidebarblock>.content>.title,
204+
html.dark-theme .doc .exampleblock>.content>.title,
205+
html.dark-theme .doc .quoteblock>.title,
206+
html.dark-theme .doc .verseblock>.title,
207+
html.dark-theme .doc .literalblock>.title,
208+
html.dark-theme .doc .listingblock>.title,
209+
html.dark-theme .doc .openblock>.title {
210210
color: #ffffff;
211211
}
212212

213213
/* Admonition blocks - more specific selectors */
214214
html.dark-theme .doc .admonitionblock,
215-
html.dark-theme .doc .admonitionblock > table,
216-
html.dark-theme .doc .admonitionblock > table > tbody > tr,
217-
html.dark-theme .doc .admonitionblock > table > tbody > tr > td,
218-
html.dark-theme .doc .admonitionblock > table > tbody > tr > td.content,
219-
html.dark-theme .doc .admonitionblock > table > tbody > tr > td.icon {
215+
html.dark-theme .doc .admonitionblock>table,
216+
html.dark-theme .doc .admonitionblock>table>tbody>tr,
217+
html.dark-theme .doc .admonitionblock>table>tbody>tr>td,
218+
html.dark-theme .doc .admonitionblock>table>tbody>tr>td.content,
219+
html.dark-theme .doc .admonitionblock>table>tbody>tr>td.icon {
220220
background-color: #25262b !important;
221221
background: #25262b !important;
222222
}
@@ -230,37 +230,37 @@ html.dark-theme .doc .admonitionblock .title {
230230
}
231231

232232
/* Specific admonition types with subtle accent colors */
233-
html.dark-theme .doc .admonitionblock.tip > table,
234-
html.dark-theme .doc .admonitionblock.tip > table > tbody > tr,
235-
html.dark-theme .doc .admonitionblock.tip > table > tbody > tr > td {
233+
html.dark-theme .doc .admonitionblock.tip>table,
234+
html.dark-theme .doc .admonitionblock.tip>table>tbody>tr,
235+
html.dark-theme .doc .admonitionblock.tip>table>tbody>tr>td {
236236
background-color: #1a2a1a !important;
237237
background: #1a2a1a !important;
238238
}
239239

240-
html.dark-theme .doc .admonitionblock.note > table,
241-
html.dark-theme .doc .admonitionblock.note > table > tbody > tr,
242-
html.dark-theme .doc .admonitionblock.note > table > tbody > tr > td {
240+
html.dark-theme .doc .admonitionblock.note>table,
241+
html.dark-theme .doc .admonitionblock.note>table>tbody>tr,
242+
html.dark-theme .doc .admonitionblock.note>table>tbody>tr>td {
243243
background-color: #1a1a2a !important;
244244
background: #1a1a2a !important;
245245
}
246246

247-
html.dark-theme .doc .admonitionblock.warning > table,
248-
html.dark-theme .doc .admonitionblock.warning > table > tbody > tr,
249-
html.dark-theme .doc .admonitionblock.warning > table > tbody > tr > td {
247+
html.dark-theme .doc .admonitionblock.warning>table,
248+
html.dark-theme .doc .admonitionblock.warning>table>tbody>tr,
249+
html.dark-theme .doc .admonitionblock.warning>table>tbody>tr>td {
250250
background-color: #2a2a1a !important;
251251
background: #2a2a1a !important;
252252
}
253253

254-
html.dark-theme .doc .admonitionblock.caution > table,
255-
html.dark-theme .doc .admonitionblock.caution > table > tbody > tr,
256-
html.dark-theme .doc .admonitionblock.caution > table > tbody > tr > td {
254+
html.dark-theme .doc .admonitionblock.caution>table,
255+
html.dark-theme .doc .admonitionblock.caution>table>tbody>tr,
256+
html.dark-theme .doc .admonitionblock.caution>table>tbody>tr>td {
257257
background-color: #2a1a1a !important;
258258
background: #2a1a1a !important;
259259
}
260260

261-
html.dark-theme .doc .admonitionblock.important > table,
262-
html.dark-theme .doc .admonitionblock.important > table > tbody > tr,
263-
html.dark-theme .doc .admonitionblock.important > table > tbody > tr > td {
261+
html.dark-theme .doc .admonitionblock.important>table,
262+
html.dark-theme .doc .admonitionblock.important>table>tbody>tr,
263+
html.dark-theme .doc .admonitionblock.important>table>tbody>tr>td {
264264
background-color: #2a1a2a !important;
265265
background: #2a1a2a !important;
266266
}
@@ -440,7 +440,46 @@ html.dark-theme .nav-menu-toggle {
440440
filter: invert(1);
441441
}
442442

443+
/* Component/version selector in navigation */
444+
html.dark-theme .nav-panel-explore .context .version {
445+
color: #909296;
446+
}
447+
448+
html.dark-theme .nav-panel-explore .context .version:hover {
449+
color: #c1c2c5;
450+
}
451+
443452
/* Chevron icon in component/version selector */
444453
html.dark-theme .nav-panel-explore .context .version::after {
445454
filter: invert(1);
446455
}
456+
457+
/* Component/version dropdown menu */
458+
html.dark-theme .nav-panel-explore .component-menu,
459+
html.dark-theme .nav-panel-explore .versions,
460+
html.dark-theme .nav-panel-explore .component-menu ul,
461+
html.dark-theme .nav-panel-explore .component-menu li,
462+
html.dark-theme .nav-panel-explore .versions ul,
463+
html.dark-theme .nav-panel-explore .versions li {
464+
background-color: #25262b;
465+
color: #c1c2c5;
466+
}
467+
468+
html.dark-theme .nav-panel-explore .component-menu a,
469+
html.dark-theme .nav-panel-explore .versions a {
470+
color: #c1c2c5;
471+
}
472+
473+
html.dark-theme .nav-panel-explore .component-menu a:hover,
474+
html.dark-theme .nav-panel-explore .versions a:hover,
475+
html.dark-theme .nav-panel-explore .component-menu li:hover,
476+
html.dark-theme .nav-panel-explore .versions li:hover {
477+
background-color: #2c2e33;
478+
color: #ffffff;
479+
}
480+
481+
html.dark-theme .nav-panel-explore .component-menu .is-current,
482+
html.dark-theme .nav-panel-explore .versions .is-current {
483+
background-color: #2c2e33;
484+
color: #ffffff;
485+
}

0 commit comments

Comments
 (0)