Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Some improvements to the offcanvas menu

Roland Geider506a9ff4ff5b
diff --git a/wger/core/static/css/bootstrap-custom.css b/wger/core/static/css/bootstrap-custom.css
index cec077370..d50295e8b 100644
--- a/wger/core/static/css/bootstrap-custom.css
+++ b/wger/core/static/css/bootstrap-custom.css
@@ -100,6 +100,20 @@ body {
margin-left: -30px;
}
+#nav {
+ overflow-y: scroll;
+ overflow-x: hidden;
+ position: fixed;
+ background-color: #eeeeec;
+ padding-left: 1em;
+ margin-left: -15px;
+ border-right: 1px solid #888a85;
+ border-bottom: 1px solid #888a85;
+ width: 60%;
+ height: 90%;
+ z-index: 99;
+}
+
@media screen and (max-width: 767px) {
.row-offcanvas {
position: relative;
diff --git a/wger/core/templates/mobile/navigation.html b/wger/core/templates/mobile/navigation.html
index 675bfe40a..9aa1598dc 100644
--- a/wger/core/templates/mobile/navigation.html
+++ b/wger/core/templates/mobile/navigation.html
@@ -18,7 +18,7 @@
</div>
-<nav id="nav" style="overflow-y: scroll;position: fixed;">
+<nav id="nav">
<div>
<div class="navbar navbar-default" style="background-color: transparent; border-width: 0px;">
<div class="container">