Folder.styl 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. // -----------------------------------------------------
  2. // border management for Workspace container
  3. border-style = 1px solid secondColor
  4. .folder__header
  5. border border-style
  6. .folder + .content, .content + .content
  7. border-bottom 0
  8. .folder__content > .content, .folder__content > .folder
  9. border-bottom 0
  10. .folder:not(.active).item-last
  11. border-bottom border-style
  12. .content
  13. border border-style
  14. &.item-last
  15. border-bottom border-style
  16. // @Info: the very last line of file or folder has it's border bottom added in js
  17. // -----------------------------------------------------
  18. // .folder > .folder__content > .file, .folder > .folder__content > .extandedaction
  19. // padding-right 7px
  20. folderclose()
  21. height 0
  22. visibility hidden
  23. opacity 0
  24. folderopen()
  25. height 100%
  26. opacity 1
  27. visibility visible
  28. transition opacity 0.3s
  29. .folder
  30. padding-left 30px
  31. & > .folder__header
  32. folderopen()
  33. & > .folder__content
  34. folderclose()
  35. & > .file, > .folder
  36. folderclose()
  37. &.active
  38. & > .folder__header
  39. .folder__header__triangleborder
  40. display block
  41. &__triangle
  42. display block
  43. & > .folder__content
  44. folderopen()
  45. & > .file, > .folder
  46. folderopen()
  47. &__header
  48. position relative
  49. display flex
  50. align-items center
  51. margin-left -30px
  52. border-bottom 0
  53. padding 10px 0
  54. background-color lightGrey
  55. cursor pointer
  56. &:hover
  57. background-color hover-theme
  58. .folder__header__triangleborder__triangle
  59. border-color hover-theme transparent transparent transparent
  60. &__triangleborder
  61. display none
  62. position absolute
  63. bottom -25px
  64. left -1px
  65. border-style solid
  66. border-width 25px 30px 0 30px
  67. border-color secondColor transparent transparent transparent
  68. z-index 1
  69. &__triangle
  70. display none
  71. position absolute
  72. top -26px
  73. left -30px
  74. border-style solid
  75. border-width 25px 30px 0 30px
  76. border-color lightGrey transparent transparent transparent
  77. &__icon
  78. flex-grow 0
  79. padding 0 25px
  80. font-size 30px
  81. color darkGrey
  82. text-align center
  83. &__name
  84. flex-grow 2
  85. flex-shrink 2
  86. margin 0 15px 0 0
  87. white-space nowrap
  88. text-overflow ellipsis
  89. overflow hidden
  90. width 400px
  91. font-size 17px
  92. color darkGrey
  93. &__button
  94. flex-grow 0
  95. &__advancedbtn
  96. position relative
  97. &__addbtn
  98. display flex
  99. margin auto 0
  100. cursor pointer
  101. &:hover > .folder__header__name__addbtn__text
  102. color white
  103. .addbtn
  104. &__text
  105. margin-right 40px
  106. font-size 17px
  107. color fontColor
  108. border-color secondColor
  109. &:hover, &:focus, &:active
  110. color off-white
  111. border-color thirdColor
  112. background-color thirdColor
  113. box-shadow 0 0 1px 2px fifthColor
  114. outline fifthColor
  115. &::after
  116. margin-left 20px
  117. &__subdropdown
  118. padding 0
  119. &__status
  120. flex-grow 0
  121. padding 0 15px
  122. width 180px
  123. &__contenttype
  124. display flex
  125. justify-content flex-end
  126. &__text
  127. font-size 17px
  128. color darkBlue
  129. &__icon
  130. font-size 17px
  131. color darkBlue
  132. & > i
  133. margin-right 3px
  134. @media (max-width: max-xs)
  135. .folder
  136. &__header
  137. &__name
  138. &__icon
  139. padding 14px 15px
  140. font-size 20px
  141. &__text
  142. font-size 15px