Skip to content

Commit e09b674

Browse files
committed
Fix light mode footer background colour
1 parent 3386821 commit e09b674

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

src/css/custom.css

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ body {
116116
--st-violet-50: #fcecff;
117117

118118
/* Gray */
119-
--st-gray-900: #151618;
119+
--st-gray-900: #15151d;
120120
--st-gray-850: #212226;
121121
--st-gray-825: #27282a;
122122
--st-gray-800: #2d2e34;
@@ -159,6 +159,7 @@ body {
159159
--ifm-link-decoration: underline;
160160
--docusaurus-highlighted-code-line-bg: var(--st-code-highlight-background);
161161
--ifm-heading-vertical-rhythm-bottom: 0.75;
162+
--ifm-footer-background-color: var(--st-background);
162163
--ifm-code-background: var(--st-code-highlight-background);
163164
--ifm-code-border-radius: 0.25em;
164165
--ifm-code-font-size: 95%;
@@ -301,7 +302,7 @@ body {
301302
/* tables */
302303
--ifm-table-border-color: var(--st-layout-border);
303304
--ifm-table-background: transparent;
304-
--ifm-table-stripe-background: rgba(255,255,255,0.6);
305+
--ifm-table-stripe-background: rgba(255, 255, 255, 0.6);
305306
--ifm-footer-link-color: var(--st-footer-link);
306307

307308
/* admonitions */
@@ -349,7 +350,7 @@ html[data-theme='light'] body {
349350
--st-layout-border-secondary: var(--st-gray-100);
350351
--st-code-border: var(--st-gray-100);
351352
--st-codeblock-background: white;
352-
--st-code-inline-border: 1px solid rgba(191, 227, 248, .5);/* var(--st-blue-100) in rgba */
353+
--st-code-inline-border: 1px solid rgba(191, 227, 248, 0.5); /* var(--st-blue-100) in rgba */
353354
--st-code-inline-text: var(--st-blue-900);
354355
--st-code-highlight-background: var(--st-blue-50);
355356
--st-copy-button-background: var(--st-blue-100);
@@ -413,7 +414,7 @@ html[data-theme='light'] body {
413414
--docsearch-footer-shadow: inset 0 1px 0 0 var(--st-gray-100);
414415

415416
/* tags */
416-
--st-tag-border: 1px solid rgba(191, 227, 248, .5);/* var(--st-blue-100) in rgba */
417+
--st-tag-border: 1px solid rgba(191, 227, 248, 0.5); /* var(--st-blue-100) in rgba */
417418
--st-tag-text: var(--st-blue-900);
418419
--st-tag-background: var(--st-blue-50);
419420

@@ -502,7 +503,7 @@ html[data-theme='dark'] body {
502503
--st-layout-border: var(--st-gray-700);
503504
--st-layout-border-secondary: var(--st-gray-700);
504505
--st-code-border: transparent;
505-
--st-code-inline-border: 1px solid rgba(69, 71, 79, .5);/* var(--st-gray-700) in rgba */
506+
--st-code-inline-border: 1px solid rgba(69, 71, 79, 0.5); /* var(--st-gray-700) in rgba */
506507
--st-code-inline-text: var(--st-gray-50);
507508
--st-codeblock-background: var(--st-gray-850);
508509
--st-code-highlight-background: var(--st-gray-800);
@@ -592,21 +593,17 @@ html[data-theme='dark'] body {
592593
--docsearch-footer-shadow: inset 0 1px 0 0 var(--st-gray-700);
593594

594595
/* navbar */
595-
--ifm-navbar-background-color: var(--ifm-background-color);
596+
--ifm-navbar-background-color: var(--st-navbar-background);
596597
--ifm-navbar-shadow: none;
597598

598599
/* contents list */
599600
--ifm-toc-border-color: var(--st-layout-border-secondary);
600601
--ifm-toc-link-color: var(--st-text);
601602

602603
/* tags */
603-
--st-tag-border: 1px solid rgba(69, 71, 79, .5);/* var(--st-gray-700) in rgba */
604+
--st-tag-border: 1px solid rgba(69, 71, 79, 0.5); /* var(--st-gray-700) in rgba */
604605
--st-tag-text: var(--st-gray-50);
605606
--st-tag-background: var(--st-gray-850);
606-
607-
/* background */
608-
--ifm-background-color: #15151d;
609-
--ifm-footer-background-color: var(--ifm-background-color);
610607
}
611608

612609
/* Code examples */
@@ -663,7 +660,9 @@ h1 {
663660
letter-spacing: -0.022rem;
664661
}
665662

666-
.markdown h1, .markdown h1:first-child, .index-page h1 {
663+
.markdown h1,
664+
.markdown h1:first-child,
665+
.index-page h1 {
667666
--ifm-h1-font-size: 2rem;
668667
}
669668

@@ -855,11 +854,12 @@ code {
855854
margin-right: 0;
856855
width: calc(var(--doc-sidebar-width) - 1rem);
857856
}
858-
article, .index-page {
859-
/* Let content breath some on a not-huge screen */
860-
padding-left: 2rem;
861-
padding-right: 2rem;
862-
}
857+
article,
858+
.index-page {
859+
/* Let content breath some on a not-huge screen */
860+
padding-left: 2rem;
861+
padding-right: 2rem;
862+
}
863863
}
864864

865865
.navbar__logo {
@@ -1380,7 +1380,8 @@ details summary::before {
13801380
--ifm-alert-border-color: var(--st-tip-accent);
13811381
}
13821382

1383-
.alert--danger, .alert--breakingchange {
1383+
.alert--danger,
1384+
.alert--breakingchange {
13841385
--ifm-alert-background-color: var(--st-danger-background);
13851386
--ifm-alert-background-color-highlight: var(--st-danger-accent);
13861387
--ifm-alert-foreground-color: var(--st-danger-text);
@@ -1395,7 +1396,8 @@ details summary::before {
13951396
--ifm-alert-border-color: var(--st-warning-accent);
13961397
}
13971398

1398-
.alert--v4compatible, .alert--breakingchange {
1399+
.alert--v4compatible,
1400+
.alert--breakingchange {
13991401
width: fit-content;
14001402
padding: 4px 10px;
14011403
}
@@ -1586,8 +1588,8 @@ a.link-box strong {
15861588
text-align: center;
15871589
}
15881590

1589-
.docs-intro h2:hover a.hash-link {
1590-
opacity: 0;
1591+
.docs-intro h2:hover a.hash-link {
1592+
opacity: 0;
15911593
}
15921594

15931595
.docs-intro-studio,

0 commit comments

Comments
 (0)