瀏覽代碼

drawer menu scrollable

zzossig 5 年之前
父節點
當前提交
63f9b5be29

+ 3 - 2
assets/sass/components/_drawer.scss

@@ -4,7 +4,7 @@
   left: -100%;
   left: -100%;
   z-index: z('drawer');
   z-index: z('drawer');
   width: $drawer-width;
   width: $drawer-width;
-  height: 100vh;
+  height: 100%;
 
 
   @include themify($themes) {
   @include themify($themes) {
     background-color: themed('body-background-color');
     background-color: themed('body-background-color');
@@ -32,8 +32,9 @@
   }
   }
 
 
   &__body {
   &__body {
-    height: calc(100vh - $grid-nav-height);
+    height: 100%;
     width: 100%;
     width: 100%;
+    overflow-y: auto;
   }
   }
 
 
   &__close {
   &__close {

+ 4 - 0
assets/sass/components/_menu.scss

@@ -10,6 +10,10 @@
   overflow-y: auto;
   overflow-y: auto;
   z-index: z('menu');
   z-index: z('menu');
 
 
+  @media only screen and (max-width: 600px) {
+    top: 0;
+  }
+
   &__label {
   &__label {
     font-family: $title-font;
     font-family: $title-font;
     font-size: 1rem;
     font-size: 1rem;

+ 1 - 1
assets/sass/components/_modal.scss

@@ -8,7 +8,7 @@
   width: 100%; /* Full width */
   width: 100%; /* Full width */
   height: 100%; /* Full height */
   height: 100%; /* Full height */
   overflow: hidden;
   overflow: hidden;
-  opacity: 1;
+  opacity: 0;
   background: rgba(0,0,0,0.6);
   background: rgba(0,0,0,0.6);
 
 
   @include transition(opacity, 0.25s, ease-in-out);
   @include transition(opacity, 0.25s, ease-in-out);

文件差異過大導致無法顯示
+ 0 - 0
exampleSite/resources/_gen/assets/scss/sass/main.scss_b4f67ac5085b89b62b54c1923e5a9145.content


+ 2 - 2
layouts/partials/head/scripts.html

@@ -93,8 +93,8 @@
       modal.style.left = 0;
       modal.style.left = 0;
       modal.style.opacity = 1;
       modal.style.opacity = 1;
       drawer.style.left = 0;
       drawer.style.left = 0;
-      drawer.style.transition = "left 0.3s ease-out";
-      drawer.style.webkitTransition = "left 0.3s ease-out";
+      drawer.style.transition = "left 0.3s ease-out, opacity 0.2s ease-out";
+      drawer.style.webkitTransition = "left 0.3s ease-out, opacity 0.2s ease-out";
     }
     }
 
 
     var closeDrawer = function() {
     var closeDrawer = function() {

部分文件因文件數量過多而無法顯示