From b0cf8770f7f21f7e86f2d63012d3c210ee6912f1 Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Sun, 12 Aug 2018 18:04:51 -0400 Subject: [PATCH] Use `html._theme-*` selectors --- assets/stylesheets/global/_icons.scss | 2 +- assets/stylesheets/global/_variables-dark.scss | 2 +- assets/stylesheets/global/_variables-light.scss | 2 +- views/index.erb | 2 +- views/other.erb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/stylesheets/global/_icons.scss b/assets/stylesheets/global/_icons.scss index 3115d481..a5064387 100644 --- a/assets/stylesheets/global/_icons.scss +++ b/assets/stylesheets/global/_icons.scss @@ -23,7 +23,7 @@ %doc-icon-2 { background-image: image-url('docs-2@2x.png') !important; } } -html.dark { +html._theme-dark { %darkIconFix { filter: invert(100%) grayscale(100%); -webkit-filter: invert(100%) grayscale(100%); diff --git a/assets/stylesheets/global/_variables-dark.scss b/assets/stylesheets/global/_variables-dark.scss index 38da9ff0..ca4e83bc 100644 --- a/assets/stylesheets/global/_variables-dark.scss +++ b/assets/stylesheets/global/_variables-dark.scss @@ -1,4 +1,4 @@ -html.dark { +html._theme-dark { --absolute: white; --documentBackground: #222; diff --git a/assets/stylesheets/global/_variables-light.scss b/assets/stylesheets/global/_variables-light.scss index fc302aa6..376204dd 100644 --- a/assets/stylesheets/global/_variables-light.scss +++ b/assets/stylesheets/global/_variables-light.scss @@ -1,4 +1,4 @@ -html:not(.dark) { +html._theme-default { --absolute: black; --documentBackground: #f3f3f3; diff --git a/views/index.erb b/views/index.erb index ce743671..03ace87f 100644 --- a/views/index.erb +++ b/views/index.erb @@ -1,5 +1,5 @@ - prefix="og: http://ogp.me/ns#" lang="en" class="_booting"> + prefix="og: http://ogp.me/ns#" lang="en" class="_booting _theme-<%= app_theme %>"> diff --git a/views/other.erb b/views/other.erb index f8c9eee6..b31d0424 100644 --- a/views/other.erb +++ b/views/other.erb @@ -1,5 +1,5 @@ - +