Clean up theme section of CSS.

This commit is contained in:
Matthew Crossman 2021-01-18 10:56:30 +11:00
parent 1d57e29d56
commit 6981d94417
No known key found for this signature in database
GPG Key ID: 218BF1ABB2AABA24

View File

@ -127,7 +127,7 @@ aside {
opacity: 0.5; opacity: 0.5;
} }
/* Color themes */ /* Define themes */
:root { :root {
/* Light theme */ /* Light theme */
@ -151,8 +151,12 @@ aside {
--post-dark: #161616; --post-dark: #161616;
--highlighted-dark: #333; --highlighted-dark: #333;
--shadow-dark: 0 1px 3px rgba(0, 0, 0, 0.5); --shadow-dark: 0 1px 3px rgba(0, 0, 0, 0.5);
}
/* Fallback to dark (default) */ /* Automatic theme selection */
:root{
/* Default & fallback theme (dark) */
--accent: var(--accent-dark); --accent: var(--accent-dark);
--green: var(--green-dark); --green: var(--green-dark);
--text: var(--text-dark); --text: var(--text-dark);
@ -178,7 +182,7 @@ aside {
} }
} }
/* Override themes */ /* User-set theme overrides */
.light { .light {
--accent: var(--accent-light); --accent: var(--accent-light);