Sidebar.styl 3.2KB

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