folder-item.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. @import "vars";
  2. @import "mixins";
  3. .item {
  4. min-height: 230px;
  5. float: left;
  6. width: 20%;
  7. position: relative;
  8. margin-right: -1px;
  9. -webkit-transform-style: preserve-3d;
  10. .folder-drop {
  11. display:none;
  12. }
  13. &:hover {
  14. cursor: move;
  15. .handle,
  16. .btn-group > .btn { opacity: 1 !important; }
  17. > a .meta .type { opacity: 1 !important; }
  18. > a .meta .subspaces, .members-online {
  19. opacity: 1 !important;
  20. }
  21. }
  22. &.appear > a,
  23. &.creating > a {
  24. -webkit-animation: appear 0.25s ease-out 0.05s;
  25. -moz-animation: appear 0.25s ease-out 0.05s;
  26. -ms-animation: appear 0.25s ease-out 0.05s;
  27. -o-animation: appear 0.25s ease-out 0.05s;
  28. animation: appear 0.25s ease-out 0.05s;
  29. -webkit-animation-fill-mode: forwards;
  30. -moz-animation-fill-mode: forwards;
  31. -ms-animation-fill-mode: forwards;
  32. -o-animation-fill-mode: forwards;
  33. animation-fill-mode: forwards;
  34. }
  35. &.deleting > a {
  36. -webkit-animation: disappear 0.25s ease-out 0.05s;
  37. -moz-animation: disappear 0.25s ease-out 0.05s;
  38. -ms-animation: disappear 0.25s ease-out 0.05s;
  39. -o-animation: disappear 0.25s ease-out 0.05s;
  40. animation: disappear 0.25s ease-out 0.05s;
  41. -webkit-animation-fill-mode: forwards;
  42. -moz-animation-fill-mode: forwards;
  43. -ms-animation-fill-mode: forwards;
  44. -o-animation-fill-mode: forwards;
  45. animation-fill-mode: forwards;
  46. }
  47. &.tag-important > a {
  48. background-color: #f1c40f;
  49. }
  50. &.renaming > a {
  51. background-color: $blue !important;
  52. color: white !important;
  53. }
  54. &.dropping {
  55. .folder-drop {
  56. display:block;
  57. }
  58. }
  59. &.folder > a {
  60. box-shadow: 2px 2px 0px #ccc;
  61. }
  62. > a {
  63. opacity: 1;
  64. -webkit-box-sizing: border-box;
  65. -moz-box-sizing: border-box;
  66. -ms-box-sizing: border-box;
  67. box-sizing: border-box;
  68. background-color: white;
  69. color: #505050;
  70. font-weight: 400;
  71. padding: 20px;
  72. display: block;
  73. text-decoration: none;
  74. min-height: 150px;
  75. font-size: 16px;
  76. border-radius: 3px;
  77. position: absolute;
  78. width: auto;
  79. height: auto;
  80. top: 0px;
  81. right: 30px;
  82. bottom: 30px;
  83. left: 0px;
  84. .meta {
  85. position: absolute;
  86. width: auto;
  87. bottom: 10px;
  88. right: 20px;
  89. left: 20px;
  90. text-transform: uppercase;
  91. font-family: $main-font;
  92. .subspaces, .members-online {
  93. opacity: 0.4;
  94. }
  95. .type {
  96. // padding-left: 20px;
  97. font-weight: 700;
  98. float: left;
  99. padding-left: 19px;
  100. opacity: 0.4;
  101. }
  102. .time {
  103. }
  104. .icon {
  105. position: absolute;
  106. left: 0px;
  107. top: auto;
  108. font-size: 10px;
  109. line-height: 14px;
  110. width: 20px;
  111. }
  112. small {
  113. font-size: 70%;
  114. display: block;
  115. }
  116. }
  117. .image {
  118. display: block;
  119. height: 125px;
  120. margin: -20px;
  121. margin-bottom: 12px;
  122. background-size: cover;
  123. background-color: white;
  124. background-color: rgba(0,0,0,0.0125);
  125. border-top-left-radius: 3px;
  126. border-top-right-radius: 3px;
  127. background-position: center;
  128. background-repeat: no-repeat;
  129. }
  130. .tag {
  131. position: absolute;
  132. top: 0px;
  133. left: 0px;
  134. background-color: red;
  135. border-radius: 3px;
  136. height: 100%;
  137. width: 2px;
  138. }
  139. }
  140. &.has-image .name {
  141. display: block;
  142. overflow: hidden;
  143. text-overflow: ellipsis;
  144. white-space: nowrap;
  145. overflow: hidden;
  146. text-overflow: ellipsis;
  147. max-width: 100%;
  148. max-height: 24px;
  149. display: inline-block;
  150. word-break: break-word;
  151. }
  152. .btn-group {
  153. position: absolute;
  154. right: 30px;
  155. top: 0px;
  156. z-index: 2;
  157. > .btn { opacity: 0;}
  158. &.open {
  159. > .btn { opacity: 1; }
  160. > .dropdown-menu {}
  161. }
  162. }
  163. .handle {
  164. position: absolute;
  165. bottom: 0px;
  166. top: auto;
  167. right: 0px;
  168. height: 30px;
  169. width: 30px;
  170. cursor: move;
  171. display: none;
  172. background-image: url("../images/handle.svg");
  173. background-size: 10%;
  174. background-position: bottom right;
  175. background-repeat: no-repeat;
  176. opacity: 0.05;
  177. -webkit-transition: all 0.3s ease-out;
  178. -moz-transition: all 0.3s ease-out;
  179. transition: all 0.3s ease-out;
  180. &:hover {
  181. width: 50px;
  182. height: 50px;
  183. background-size: 100%;
  184. }
  185. }
  186. &:nth-child(1) > a .tag { background-color: #a45ab9; }
  187. &:nth-child(2) > a .tag { background-color: #e65e85; }
  188. &:nth-child(3) > a .tag { background-color: #f9ad27; }
  189. &:nth-child(4) > a .tag { background-color: #000000; }
  190. &:nth-child(5) > a .tag { background-color: #57c793; }
  191. }