Skip to content

Commit a5a4af5

Browse files
CopilotBornToBeRoot
andcommitted
Consolidate duplicate color values with CSS variables
Co-authored-by: BornToBeRoot <[email protected]>
1 parent 37ab0a4 commit a5a4af5

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Website/src/css/custom.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616

1717
--ifm-code-font-size: 95%;
1818
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
19+
20+
/* Custom color variables */
21+
--ifm-background-dark: #2b3137;
1922
}
2023

2124
/* For readability concerns, you should choose a lighter palette in dark mode. */
@@ -33,11 +36,11 @@
3336
*/
3437

3538
.footer--dark {
36-
--ifm-footer-background-color: #2b3137;
39+
--ifm-footer-background-color: var(--ifm-background-dark);
3740
}
3841

3942
.image {
4043
display: block;
4144
margin: auto;
42-
max-width: 1060px;
45+
max-width: 1060px;
4346
}

Website/src/pages/styles.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ table {
1414
position: relative;
1515
overflow: hidden;
1616

17-
background-color: #2b3137;
17+
background-color: var(--ifm-background-dark);
1818
}
1919

2020
@media screen and (max-width: 996px) {
@@ -30,7 +30,7 @@ table {
3030
}
3131

3232
.hero {
33-
background-color: #2b3137;
33+
background-color: var(--ifm-background-dark);
3434
padding: 48px;
3535
}
3636

0 commit comments

Comments
 (0)