summaryrefslogtreecommitdiff
path: root/scss/base/_theme.scss
diff options
context:
space:
mode:
authorJoe Carstairs <118172583+jcarstairs-scottlogic@users.noreply.github.com>2024-01-29 13:12:15 +0000
committerGitHub <noreply@github.com>2024-01-29 13:12:15 +0000
commitf7528892196734b7246377d63a8804e3f435b9ba (patch)
treed0a7025e82db9ab1847edd724e1c3d4e04024d26 /scss/base/_theme.scss
parent0c0cff042de7d5cec6ef904b7623a8ac2c3c938a (diff)
Design system board (#77)
* Simplifies theme selector syntax * Adds .dark theming class * Adds design system page (dev env only)
Diffstat (limited to 'scss/base/_theme.scss')
-rw-r--r--scss/base/_theme.scss16
1 files changed, 7 insertions, 9 deletions
diff --git a/scss/base/_theme.scss b/scss/base/_theme.scss
index f5d178c..c97c788 100644
--- a/scss/base/_theme.scss
+++ b/scss/base/_theme.scss
@@ -1,13 +1,11 @@
-:root {
+:is(
+ :root,
+ .dark,
+ main,
+ article,
+ :is(main, article) > section:not(:is(section, header) :is(section, header))
+) {
color: var(--text-color);
background-color: var(--background-color);
}
-:is(main, article) {
- color: var(--text-color);
- background-color: var(--background-color);
-}
-
-:is(main, article) > section:not(:is(section, header) :is(section, header)) {
- background-color: var(--background-color);
-} \ No newline at end of file