From d3b8596f2a5567863ddf40617793dca2a8d3befb Mon Sep 17 00:00:00 2001 From: akuma06 Date: Sun, 7 May 2017 23:11:26 +0200 Subject: [PATCH] Revert "css fixes" --- public/css/style-night.css | 7 +++---- public/css/style.css | 4 ++-- public/js/main.js | 6 ++++++ templates/index.html | 11 +---------- 4 files changed, 12 insertions(+), 16 deletions(-) diff --git a/public/css/style-night.css b/public/css/style-night.css index d763c252..ec5f2263 100644 --- a/public/css/style-night.css +++ b/public/css/style-night.css @@ -2,7 +2,7 @@ .nightswitch { position: fixed; top: 12px; - right: 12px; + right: 48px; } .nightswitch > a > img { width: 24px; @@ -43,7 +43,7 @@ } #container.cont-view { background: #29363d url(/img/megumin.png) no-repeat; - background-size: 75px; + background-size: 75px, 100px; } body { @@ -178,7 +178,6 @@ div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:last-of-typ max-height: 80vh; } -/* the curved edges triggered my autism */ .navbar { border-radius: 0px; -} +} \ No newline at end of file diff --git a/public/css/style.css b/public/css/style.css index 05876b95..7877c119 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -2,7 +2,7 @@ .nightswitch { position: fixed; top: 12px; - right: 12px; + right: 48px; } .nightswitch > a > img { width: 24px; @@ -43,7 +43,7 @@ } #container.cont-view { background: white url(/img/renchon.png) no-repeat; - background-size: 61px; + background-size: 75px, 100px; } body { diff --git a/public/js/main.js b/public/js/main.js index 4d5b47d7..657a4909 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -1,4 +1,10 @@ // Night mode +var night = localStorage.getItem("night"); +if (night == "true") { + $("#style")[0].href = "/css/style-night.css"; + $("#nighticon")[0].src = "/img/sun.png"; +} + function toggleNightMode() { var night = localStorage.getItem("night"); if(night == "true") { diff --git a/templates/index.html b/templates/index.html index eef8f1d1..112d8143 100755 --- a/templates/index.html +++ b/templates/index.html @@ -27,15 +27,6 @@ -