Sidebar.styl 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. leftside()
  23. flex-grow 0
  24. height 100%
  25. font-size 18px
  26. background-color rgba(253, 253, 253, 0.3)
  27. .sidebar
  28. position relative
  29. transition all sidebar-animate-speed
  30. width sidebar-width
  31. &.sidebarclose
  32. width 0
  33. .sidebar__expand
  34. border-bottom-right-radius 0
  35. &__expand
  36. position absolute
  37. top 1px
  38. right -44px
  39. padding 5px 8px
  40. border 3px solid transparent
  41. border-bottom-right-radius 15px
  42. cursor pointer
  43. background-color blue
  44. color white
  45. transition all sidebar-animate-speed
  46. &__btnnewworkspace
  47. margin-top 50px
  48. overflow hidden
  49. &__btn
  50. display block
  51. margin 0 auto
  52. padding 15px 30px
  53. &__navigation
  54. padding 0
  55. overflow hidden
  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 darkBlue
  64. width 100%
  65. height 100%
  66. background-color blue
  67. cursor pointer
  68. &__number
  69. leftside()
  70. padding 12px
  71. min-width 50px
  72. letter-spacing 2px
  73. &__name
  74. flex-grow 2
  75. padding 10px
  76. font-size 20px
  77. color off-white
  78. white-space nowrap
  79. overflow hidden
  80. text-overflow ellipsis
  81. &__icon
  82. flex-grow 0
  83. padding 10px
  84. color white
  85. &__submenu
  86. margin 0
  87. padding 0
  88. width 100%
  89. background-color fourthColor
  90. overflow hidden
  91. &__dropdown
  92. display flex
  93. align-items center
  94. border-top 1px solid darkBlue
  95. cursor pointer
  96. &:nth-last-child(1)
  97. border-bottom 1px solid darkBlue
  98. &:hover
  99. background-color lightBlue
  100. &__showdropdown
  101. display flex
  102. justify-content space-between
  103. align-items center
  104. padding 0 10px
  105. width 100%
  106. .dropdown__icon
  107. padding 10px 15px
  108. min-width 50px
  109. leftside()
  110. &.activeFilter
  111. .dropdown__icon
  112. background-color rgba(253, 253, 253, 0.8)