Skip to content

Commit fc37606

Browse files
committed
Tweak version warning styling
1 parent 41e1046 commit fc37606

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

src/css/custom.css

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,17 @@
172172
--ifm-alert-border-radius: 0;
173173
--ifm-alert-border-left-width: 3px;
174174

175+
--ifm-doc-version-banner-background: hsl(42, 72%, 96.5%);
176+
--ifm-doc-version-banner-border: hsla(33, 28%, 48%, 0.2);
177+
--ifm-doc-version-banner-text: hsl(28, 32%, 24%);
178+
--ifm-doc-version-banner-link: hsl(29, 56%, 30%);
179+
--ifm-doc-version-banner-link-hover: hsl(28, 42%, 18%);
180+
--ifm-doc-version-banner-link-decoration: hsla(29, 56%, 30%, 0.24);
181+
182+
--ifm-doc-version-badge-background: hsl(0, 0%, 100%);
183+
--ifm-doc-version-badge-border: hsla(220, 10%, 54%, 0.2);
184+
--ifm-doc-version-badge-text: hsl(220, 15%, 18%);
185+
175186
--ifm-toc-border-color: var(--ifm-color-emphasis-200);
176187

177188
--ifm-code-padding-horizontal: 0.3em;
@@ -315,6 +326,17 @@
315326
85%
316327
);
317328

329+
--ifm-doc-version-banner-background: hsla(32, 18%, 18%, 0.72);
330+
--ifm-doc-version-banner-border: hsla(36, 22%, 46%, 0.24);
331+
--ifm-doc-version-banner-text: hsl(42, 38%, 88%);
332+
--ifm-doc-version-banner-link: hsl(41, 82%, 76%);
333+
--ifm-doc-version-banner-link-hover: hsl(46, 96%, 86%);
334+
--ifm-doc-version-banner-link-decoration: hsla(41, 82%, 76%, 0.28);
335+
336+
--ifm-doc-version-badge-background: hsl(225, 18%, 18%);
337+
--ifm-doc-version-badge-border: hsla(220, 16%, 48%, 0.32);
338+
--ifm-doc-version-badge-text: hsl(220, 20%, 92%);
339+
318340
--ifm-toc-border-color: #31343a;
319341

320342
--docusaurus-highlighted-code-line-bg: rgba(136, 104, 49, 0.4);
@@ -973,6 +995,54 @@ samp {
973995
display: none;
974996
}
975997

998+
.theme-doc-version-banner {
999+
padding: 0.875rem 1rem;
1000+
border: 1px solid var(--ifm-doc-version-banner-border);
1001+
border-radius: var(--ifm-global-radius);
1002+
background: var(--ifm-doc-version-banner-background);
1003+
color: var(--ifm-doc-version-banner-text);
1004+
1005+
& > div {
1006+
max-width: 46rem;
1007+
}
1008+
1009+
& > .margin-top--md {
1010+
margin-top: 0 !important;
1011+
}
1012+
1013+
& b {
1014+
font-weight: 600;
1015+
}
1016+
1017+
& a {
1018+
color: var(--ifm-doc-version-banner-link);
1019+
text-decoration-color: var(--ifm-doc-version-banner-link-decoration);
1020+
text-decoration-thickness: 0.08em;
1021+
text-underline-offset: 0.2em;
1022+
1023+
&:hover {
1024+
color: var(--ifm-doc-version-banner-link-hover);
1025+
text-decoration-color: currentColor;
1026+
}
1027+
}
1028+
}
1029+
1030+
.theme-doc-version-badge {
1031+
padding: 0.375rem 0.75rem;
1032+
border: 1px solid var(--ifm-doc-version-badge-border);
1033+
border-radius: 999px;
1034+
background: var(--ifm-doc-version-badge-background);
1035+
color: var(--ifm-doc-version-badge-text);
1036+
font-size: 0.8125rem;
1037+
font-weight: 600;
1038+
}
1039+
1040+
@media (max-width: 640px) {
1041+
.theme-doc-version-banner {
1042+
padding: 0.8125rem 0.9375rem;
1043+
}
1044+
}
1045+
9761046
.theme-admonition {
9771047
--ifm-alert-padding-vertical: 0;
9781048
--ifm-alert-foreground-color: var(--ifm-alert-border-color);

0 commit comments

Comments
 (0)