浏览代码

Fix card shadow to cover the full page.

Stefano Pogliani 7 年之前
父节点
当前提交
ffbd3ccc2a
共有 2 个文件被更改,包括 8 次插入3 次删除
  1. 6 3
      client/components/boards/boardBody.styl
  2. 2 0
      client/components/main/header.styl

+ 6 - 3
client/components/boards/boardBody.styl

@@ -1,8 +1,11 @@
 @import 'nib'
 @import 'nib'
 
 
 position()
 position()
-  if arguments[0] == cover
-    position: absolute
+  if arguments[0] == cover || arguments[0] == fixed-cover
+    if arguments[0] == cover
+      position: absolute
+    else
+      position: fixed
     left: 0
     left: 0
     right: 0
     right: 0
     top: 0
     top: 0
@@ -30,7 +33,7 @@ position()
       overflow-y: hidden
       overflow-y: hidden
 
 
     .board-overlay
     .board-overlay
-      position: cover
+      position: fixed-cover
       top: -100px
       top: -100px
       right: -400px
       right: -400px
       background: black
       background: black

+ 2 - 0
client/components/main/header.styl

@@ -4,6 +4,7 @@
   color: white
   color: white
   transition: background-color 0.4s
   transition: background-color 0.4s
   background: #2980B9
   background: #2980B9
+  z-index: 17
 
 
   #header-main-bar
   #header-main-bar
     height: 40px
     height: 40px
@@ -99,6 +100,7 @@
   height: 28px
   height: 28px
   font-size: 12px
   font-size: 12px
   display: flex
   display: flex
+  z-index: 17
 
 
   #header-user-bar,
   #header-user-bar,
   #header-new-board-icon,
   #header-new-board-icon,