Sidebar.styl 3.8KB

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