Sidebar.styl 3.4KB

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