@vantagecompute/docusaurus-theme 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vantagecompute/docusaurus-theme",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Shared Vantage Compute Docusaurus theme: design system, brand assets, and common theme overrides for all vantagecompute documentation sites.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.cjs",
|
package/src/css/custom.css
CHANGED
|
@@ -763,7 +763,9 @@ html[data-theme='dark'] .provider-showcase-item {
|
|
|
763
763
|
}
|
|
764
764
|
|
|
765
765
|
.guide-step > h2,
|
|
766
|
-
.guide-step > h3
|
|
766
|
+
.guide-step > h3,
|
|
767
|
+
.guide-step > h4,
|
|
768
|
+
.guide-step > h5 {
|
|
767
769
|
margin: 0;
|
|
768
770
|
padding: 0;
|
|
769
771
|
border-bottom: none;
|
|
@@ -773,7 +775,9 @@ html[data-theme='dark'] .provider-showcase-item {
|
|
|
773
775
|
}
|
|
774
776
|
|
|
775
777
|
.guide-step > h2 ~ *,
|
|
776
|
-
.guide-step > h3 ~
|
|
778
|
+
.guide-step > h3 ~ *,
|
|
779
|
+
.guide-step > h4 ~ *,
|
|
780
|
+
.guide-step > h5 ~ * {
|
|
777
781
|
grid-column: 1 / -1;
|
|
778
782
|
}
|
|
779
783
|
|
|
@@ -873,7 +877,8 @@ html[data-theme='dark'] .provider-showcase-item {
|
|
|
873
877
|
|
|
874
878
|
.navbar__title,
|
|
875
879
|
.navbar__item,
|
|
876
|
-
.navbar__link
|
|
880
|
+
.navbar__link,
|
|
881
|
+
.navbar__toggle {
|
|
877
882
|
color: var(--vantage-navbar-text);
|
|
878
883
|
}
|
|
879
884
|
|
|
@@ -931,6 +936,12 @@ html[data-theme='dark'] .provider-showcase-item {
|
|
|
931
936
|
margin: -7px 0;
|
|
932
937
|
}
|
|
933
938
|
|
|
939
|
+
/* Infima strokes the hamburger at 2px. At phone size on the navy bar the
|
|
940
|
+
three lines read as faint, so give them a little more weight. */
|
|
941
|
+
.navbar__toggle svg path {
|
|
942
|
+
stroke-width: 2.5;
|
|
943
|
+
}
|
|
944
|
+
|
|
934
945
|
.navbar-sidebar__close {
|
|
935
946
|
padding: 12px;
|
|
936
947
|
margin-right: -12px;
|
|
@@ -1185,8 +1196,17 @@ html[data-theme='dark'] .provider-showcase-item {
|
|
|
1185
1196
|
background: var(--iris-50);
|
|
1186
1197
|
}
|
|
1187
1198
|
|
|
1199
|
+
/* Infima draws the separator as a chevron background-image tinted by
|
|
1200
|
+
--ifm-breadcrumb-separator-filter. Recolouring it through the `background`
|
|
1201
|
+
shorthand also reset background-image, leaving a solid 7.5px square between
|
|
1202
|
+
every crumb, so the trail read as a row of tags rather than a hierarchy.
|
|
1203
|
+
Carry the chevron in a mask instead: background-color still sets the colour,
|
|
1204
|
+
and the filter is no longer needed. */
|
|
1188
1205
|
.breadcrumbs__item:not(:last-child)::after {
|
|
1189
1206
|
background: var(--ink-300);
|
|
1207
|
+
-webkit-mask: var(--ifm-breadcrumb-separator) center / contain no-repeat;
|
|
1208
|
+
mask: var(--ifm-breadcrumb-separator) center / contain no-repeat;
|
|
1209
|
+
filter: none;
|
|
1190
1210
|
opacity: 0.5;
|
|
1191
1211
|
}
|
|
1192
1212
|
|
|
@@ -2058,3 +2078,47 @@ article {
|
|
|
2058
2078
|
margin-top: 1.5rem;
|
|
2059
2079
|
}
|
|
2060
2080
|
}
|
|
2081
|
+
|
|
2082
|
+
/* ── Mermaid diagrams in dark mode ─────────────────────────────────── */
|
|
2083
|
+
|
|
2084
|
+
/* Mermaid's dark theme fills nodes with #1f2020, which sits within about 2% of
|
|
2085
|
+
the Docusaurus dark page background (#1b1b1d): a contrast ratio of 1.05:1.
|
|
2086
|
+
Node borders and label text stay legible, but the shapes lose their surfaces
|
|
2087
|
+
and read as bare wireframe outlines. Lifting the fill to #3a3d44 gives
|
|
2088
|
+
1.58:1 against the page while keeping label contrast comfortably above
|
|
2089
|
+
WCAG AA.
|
|
2090
|
+
|
|
2091
|
+
!important is required throughout: mermaid injects a stylesheet inside each
|
|
2092
|
+
SVG whose selectors are ID-scoped (#mermaid-nnn .label-container), so an
|
|
2093
|
+
author stylesheet cannot win on specificity alone. */
|
|
2094
|
+
[data-theme='dark'] .docusaurus-mermaid-container rect.label-container,
|
|
2095
|
+
[data-theme='dark'] .docusaurus-mermaid-container .node rect,
|
|
2096
|
+
[data-theme='dark'] .docusaurus-mermaid-container .node polygon,
|
|
2097
|
+
[data-theme='dark'] .docusaurus-mermaid-container .node circle,
|
|
2098
|
+
[data-theme='dark'] .docusaurus-mermaid-container .node path {
|
|
2099
|
+
fill: #3a3d44 !important;
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
/* Sequence diagrams draw their participant boxes as .actor / .labelBox rather
|
|
2103
|
+
than .node, so they need the same lift. State diagrams already use .node rect
|
|
2104
|
+
and are covered above. Notes are left alone deliberately: their accent fill
|
|
2105
|
+
is meaningful and does not collide with the page background.
|
|
2106
|
+
|
|
2107
|
+
These selectors MUST stay qualified to `rect`. Mermaid puts class="actor" on
|
|
2108
|
+
both the participant box and its label <text>, so a bare `.actor` rule would
|
|
2109
|
+
paint the label the same colour as the box. */
|
|
2110
|
+
[data-theme='dark'] .docusaurus-mermaid-container rect.actor,
|
|
2111
|
+
[data-theme='dark'] .docusaurus-mermaid-container rect.labelBox {
|
|
2112
|
+
fill: #3a3d44 !important;
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
/* The participant label itself. Mermaid's own `.actor { fill: #1f2020 }` hits
|
|
2116
|
+
the <text> as well as the box, and the rule meant to correct it,
|
|
2117
|
+
`text.actor > tspan`, never matches: these labels put their text directly in
|
|
2118
|
+
the <text> element with no tspan. So the name renders near-black, at 1.50:1
|
|
2119
|
+
on the lifted box and 1.05:1 on the page, which is why participants looked
|
|
2120
|
+
like empty rectangles. --ink-900 resolves to #f4f5fb here, giving 10:1. */
|
|
2121
|
+
[data-theme='dark'] .docusaurus-mermaid-container text.actor,
|
|
2122
|
+
[data-theme='dark'] .docusaurus-mermaid-container text.actor > tspan {
|
|
2123
|
+
fill: var(--ink-900) !important;
|
|
2124
|
+
}
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
border: none;
|
|
14
14
|
border-radius: 0;
|
|
15
15
|
background: transparent;
|
|
16
|
-
color:
|
|
16
|
+
color: var(--ifm-font-color-base);
|
|
17
17
|
transition: color 0.15s;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
/* The navbar is navy in both color modes, so the toggle is white there.
|
|
21
|
+
Anywhere else it follows the page text color. That matters in the mobile
|
|
22
|
+
drawer header, which is white in light mode and hid a white icon. The
|
|
23
|
+
drawer is a child of nav.navbar, so the scope is .navbar__inner (the bar
|
|
24
|
+
itself), not .navbar. */
|
|
25
|
+
:global(.navbar__inner) .toggleButton {
|
|
26
26
|
color: rgba(255, 255, 255, 0.85);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
color: rgba(255, 255, 255, 1)
|
|
29
|
+
:global(.navbar__inner) .toggleButton:hover {
|
|
30
|
+
color: rgba(255, 255, 255, 1);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
[data-theme='light'] .lightToggleIcon,
|