website

Code for the bare sturcture of concealed.world.
git clone git://git.concealed.world/website
Log | Files | Refs | README | LICENSE

commit b426906fc76f9dd029c159bf436081d3b3c6cc79
parent 12116318e70a1e250cee2d0d9f6d91967a7e90a4
Author: Nixx <nixx@firemail.cc>
Date:   Sat, 26 Sep 2020 16:09:12 +0100

Fixed scrolling on Pale Moon browser

Diffstat:
Mincludes/start.php | 4++++
Mstyles/default.css | 13+------------
Astyles/noscroll.css | 9+++++++++
3 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/includes/start.php b/includes/start.php @@ -1,6 +1,10 @@ <?php require $root."includes/start-meta.php"; echo '<link rel="stylesheet" href="'.$root.'styles/default.css" />'; + $usragent=$_SERVER['HTTP_USER_AGENT']; + if (!strpos($usragent, 'PaleMoon') !== false) { + echo '<link rel="stylesheet" href="'.$root.'styles/noscroll.css" />'; + } echo '<link rel="stylesheet" href="'.$root.'styles/fonts.css" />'; echo '<link rel="stylesheet" href="'.$root.'styles/cursor.css" />'; echo '</head>'; diff --git a/styles/default.css b/styles/default.css @@ -9,16 +9,6 @@ --shade: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0.8), rgba(0,0,0,0)); } -::-webkit-scrollbar { - display: none; -} - -* { - -ms-overflow-style: none; - scrollbar-width: none; - overflow: -moz-scrollbars-none; -} - body { background: url("/includes/bg.php") no-repeat var(--bg-col); background-size: cover; @@ -185,7 +175,7 @@ input[type="submit" i] { margin-bottom: var(--ver-btm); margin-top: 2px; position: absolute; - height: var(--ver); + margin-bottom: 0; } .article { @@ -562,7 +552,6 @@ input[type="submit" i] { .content { margin-left: unset; - margin-bottom: unset; } .mobilemenu { diff --git a/styles/noscroll.css b/styles/noscroll.css @@ -0,0 +1,9 @@ +::-webkit-scrollbar { + display: none; +} + +* { + -ms-overflow-style: none; + scrollbar-width: none; + overflow: -moz-scrollbars-none; +}