@vantagecompute/docusaurus-theme 0.2.2 → 0.3.1
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 +1 -1
- package/src/css/custom.css +72 -16
- package/src/theme/Navbar/Logo/index.jsx +19 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vantagecompute/docusaurus-theme",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
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
|
@@ -792,24 +792,63 @@ html[data-theme='dark'] .provider-showcase-item {
|
|
|
792
792
|
}
|
|
793
793
|
|
|
794
794
|
/* ── Navbar (Vantage dark navigation) ──────────────────────────────── */
|
|
795
|
+
/*
|
|
796
|
+
* Customisable via CSS custom properties — set any of these in your
|
|
797
|
+
* project's custom.css :root {} block to override the defaults:
|
|
798
|
+
*
|
|
799
|
+
* --vantage-navbar-bg Navbar background colour
|
|
800
|
+
* --vantage-navbar-border Bottom border colour
|
|
801
|
+
* --vantage-navbar-shadow Box-shadow value
|
|
802
|
+
* --vantage-navbar-text Text / link colour
|
|
803
|
+
* --vantage-navbar-link-hover Link hover colour
|
|
804
|
+
* --vantage-navbar-logo-height Logo height
|
|
805
|
+
* --vantage-navbar-logo-hide-bp Breakpoint below which logo hides
|
|
806
|
+
* --vantage-navbar-brand-pl Left padding on the brand area
|
|
807
|
+
* --vantage-navbar-items-gap Gap between right-side items
|
|
808
|
+
* --vantage-footer-bg Footer background colour
|
|
809
|
+
* --vantage-footer-text Footer text colour
|
|
810
|
+
* --vantage-footer-title-color Footer section-title colour
|
|
811
|
+
* --vantage-footer-link-hover Footer link hover colour
|
|
812
|
+
* --vantage-footer-separator Footer separator colour
|
|
813
|
+
* --vantage-footer-logo-max-h Footer logo max-height
|
|
814
|
+
*/
|
|
795
815
|
:root {
|
|
796
816
|
--ifm-navbar-height: 64px;
|
|
817
|
+
|
|
818
|
+
/* Navbar defaults */
|
|
819
|
+
--vantage-navbar-bg: #18123B;
|
|
820
|
+
--vantage-navbar-border: rgba(255, 255, 255, 0.05);
|
|
821
|
+
--vantage-navbar-shadow: 0 1px 0 rgba(15, 16, 32, 0.08);
|
|
822
|
+
--vantage-navbar-text: #ffffff;
|
|
823
|
+
--vantage-navbar-link-hover: var(--iris-100);
|
|
824
|
+
--vantage-navbar-logo-height: 2.25rem;
|
|
825
|
+
--vantage-navbar-logo-hide-bp: 1024px;
|
|
826
|
+
--vantage-navbar-brand-pl: 6px;
|
|
827
|
+
--vantage-navbar-items-gap: 10px;
|
|
828
|
+
|
|
829
|
+
/* Footer defaults */
|
|
830
|
+
--vantage-footer-bg: var(--iris-900);
|
|
831
|
+
--vantage-footer-text: #ffffff;
|
|
832
|
+
--vantage-footer-title-color: var(--iris-200);
|
|
833
|
+
--vantage-footer-link-hover: var(--iris-200);
|
|
834
|
+
--vantage-footer-separator: rgba(255, 255, 255, 0.12);
|
|
835
|
+
--vantage-footer-logo-max-h: 60px;
|
|
797
836
|
}
|
|
798
837
|
|
|
799
838
|
.navbar {
|
|
800
|
-
background-color:
|
|
801
|
-
border-bottom: 1px solid
|
|
802
|
-
box-shadow:
|
|
839
|
+
background-color: var(--vantage-navbar-bg);
|
|
840
|
+
border-bottom: 1px solid var(--vantage-navbar-border);
|
|
841
|
+
box-shadow: var(--vantage-navbar-shadow);
|
|
803
842
|
}
|
|
804
843
|
|
|
805
844
|
.navbar__title,
|
|
806
845
|
.navbar__item,
|
|
807
846
|
.navbar__link {
|
|
808
|
-
color:
|
|
847
|
+
color: var(--vantage-navbar-text);
|
|
809
848
|
}
|
|
810
849
|
|
|
811
850
|
.navbar__items--right {
|
|
812
|
-
gap:
|
|
851
|
+
gap: var(--vantage-navbar-items-gap);
|
|
813
852
|
}
|
|
814
853
|
|
|
815
854
|
/* Remove default horizontal padding from search container - gap handles spacing */
|
|
@@ -827,15 +866,15 @@ html[data-theme='dark'] .provider-showcase-item {
|
|
|
827
866
|
}
|
|
828
867
|
|
|
829
868
|
.navbar__brand {
|
|
830
|
-
padding-left:
|
|
869
|
+
padding-left: var(--vantage-navbar-brand-pl);
|
|
831
870
|
}
|
|
832
871
|
|
|
833
872
|
.navbar__logo {
|
|
834
|
-
height:
|
|
873
|
+
height: var(--vantage-navbar-logo-height);
|
|
835
874
|
}
|
|
836
875
|
|
|
837
876
|
.navbar__link:hover {
|
|
838
|
-
color: var(--
|
|
877
|
+
color: var(--vantage-navbar-link-hover) !important;
|
|
839
878
|
}
|
|
840
879
|
|
|
841
880
|
@media (max-width: 1024px) {
|
|
@@ -1246,19 +1285,19 @@ details summary[onclick]:hover {
|
|
|
1246
1285
|
|
|
1247
1286
|
/* ── Footer ────────────────────────────────────────────────────────── */
|
|
1248
1287
|
.footer {
|
|
1249
|
-
background-color: var(--
|
|
1250
|
-
border-top: 1px solid
|
|
1288
|
+
background-color: var(--vantage-footer-bg) !important;
|
|
1289
|
+
border-top: 1px solid var(--vantage-navbar-border);
|
|
1251
1290
|
}
|
|
1252
1291
|
|
|
1253
1292
|
.footer--dark {
|
|
1254
|
-
background-color: var(--
|
|
1293
|
+
background-color: var(--vantage-footer-bg) !important;
|
|
1255
1294
|
}
|
|
1256
1295
|
|
|
1257
1296
|
.footer__title,
|
|
1258
1297
|
.footer__item,
|
|
1259
1298
|
.footer__link-item,
|
|
1260
1299
|
.footer__copyright {
|
|
1261
|
-
color:
|
|
1300
|
+
color: var(--vantage-footer-text) !important;
|
|
1262
1301
|
}
|
|
1263
1302
|
|
|
1264
1303
|
.footer__title {
|
|
@@ -1266,15 +1305,15 @@ details summary[onclick]:hover {
|
|
|
1266
1305
|
text-transform: uppercase;
|
|
1267
1306
|
letter-spacing: 0.08em;
|
|
1268
1307
|
font-weight: 700;
|
|
1269
|
-
color: var(--
|
|
1308
|
+
color: var(--vantage-footer-title-color) !important;
|
|
1270
1309
|
}
|
|
1271
1310
|
|
|
1272
1311
|
.footer__link-item:hover {
|
|
1273
|
-
color: var(--
|
|
1312
|
+
color: var(--vantage-footer-link-hover) !important;
|
|
1274
1313
|
}
|
|
1275
1314
|
|
|
1276
1315
|
.footer__separator {
|
|
1277
|
-
background-color:
|
|
1316
|
+
background-color: var(--vantage-footer-separator) !important;
|
|
1278
1317
|
}
|
|
1279
1318
|
|
|
1280
1319
|
.footer__links {
|
|
@@ -1288,7 +1327,7 @@ details summary[onclick]:hover {
|
|
|
1288
1327
|
.footer__logo {
|
|
1289
1328
|
height: auto !important;
|
|
1290
1329
|
width: auto !important;
|
|
1291
|
-
max-height:
|
|
1330
|
+
max-height: var(--vantage-footer-logo-max-h);
|
|
1292
1331
|
}
|
|
1293
1332
|
|
|
1294
1333
|
.footer__link-social {
|
|
@@ -1842,6 +1881,23 @@ article {
|
|
|
1842
1881
|
}
|
|
1843
1882
|
|
|
1844
1883
|
|
|
1884
|
+
/* ── Navbar version badge ──────────────────────────────────────────── */
|
|
1885
|
+
.navbar__brand-with-version {
|
|
1886
|
+
display: flex;
|
|
1887
|
+
align-items: center;
|
|
1888
|
+
gap: 0;
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
.navbar__version-badge {
|
|
1892
|
+
font-size: 0.7rem;
|
|
1893
|
+
font-weight: 500;
|
|
1894
|
+
opacity: 0.55;
|
|
1895
|
+
color: var(--vantage-navbar-text);
|
|
1896
|
+
white-space: nowrap;
|
|
1897
|
+
letter-spacing: 0.01em;
|
|
1898
|
+
padding-left: 6px;
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1845
1901
|
/* Chat sidebar - push layout (navbar excluded) */
|
|
1846
1902
|
.main-wrapper {
|
|
1847
1903
|
transition: margin-right 0.3s ease-in-out;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Logo from '@theme-original/Navbar/Logo';
|
|
3
|
+
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
4
|
+
|
|
5
|
+
export default function LogoWrapper(props) {
|
|
6
|
+
const {siteConfig} = useDocusaurusContext();
|
|
7
|
+
const version = siteConfig.customFields?.projectVersion;
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<div className="navbar__brand-with-version">
|
|
11
|
+
<Logo {...props} />
|
|
12
|
+
{version && (
|
|
13
|
+
<span className="navbar__version-badge">
|
|
14
|
+
{String(version).startsWith('v') ? version : `v${version}`}
|
|
15
|
+
</span>
|
|
16
|
+
)}
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
}
|