Folder.styl 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. // -----------------------------------------------------
  2. // border management for Workspace container
  3. border-style = 1px solid secondColor
  4. .folder__header
  5. border border-style
  6. .folder + .file, .file + .file
  7. border-bottom 0
  8. .folder__content > .file, .folder__content > .folder
  9. border-bottom 0
  10. .folder:not(.active).item-last
  11. border-bottom border-style
  12. .file
  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.active > .folder__content > .file, .folder.active > .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. justify-content space-between
  51. margin-left -30px
  52. border-bottom 0
  53. padding 10px 0
  54. background-color lightGrey
  55. cursor pointer
  56. &:hover
  57. background-color fourthColor
  58. .folder__header__triangleborder__triangle
  59. border-color fourthColor 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. &__name
  78. display flex
  79. &__icon
  80. font-size 25px
  81. color darkGrey
  82. text-align center
  83. &__text
  84. margin 0 15px 0 0
  85. white-space nowrap
  86. text-overflow ellipsis
  87. overflow hidden
  88. width 400px
  89. font-size 17px
  90. color darkGrey
  91. &__button
  92. &__advancedbtn
  93. position relative
  94. &__addbtn
  95. margin auto 0
  96. cursor pointer
  97. &:hover > .folder__header__name__addbtn__text
  98. color white
  99. .addbtn
  100. &__text
  101. font-size 17px
  102. color thirdColor
  103. border-color thirdColor
  104. &:hover, &:focus, &:active
  105. color off-white
  106. border-color thirdColor
  107. background-color thirdColor
  108. box-shadow 0 0 1px 2px fifthColor
  109. outline fifthColor
  110. &::after
  111. margin-left 20px
  112. &__subdropdown
  113. padding 0
  114. .subdropdown__link
  115. padding 10px
  116. &__contenttype
  117. display flex
  118. justify-content flex-end
  119. &__text
  120. font-size 17px
  121. color darkBlue
  122. &__icon
  123. font-size 17px
  124. color darkBlue
  125. & > i
  126. margin-right 3px
  127. @media (max-width: max-xs)
  128. .folder
  129. &__header
  130. &__name
  131. &__icon
  132. padding 14px 15px
  133. font-size 20px
  134. &__text
  135. font-size 15px