Sidebar.styl 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. .sidebar-expandbar
  2. position absolute
  3. left 0
  4. display none
  5. border 1px solid darkBlue
  6. border-top-width 2px
  7. padding 11px 15px
  8. background-color blue
  9. z-index 2
  10. &__icon
  11. font-size 18px
  12. text-align center
  13. cursor pointer
  14. &:hover
  15. color white
  16. /**** MENU HAMBURGER ON EXPAND BAR *****/
  17. .hamburger--spring .hamburger-inner
  18. margin 4px 8px
  19. .hamburger--spring .hamburger-inner::before
  20. top 7px
  21. .hamburger--spring .hamburger-inner::after
  22. top 14px
  23. /***************************************/
  24. .sidebar
  25. min-height 100%
  26. background-color secondColor
  27. z-index 1
  28. sidebar-width = 300px
  29. sidebar-animate-speed = 0.5s
  30. leftside()
  31. flex-grow 0
  32. height 100%
  33. font-size 18px
  34. background-color rgba(253, 253, 253, 0.3)
  35. .sidebar
  36. position relative
  37. transition all sidebar-animate-speed
  38. width sidebar-width
  39. &.sidebarclose
  40. width 0
  41. .hamburger--spring
  42. .hamburger-inner
  43. transition-delay 0.22s
  44. background-color transparent
  45. &::before
  46. top -3px
  47. transition top 0.1s 0.15s cubic-bezier(0.33333, 0, 0.66667, 0.33333), transform 0.13s 0.22s cubic-bezier(0.215, 0.61, 0.355, 1)
  48. transform translate3d(0, 10px, 0) rotate(45deg)
  49. &::after
  50. top -3px
  51. transition top 0.2s cubic-bezier(0.33333, 0, 0.66667, 0.33333), transform 0.13s 0.22s cubic-bezier(0.215, 0.61, 0.355, 1)
  52. transform translate3d(0, 10px, 0) rotate(-45deg)
  53. &__expand
  54. position absolute
  55. top 0
  56. right -49px
  57. padding 4px
  58. border-left 1px solid off-white
  59. border-bottom-right-radius 15px
  60. cursor pointer
  61. background-color blue
  62. color white
  63. transition all sidebar-animate-speed
  64. &__btnHamburger
  65. padding 0
  66. &:focus
  67. outline none
  68. &__box
  69. &__icon, &__icon::before, &__icon::after
  70. width 20px
  71. height 2px
  72. background-color off-white
  73. &__icon::before
  74. top 8px
  75. &__icon::after
  76. top 16px
  77. &__btnnewworkspace
  78. margin 50px 0
  79. overflow hidden
  80. &__btn
  81. display block
  82. margin 0 auto
  83. padding 15px 30px
  84. &__navigation
  85. padding 0
  86. overflow hidden
  87. &__workspace
  88. padding-left 0
  89. list-style none
  90. &__item
  91. &__wrapper
  92. display flex
  93. align-items center
  94. border-bottom 1px solid darkBlue
  95. width 100%
  96. height 100%
  97. background-color blue
  98. cursor pointer
  99. &__number
  100. leftside()
  101. padding 12px
  102. min-width 50px
  103. letter-spacing 2px
  104. &__name
  105. flex-grow 2
  106. padding 10px
  107. font-size 20px
  108. color off-white
  109. white-space nowrap
  110. overflow hidden
  111. text-overflow ellipsis
  112. &__icon
  113. flex-grow 0
  114. padding 10px
  115. color white
  116. &__submenu
  117. margin 0
  118. padding 0
  119. width 100%
  120. background-color fourthColor
  121. overflow hidden
  122. &__dropdown
  123. display flex
  124. align-items center
  125. border-top 1px solid darkBlue
  126. cursor pointer
  127. &:nth-last-child(1)
  128. border-bottom 1px solid darkBlue
  129. &:hover
  130. background-color lightBlue
  131. &__showdropdown
  132. display flex
  133. justify-content space-between
  134. align-items center
  135. padding 0 10px
  136. width 100%
  137. .dropdown__icon
  138. padding 10px 15px
  139. min-width 50px
  140. leftside()
  141. &.activeFilter
  142. .dropdown__icon
  143. background-color rgba(253, 253, 253, 0.8)
  144. /***** MEDIA 576px and 991px ******/
  145. @media (min-width: min-sm) and (max-width: max-md)
  146. .sidebar
  147. position absolute
  148. /***** MEDIA 576px and 767px *****/
  149. @media (min-width: min-sm) and (max-width: max-sm)
  150. .sidebarpagecontainer
  151. padding-top 69px
  152. /***** MEDIA *****/
  153. @media (max-width: 575px)
  154. .sidebarpagecontainer
  155. padding-top 69px
  156. .sidebar
  157. position absolute