From 1dad377fae63fd9646742fa743ec5eab8522b5e1 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 25 Jan 2016 21:37:12 -0800 Subject: [PATCH] Don't set the theme class if no stylesheet is selected. Give Oneechan less stuff to override. --- src/General/Main.coffee | 4 +++- src/css/style.css | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 66052a1f2..25ac4d6aa 100644 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -185,11 +185,13 @@ Main = styleSheets = $$ 'link[rel="alternate stylesheet"]', d.head setStyle = -> $.rmClass doc, style + style = null for styleSheet in styleSheets if styleSheet.href is mainStyleSheet?.href style = styleSheet.title.toLowerCase().replace('new', '').trim().replace /\s+/g, '-' break - $.addClass doc, style + if style + $.addClass doc, style setStyle() return unless mainStyleSheet new MutationObserver(setStyle).observe mainStyleSheet, diff --git a/src/css/style.css b/src/css/style.css index 8b3b17569..96ba04a98 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -2,6 +2,7 @@ .dialog { border: 1px solid; display: block; + background-color: inherit; } .dialog:not(#qr):not(#thread-watcher):not(#header-bar) { box-shadow: 0 1px 2px rgba(0, 0, 0, .15);