Sidebar.styl 3.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. .sidebar-expandbar
  2. position absolute
  3. left 0
  4. display none
  5. border 1px solid thirdColor
  6. border-top-width 2px
  7. padding 11px 15px
  8. background-color blue
  9. z-index 5
  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. background-image url('../img/applat.png')
  20. background-repeat repeat
  21. z-index 1
  22. sidebar-width = 280px
  23. sidebar-animate-speed = 0.5s
  24. .sidebarSticky
  25. position sticky
  26. top 87px
  27. display flex
  28. flex-direction column
  29. justify-content space-between
  30. height 100%
  31. leftside()
  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. z-index 5
  40. &.sidebarclose
  41. width 0
  42. &__expand
  43. position absolute
  44. top 0
  45. right -42px
  46. display flex
  47. justify-content center
  48. align-items center
  49. border-left 1px solid off-white
  50. border-bottom-right-radius 15px
  51. padding 8px 15px
  52. cursor pointer
  53. background-color thirdColor
  54. color white
  55. transition all sidebar-animate-speed
  56. &__btnnewworkspace
  57. margin 50px 0
  58. overflow hidden
  59. &__btn
  60. display block
  61. margin 0 auto
  62. padding 15px 30px
  63. background-color thirdColor
  64. border-color thirdColor
  65. &:hover, &:focus, &:active, &:visited
  66. background-color fifthColor
  67. border-color fifthColor
  68. &__navigation
  69. padding 0
  70. overflow hidden
  71. &__workspace
  72. padding-left 0
  73. list-style none
  74. &__item
  75. &__wrapper
  76. display flex
  77. align-items center
  78. border-bottom 1px solid secondColor
  79. width 100%
  80. height 100%
  81. background-color thirdColor
  82. cursor pointer
  83. &:hover
  84. background-color fifthColor
  85. &__number
  86. display flex
  87. leftside()
  88. padding 12px
  89. width 50px
  90. letter-spacing 2px
  91. &__name
  92. padding 10px
  93. font-size 20px
  94. color off-white
  95. white-space nowrap
  96. overflow hidden
  97. text-overflow ellipsis
  98. &__icon
  99. margin 0 10px 0 auto
  100. color white
  101. &__submenu
  102. margin 0
  103. padding 0
  104. width 100%
  105. background-color fourthColor
  106. overflow hidden
  107. & > li
  108. display block
  109. &__dropdown
  110. display flex
  111. align-items center
  112. border-bottom 1px solid secondColor
  113. cursor pointer
  114. &:hover
  115. background-color thirdColor
  116. &__showdropdown
  117. display flex
  118. justify-content space-between
  119. align-items center
  120. padding 0 10px
  121. width 100%
  122. .dropdown__icon
  123. padding 10px 15px
  124. min-width 50px
  125. leftside()
  126. .dropdown__title
  127. white-space nowrap
  128. overflow hidden
  129. text-overflow ellipsis
  130. &.activeFilter
  131. .dropdown__icon
  132. background-color rgba(253, 253, 253, 0.8)
  133. &__footer
  134. &__text
  135. color off-white
  136. font-size 14px
  137. &__link
  138. & > a
  139. color off-white
  140. font-size 14px
  141. &:hover
  142. text-decoration underline
  143. color fourthColor
  144. /***** MEDIA 992px and 1199px ******/
  145. @media (min-width: min-lg) and (max-width: max-lg)
  146. .sidebar
  147. position fixed
  148. /***** MEDIA 576px and 991px ******/
  149. @media (min-width: min-sm) and (max-width: max-md)
  150. .sidebarSticky
  151. top 69px
  152. .sidebar
  153. position fixed
  154. /***** MEDIA 576px and 767px *****/
  155. @media (min-width: min-sm) and (max-width: max-sm)
  156. .sidebarpagecontainer
  157. padding-top 69px
  158. /***** MEDIA *****/
  159. @media (max-width: 575px)
  160. .sidebarpagecontainer
  161. padding-top 69px
  162. .sidebarSticky
  163. top 69px
  164. .sidebar
  165. position fixed