Fix scrolling issues
This commit is contained in:
@@ -51,9 +51,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Page rendering configuration */
|
/* Page rendering configuration */
|
||||||
html, body {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
body{
|
body{
|
||||||
background-color: #0d0d0d; /* Fallback */
|
background-color: #0d0d0d; /* Fallback */
|
||||||
background-color: var(--body_color);
|
background-color: var(--body_color);
|
||||||
@@ -76,7 +74,8 @@ body{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.button_toggle_navigation {
|
.button_toggle_navigation {
|
||||||
position: absolute;
|
position: fixed;
|
||||||
|
backface-visibility: hidden;
|
||||||
z-index: 300;
|
z-index: 300;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
@@ -89,7 +88,8 @@ body{
|
|||||||
box-shadow: 2px 2px 8px -3px var(--shadow_color);
|
box-shadow: 2px 2px 8px -3px var(--shadow_color);
|
||||||
}
|
}
|
||||||
.page_navigation {
|
.page_navigation {
|
||||||
position: absolute;
|
position: fixed;
|
||||||
|
backface-visibility: hidden;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
width: 250px;
|
width: 250px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -107,9 +107,8 @@ body{
|
|||||||
.page_body {
|
.page_body {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 200;
|
z-index: 200;
|
||||||
top: 0;
|
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
height: auto;
|
||||||
left: 250px;
|
left: 250px;
|
||||||
min-width: 300px;
|
min-width: 300px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
{{define "page_top"}}
|
{{define "page_top"}}
|
||||||
<div id="page_wrapper">
|
<!-- <div id="page_wrapper"> -->
|
||||||
<button id="button_toggle_navigation" class="button_toggle_navigation" onclick="toggleMenu();">☰</button>
|
<button id="button_toggle_navigation" class="button_toggle_navigation" onclick="toggleMenu();">☰</button>
|
||||||
<div id="page_navigation" class="page_navigation">
|
<div id="page_navigation" class="page_navigation">
|
||||||
<a href="/">Home</a>
|
<a href="/">Home</a>
|
||||||
<hr/>
|
<hr />
|
||||||
{{if .Authenticated}}<a href="/user">{{.Username}}</a>
|
{{if .Authenticated}}<a href="/user">{{.Username}}</a>
|
||||||
<a href="/user/files">My Files</a>
|
<a href="/user/files">My Files</a>
|
||||||
<a href="/user/lists">My Lists</a>
|
<a href="/user/lists">My Lists</a>
|
||||||
@@ -13,13 +13,13 @@
|
|||||||
<a href="/register">Register</a>
|
<a href="/register">Register</a>
|
||||||
<a href="/history">Upload History</a>
|
<a href="/history">Upload History</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
<hr/>
|
<hr />
|
||||||
<a href="/about">About</a>
|
<a href="/about">About</a>
|
||||||
<!--<a href="/technology">Technology</a>-->
|
<!--<a href="/technology">Technology</a>-->
|
||||||
<a href="/api">API</a>
|
<a href="/api">API</a>
|
||||||
<a href="/appearance">Appearance</a>
|
<a href="/appearance">Appearance</a>
|
||||||
</div>
|
</div>
|
||||||
<div id="page_body" class="page_body">
|
<div id="page_body" class="page_body">
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "page_bottom"}}
|
{{define "page_bottom"}}
|
||||||
@@ -29,13 +29,13 @@
|
|||||||
Reddit: <a href="https://reddit.com/r/pixeldrain" target="_blank">/r/pixeldrain</a>
|
Reddit: <a href="https://reddit.com/r/pixeldrain" target="_blank">/r/pixeldrain</a>
|
||||||
Medium: <a href="https://medium.com/pixeldrain" target="_blank">Pixeldrain</a>
|
Medium: <a href="https://medium.com/pixeldrain" target="_blank">Pixeldrain</a>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- end page_body -->
|
</div><!-- end page_body -->
|
||||||
</div><!-- end page_wrapper -->
|
<!-- </div>end page_wrapper -->
|
||||||
<script>
|
<script>
|
||||||
var nav = document.getElementById("page_navigation");
|
var nav = document.getElementById("page_navigation");
|
||||||
var body = document.getElementById("page_body");
|
var body = document.getElementById("page_body");
|
||||||
|
|
||||||
function toggleMenu() {
|
function toggleMenu() {
|
||||||
if (nav.offsetLeft === 0) {
|
if (nav.offsetLeft === 0) {
|
||||||
// Menu is visible
|
// Menu is visible
|
||||||
|
|
||||||
@@ -47,6 +47,6 @@ function toggleMenu() {
|
|||||||
nav.style.left = "0";
|
nav.style.left = "0";
|
||||||
body.style.left = nav.offsetWidth + "px";
|
body.style.left = nav.offsetWidth + "px";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
Reference in New Issue
Block a user