huaisianhuang 3 år sedan
förälder
incheckning
9f9d6f95e6
4 ändrade filer med 8 tillägg och 3 borttagningar
  1. 2 1
      css/style.css
  2. 1 1
      index.html
  3. 4 1
      js/index.js
  4. 1 0
      sass/main.scss

+ 2 - 1
css/style.css

@@ -383,7 +383,8 @@ body {
     right: 0;
     height: 100%;
     overflow-y: scroll;
-    max-width: 100%; }
+    max-width: 100%;
+    background-color: white; }
   .sec-menu-list {
     background: white;
     margin-bottom: 0; }

+ 1 - 1
index.html

@@ -41,7 +41,7 @@
     <link rel="stylesheet" href="css/style.css">
 </head>
 <body>
-  <div style="overflow-x:hidden;">
+  <div style="overflow-x:hidden;" class="wholeBody">
     <section class="sec-00 w-100">
         <div class="container-fluid" style="padding:0;margin:0;height: 110px;">
             <div class="sec-00__slider">

+ 4 - 1
js/index.js

@@ -229,11 +229,12 @@ $(".sec-01__slider").slick({
     
     $('.navbar-toggler').click(function(){
         $(".sec-menu").css('display', 'block');
+        $(".wholeBody").css('overflow-y', 'hidden');
     });
     
     $('.navbar-back').click(function(){
         $(".sec-menu").css('display', 'none');
-        
+        $(".wholeBody").css('overflow-y', 'scroll');
     });
     
     $('.subexpand').click(function(){
@@ -243,10 +244,12 @@ $(".sec-01__slider").slick({
     
     $('.navbar-search').click(function(){
         $(".sec-search").css('display', 'block');
+        $(".wholeBody").css('overflow-y', 'hidden');
     })
     
     $('.navbar-backs').click(function(){
         $(".sec-search").css('display', 'none');
+        $(".wholeBody").css('overflow-y', 'scroll');
     });
 
     $('.navbar-back-fav').click(function(){

+ 1 - 0
sass/main.scss

@@ -488,6 +488,7 @@ body {
         height: 100%;
         overflow-y: scroll;
         max-width: 100%;
+        background-color: white;
         &.active {
             //transform: translateX(0px);
         }