Folder.styl 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. font-size 17px
  91. color darkGrey
  92. &__button
  93. flex-grow 0
  94. &__advancedbtn
  95. position relative
  96. &__addbtn
  97. display flex
  98. margin auto 0
  99. cursor pointer
  100. &:hover > .folder__header__name__addbtn__text
  101. color white
  102. .addbtn
  103. &__text
  104. margin-right 40px
  105. font-size 17px
  106. &::after
  107. margin-left 20px
  108. &__subdropdown
  109. padding 0
  110. &__status
  111. flex-grow 0
  112. padding 0 15px
  113. width 180px
  114. &__contenttype
  115. display flex
  116. justify-content flex-end
  117. &__text
  118. font-size 17px
  119. color darkBlue
  120. &__icon
  121. font-size 17px
  122. color darkBlue
  123. & > i
  124. margin-right 3px
  125. @media (min-width: min-sm) and (max-width: max-md)
  126. .folder__header__button
  127. display none
  128. @media (max-width: max-xs)
  129. .folder
  130. &__header
  131. &__name
  132. &__icon
  133. padding 14px 15px
  134. font-size 20px
  135. &__text
  136. font-size 15px
  137. &__button
  138. display none