Browse Source

sidebar close now uses stylus sidebar-width variable

Skylsmoi 7 years ago
parent
commit
a0280f1e70
1 changed files with 2 additions and 5 deletions
  1. 2 5
      src/css/Sidebar.styl

+ 2 - 5
src/css/Sidebar.styl View File

@@ -20,9 +20,6 @@
20 20
   z-index 1
21 21
 
22 22
 sidebar-width = 300px
23
-.sidebar-visible
24
-  .sidebar-expandbar
25
-    left sidebar-width
26 23
 
27 24
 leftside()
28 25
   flex-grow 0
@@ -36,9 +33,9 @@ leftside()
36 33
   width 300px
37 34
   &.sidebarclose
38 35
     width 0
39
-    transform translateX(-300px)
36
+    transform translateX("-%s" % sidebar-width)
40 37
     .sidebar__expand
41
-      right -339px
38
+      right "calc(-%s - 39px)" % sidebar-width
42 39
   &__expand
43 40
     position absolute
44 41
     top 0