Browse Source

minor fixes for no js display

Bachir Soussi Chiadmi 5 years ago
parent
commit
c47d7d564c

File diff suppressed because it is too large
+ 0 - 0
sites/all/themes/custom/edlptheme/assets/dist/styles/app.min.css


+ 1 - 1
sites/all/themes/custom/edlptheme/assets/styles/app.scss

@@ -290,7 +290,7 @@ header[role="banner"]{
 // and ajax loading effects
 main[role="main"]{
   .row{
-    opacity: 0;
+    html.js &{opacity: 0;}
     .col{
       opacity:1;
       transition: opacity 0.5s ease-in-out;

+ 3 - 0
sites/all/themes/custom/edlptheme/assets/styles/base/_grid.scss

@@ -45,6 +45,9 @@ $med-bp:1080px;
 
 .row{
   @include row;
+  // html:not(.js) &{
+  //   overflow-y: auto;
+  // }
 }
 
 @for $c from 1 through $default_sum {

+ 12 - 0
sites/all/themes/custom/edlptheme/assets/styles/base/_layout.scss

@@ -78,6 +78,14 @@ html:not(.is-mobile) main[role="main"]{
   }
 }
 
+html:not(.js):not(.is-mobile) main[role="main"]{
+  overflow-y: auto;
+  .layout-content{
+    height: auto;
+    padding-bottom:4em;
+  }
+}
+
 html.is-mobile main[role="main"]{
   padding:80px 1em 40px;
   // background-color: blue;
@@ -106,6 +114,10 @@ footer[role="contentinfo"]{
   padding:0.5em 1em;
 }
 
+html:not(.js):not(.is-mobile) footer[role="contentinfo"]{
+  background-color: white;
+}
+
 canvas#corpus-map{
   // outline: 1px solid grey;
 }

Some files were not shown because too many files changed in this diff