Sidebar.styl 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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. .sidebar
  17. min-height 100%
  18. background-color secondColor
  19. z-index 1
  20. sidebar-width = 300px
  21. sidebar-animate-speed = 0.5s
  22. .sidebarSticky
  23. position sticky
  24. top 87px
  25. leftside()
  26. flex-grow 0
  27. height 100%
  28. font-size 18px
  29. background-color rgba(253, 253, 253, 0.3)
  30. .sidebar
  31. position relative
  32. transition all sidebar-animate-speed
  33. width sidebar-width
  34. z-index 4
  35. &.sidebarclose
  36. width 0
  37. &__expand
  38. position absolute
  39. top 0
  40. right -42px
  41. display flex
  42. justify-content center
  43. align-items center
  44. border-left 1px solid off-white
  45. border-bottom-right-radius 15px
  46. padding 8px 15px
  47. cursor pointer
  48. background-color thirdColor
  49. color white
  50. transition all sidebar-animate-speed
  51. &__btnnewworkspace
  52. margin 50px 0
  53. overflow hidden
  54. &__btn
  55. display block
  56. margin 0 auto
  57. padding 15px 30px
  58. background-color thirdColor
  59. border-color thirdColor
  60. &:hover, &:focus, &:active, &:visited
  61. background-color fifthColor
  62. border-color fifthColor
  63. &__navigation
  64. padding 0
  65. overflow hidden
  66. &__workspace
  67. padding-left 0
  68. list-style none
  69. &__item
  70. &__wrapper
  71. display flex
  72. align-items center
  73. border-bottom 1px solid secondColor
  74. width 100%
  75. height 100%
  76. background-color thirdColor
  77. cursor pointer
  78. &:hover
  79. background-color fifthColor
  80. &__number
  81. leftside()
  82. padding 12px
  83. min-width 50px
  84. letter-spacing 2px
  85. &__name
  86. flex-grow 2
  87. padding 10px
  88. font-size 20px
  89. color off-white
  90. white-space nowrap
  91. overflow hidden
  92. text-overflow ellipsis
  93. &__icon
  94. flex-grow 0
  95. padding 10px
  96. color white
  97. &__submenu
  98. margin 0
  99. padding 0
  100. width 100%
  101. background-color fourthColor
  102. overflow hidden
  103. &__dropdown
  104. display flex
  105. align-items center
  106. border-top 1px solid secondColor
  107. cursor pointer
  108. &:nth-last-child(1)
  109. border-bottom 1px solid secondColor
  110. &:hover
  111. background-color thirdColor
  112. &__showdropdown
  113. display flex
  114. justify-content space-between
  115. align-items center
  116. padding 0 10px
  117. width 100%
  118. .dropdown__icon
  119. padding 10px 15px
  120. min-width 50px
  121. leftside()
  122. &.activeFilter
  123. .dropdown__icon
  124. background-color rgba(253, 253, 253, 0.8)
  125. /***** MEDIA 992px and 1199px ******/
  126. @media (min-width: min-lg) and (max-width: max-lg)
  127. .sidebar
  128. position fixed
  129. /***** MEDIA 576px and 991px ******/
  130. @media (min-width: min-sm) and (max-width: max-md)
  131. .sidebarSticky
  132. top 69px
  133. .sidebar
  134. position fixed
  135. /***** MEDIA 576px and 767px *****/
  136. @media (min-width: min-sm) and (max-width: max-sm)
  137. .sidebarpagecontainer
  138. padding-top 69px
  139. /***** MEDIA *****/
  140. @media (max-width: 575px)
  141. .sidebarpagecontainer
  142. padding-top 69px
  143. .sidebarSticky
  144. top 69px
  145. .sidebar
  146. position fixed