Sidebar.styl 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. display none
  18. min-height 100%
  19. background-color secondColor
  20. z-index 1
  21. sidebar-width = 300px
  22. .sidebar-visible
  23. .sidebar-expandbar
  24. left sidebar-width
  25. .sidebar
  26. &__btnnewworkspace
  27. margin-top 40px
  28. padding 10px
  29. width 100%
  30. &__btn
  31. display block
  32. margin 0 auto
  33. padding 15px 30px
  34. &__navigation
  35. padding 0
  36. &__workspace
  37. flex-direction column
  38. &__item
  39. position relative
  40. margin-top 2px
  41. width sidebar-width
  42. background-color thirdColor
  43. cursor pointer
  44. &__number
  45. display inline-block
  46. padding 10px 0
  47. width 50px
  48. font-size 20px
  49. letter-spacing 2px
  50. text-align center
  51. background-color rgba(253,253,253,0.3)
  52. &__name
  53. display inline-block
  54. vertical-align top
  55. padding 10px 5px
  56. width 220px
  57. font-size 20px
  58. color white
  59. white-space nowrap
  60. overflow hidden
  61. text-overflow ellipsis
  62. &__icon
  63. display inline-block
  64. color white
  65. &__submenu
  66. margin-bottom 0
  67. padding-left 0
  68. height 0 // height is handled is js
  69. list-style none
  70. background-color fourthColor
  71. overflow hidden
  72. transition height 0.5s
  73. &__dropdown
  74. border-top 1px solid darkBlue
  75. &:hover
  76. background-color lightBlue
  77. &__showdropdown
  78. display inline-block
  79. padding 10px 15px
  80. .dropdown__icon
  81. display inline-block
  82. padding 10px 15px
  83. width 50px
  84. text-align center
  85. background-color rgba(253,253,253,0.3)
  86. font-size 20px
  87. .dropdown__title
  88. position relative
  89. display inline-block
  90. font-size 18px
  91. font-weight 400
  92. color darkGrey
  93. cursor pointer
  94. &::after //bootstrap override
  95. position absolute
  96. top 10px
  97. left 100%
  98. &__text
  99. display inline-block
  100. width 200px
  101. .dropdown__subdropdown
  102. margin 0
  103. border-radius 0
  104. padding 0
  105. .alignname
  106. display inline-block
  107. font-size 18px
  108. &__item
  109. cursor pointer
  110. border-top 1px solid darkBlue
  111. padding 13px 0
  112. &__iconfile
  113. padding-left 18px
  114. &__textfile
  115. margin-left 38px