@@ -1,5 +1,9 @@
#menu {
box-shadow: none;
+ transition: all ease-in-out 0.4s;
+}
+#menu.ng-hide {
+ left: -280px;
}
#main,
#main-header {
@@ -110,10 +110,6 @@ p:first-child {
box-shadow: -2px 0px 0px 0px #eeeeee inset;
z-index: 400;
overflow-x: hidden;
- transition: all ease-in-out 0.4s;
-}
-#menu.ng-hide {
- left: -280px;
#menu .header {
z-index: 401;
@@ -1,6 +1,11 @@
#menu{
//display: none;
+ transition:all ease-in-out 0.4s;
+
+ &.ng-hide{
+ left:-280px;
+ }
#main, #main-header{
@@ -122,20 +122,14 @@ p:first-child{
- @menuWidth:280px;
background:@background;
- width:@menuWidth;
+ width:280px;
left:0;
position:fixed;
height:100%;
box-shadow: -2px 0px 0px 0px @control inset;
- transition:all ease-in-out 0.4s;
-
- &.ng-hide{
- left:-@menuWidth;
- }
.header{
@@ -54,7 +54,7 @@ function FormatURI(URI $uri, $base=""){
{@JavaScript}
</script>
</head>
- <body ng-controller="main" ng-class="{scrollLock: menuVisible}">
+ <body ng-controller="main" ng-class="{scrollLock: menuVisible && window.innerWidth < 1024}">
<div id="main-header">
<div class="header">
<img src="/images/menu.svg" id="menu-button" ng-click="menuVisible=!menuVisible" /><?php // using php tags to remove HTML space but to keep source tidy