Apply the fix to both expanded and not expanded, using convention
authorRigel Kent <sendmemail@rigelk.eu>
Thu, 30 Apr 2020 15:14:03 +0000 (17:14 +0200)
committerRigel Kent <par@rigelk.eu>
Thu, 30 Apr 2020 15:23:20 +0000 (17:23 +0200)
client/src/sass/application.scss

index 0e486eab2ef168d8db691b89a434afed50253308..7ea82b6f9f5a065c2493516b1b034c7e7d0cbc15 100644 (file)
@@ -279,18 +279,21 @@ table {
 }
 
 @media screen and (max-width: #{map-get($grid-breakpoints, lg)}) {
+  /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */
   .main-col {
-    .margin-content {
-      margin-left: $expanded-horizontal-margins/3;
-      margin-right: $expanded-horizontal-margins/3;
-    }
+    &, &.expanded {
+      .margin-content {
+        margin-left: $expanded-horizontal-margins/3;
+        margin-right: $expanded-horizontal-margins/3;
+      }
 
-    .sub-menu {
-      padding-left: 50px;
-      padding-right: 50px;
+      .sub-menu {
+        padding-left: 50px;
+        padding-right: 50px;
 
-      .title-page {
-        font-size: 17px;
+        .title-page {
+          font-size: 17px;
+        }
       }
     }
   }
@@ -314,7 +317,6 @@ table {
 
       .sub-menu {
         width: 100vw;
-        overflow-x: auto;
         padding-left: 15px;
         padding-right: 15px;
         margin-bottom: $sub-menu-margin-bottom-small-view;