From f6e43bfdbda93278b44ee81718c58aa82d57da9c Mon Sep 17 00:00:00 2001 From: Cheslav Zhuravsky Date: Wed, 11 Sep 2024 12:37:01 +0700 Subject: [PATCH] fix theme --- logseq/custom.css | 33 ++++++++++----------------------- logseq/custom.css.map | 1 + logseq/custom.scss | 21 +++++++++++++++++++++ 3 files changed, 32 insertions(+), 23 deletions(-) create mode 100644 logseq/custom.css.map create mode 100644 logseq/custom.scss diff --git a/logseq/custom.css b/logseq/custom.css index 1357e90..25ce8c6 100644 --- a/logseq/custom.css +++ b/logseq/custom.css @@ -1,33 +1,20 @@ -.dark { +html[data-theme=dark] { --ls-main-content-background: black; - /* --rx-green-09: #30a46c; */ /* --rx-green-10: #3cb179; */ /* --rx-green-11: #4cc38a; */ } - -html body { +html[data-theme=dark] body { background-color: black; } - -.dark #app-container, -.dark .left-sidebar-inner { - background-color: black !important; -} - -#right-sidebar .cp__right-sidebar-topbar { - background-color: black !important; -} - -#right-sidebar-container { +html[data-theme=dark] #app-container, +html[data-theme=dark] .left-sidebar-inner, +html[data-theme=dark] #right-sidebar .cp__right-sidebar-topbar, +html[data-theme=dark] #right-sidebar-container, +html[data-theme=dark] .sidebar-item-list, +html[data-theme=dark] .sidebar-item, +html[data-theme=dark] #logseq-tabs_lsp_main { background-color: black !important; } -.dark .sidebar-item-list, -.dark .sidebar-item { - background-color: black !important; -} - -#logseq-tabs_lsp_main { - background-color: black !important; -} +/*# sourceMappingURL=custom.css.map */ diff --git a/logseq/custom.css.map b/logseq/custom.css.map new file mode 100644 index 0000000..a853091 --- /dev/null +++ b/logseq/custom.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["custom.scss"],"names":[],"mappings":"AAAA;EACE;AAEA;AACA;AACA;;AAEA;EACE;;AAGF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAOE","file":"custom.css"} \ No newline at end of file diff --git a/logseq/custom.scss b/logseq/custom.scss new file mode 100644 index 0000000..1e600a8 --- /dev/null +++ b/logseq/custom.scss @@ -0,0 +1,21 @@ +html[data-theme="dark"] { + --ls-main-content-background: black; + + /* --rx-green-09: #30a46c; */ + /* --rx-green-10: #3cb179; */ + /* --rx-green-11: #4cc38a; */ + + body { + background-color: black; + } + + #app-container, + .left-sidebar-inner, + #right-sidebar .cp__right-sidebar-topbar, + #right-sidebar-container, + .sidebar-item-list, + .sidebar-item, + #logseq-tabs_lsp_main { + background-color: black !important; + } +}