From 64167f9c771080aa192533ee8252181fcba4c1c6 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 7 May 2017 23:40:34 +0200 Subject: [PATCH] Revert "Revert "css fixes"" This reverts commit 7b86e3af9487df823328dbc32c488e89d191f055. --- public/css/style-night.css | 7 ++++--- public/css/style.css | 4 ++-- public/js/main.js | 6 ------ templates/index.html | 11 ++++++++++- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/public/css/style-night.css b/public/css/style-night.css index ec5f2263..d763c252 100644 --- a/public/css/style-night.css +++ b/public/css/style-night.css @@ -2,7 +2,7 @@ .nightswitch { position: fixed; top: 12px; - right: 48px; + right: 12px; } .nightswitch > a > img { width: 24px; @@ -43,7 +43,7 @@ } #container.cont-view { background: #29363d url(/img/megumin.png) no-repeat; - background-size: 75px, 100px; + background-size: 75px; } body { @@ -178,6 +178,7 @@ 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 7877c119..05876b95 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -2,7 +2,7 @@ .nightswitch { position: fixed; top: 12px; - right: 48px; + right: 12px; } .nightswitch > a > img { width: 24px; @@ -43,7 +43,7 @@ } #container.cont-view { background: white url(/img/renchon.png) no-repeat; - background-size: 75px, 100px; + background-size: 61px; } body { diff --git a/public/js/main.js b/public/js/main.js index 657a4909..4d5b47d7 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -1,10 +1,4 @@ // 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 112d8143..eef8f1d1 100755 --- a/templates/index.html +++ b/templates/index.html @@ -27,6 +27,15 @@ +