Переглянути джерело

Fix card shadow to cover the full page.

Stefano Pogliani 7 роки тому
батько
коміт
ffbd3ccc2a

+ 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,