瀏覽代碼

Merge branch 'card-shadow' of https://github.com/stefano-pogliani/wekan into stefano-pogliani-card-shadow

Lauri Ojansivu 7 年之前
父節點
當前提交
20d6ea85d4
共有 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'
 
 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
     right: 0
     top: 0
@@ -30,7 +33,7 @@ position()
       overflow-y: hidden
 
     .board-overlay
-      position: cover
+      position: fixed-cover
       top: -100px
       right: -400px
       background: black

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

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