From 2e00e7a6c1114d483d33d2bd074dc46fd16338fd Mon Sep 17 00:00:00 2001 From: Christoph Zwerschke Date: Mon, 1 Jun 2020 23:34:52 +0200 Subject: [PATCH] Adapt background in sticky switcher to selected theme --- index.html | 1 + switcher.js | 26 +++++++++++++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index cb32578..d016a4e 100644 --- a/index.html +++ b/index.html @@ -14,6 +14,7 @@ padding-bottom: 9px; background: white; box-shadow: 0 2px 1px -1px #ccc; + z-index: 999999; } '; - document.body.insertBefore(new_div, document.body.firstChild); + document.body.prepend(new_div); document.body.style.paddingLeft = "24px"; inline_switcher(); + + css_link.onload = on_css_load; }