Skip to content

Commit 0b8525f

Browse files
committed
Use pst-color-background instead of colorBackground
perl -pi -e 's:var\(\-\-colorBackground\):var(\-\-pst\-color\-background\):g' assets/theme-css/styles.css sed -i '/\-\-colorBackground\: /d' assets/theme-css/light-mode.css sed -i '/\-\-colorBackground\: /d' assets/theme-css/dark-mode.css
1 parent 5a60a7d commit 0b8525f

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

assets/theme-css/dark-mode.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/* Basically, we reassign the colors named in the non-dark theme. The
44
exception is the background: it seems to look better as #111
55
than as --colorPrimaryDark. */
6-
--colorBackground: #111;
76
--colorBackgroundAlt: var(--colorPrimaryDark);
87
--colorBackgroundAlt2: var(--colorSecondaryDark);
98

assets/theme-css/light-mode.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@media not (prefers-color-scheme: dark) {
22
:root {
33
/* Now we assign those named colors to various purposes. */
4-
--colorBackground: var(--colorSecondaryLight);
54
--colorBackgroundAlt: var(--colorPrimaryDark);
65
--colorBackgroundAlt2: var(--colorSecondaryDark);
76

assets/theme-css/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ svg.icon {
309309

310310
nav,
311311
.navbar {
312-
background: var(--colorBackground);
312+
background: var(--pst-color-background);
313313
color: var(--pst-color-text-base);
314314
}
315315
.navbar-burger {

0 commit comments

Comments
 (0)