folder.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  1. @import "vars";
  2. @import "mixins";
  3. @import "unicode";
  4. @-webkit-keyframes appear {
  5. 0% { opacity: 0;}
  6. 30% { opacity: 0;}
  7. 100% { opacity: 1; }
  8. }
  9. .avatar {
  10. background-color: $blue;
  11. font-family: $main-font;
  12. color: white;
  13. display: inline-block;
  14. height: 30px;
  15. width: 30px;
  16. line-height: 30px;
  17. text-align: center;
  18. border-radius: $radius;
  19. background-size: cover;
  20. background-position: center;
  21. }
  22. #user-root {
  23. margin-left: 5px !important;
  24. padding: 0px !important;
  25. .btn {margin-right: 10px; }
  26. }
  27. #sidebar.folder-sidebar {
  28. background-color: white !important;
  29. }
  30. #folder-search {
  31. width: 200px;
  32. }
  33. #folder-breadcrumb {
  34. vertical-align: middle;
  35. padding: 20px;
  36. font-size: 0px;
  37. padding-bottom: 30px;
  38. .btn {
  39. .btn-icon {
  40. position: relative;
  41. top: -3px;
  42. margin-right: 7px;
  43. margin-left: 5px;
  44. }
  45. padding-left: 0;
  46. }
  47. .seperator {
  48. padding-left: 10px;
  49. opacity: 0.5;
  50. }
  51. }
  52. #folder-filter {
  53. display: inline-block;
  54. vertical-align: middle;
  55. list-style: none;
  56. padding: 0;
  57. margin: 0;
  58. padding-right: 20px;
  59. li {
  60. display: inline-block;
  61. line-height: 44px;
  62. &.active span {color: $light; }
  63. span {
  64. color: $medium;
  65. display: inline-block;
  66. cursor: pointer;
  67. line-height: 44px;
  68. font-size: 15px;
  69. padding: 0 5px;
  70. }
  71. }
  72. }
  73. #folder {
  74. position: absolute;
  75. height: 100%;
  76. width: 100%;
  77. right: 0px;
  78. left: 0px;
  79. top: 0px;
  80. bottom: 0px;
  81. z-index: 1000;
  82. @include clearfix();
  83. @include user-select(none);
  84. }
  85. #folder-empty {
  86. top: 0;
  87. left: 0;
  88. pointer-events: none;
  89. position: absolute;
  90. display: table;
  91. height: 100%;
  92. width: 100%;
  93. > div {
  94. display: table-cell;
  95. vertical-align: middle;
  96. text-align: center;
  97. padding: 40px;
  98. .wrapper {
  99. height: auto;
  100. min-height: 0;
  101. }
  102. p {
  103. border-radius: 100px;
  104. font-size: $font-size;
  105. line-height: $line-height;
  106. display: block;
  107. color: $medium;
  108. }
  109. }
  110. }
  111. #folder-table {
  112. // margin: 0 -40px;
  113. margin-bottom: 40px;
  114. width: auto;
  115. td {
  116. position: relative;
  117. }
  118. .dropdown {
  119. position: static;
  120. z-index: initial;
  121. }
  122. .folder .icon {
  123. color: $yellow;
  124. opacity: 1;
  125. }
  126. .item-title {
  127. width: 100%;
  128. a {
  129. display: inline-block;
  130. height: 70px;
  131. line-height: 70px;
  132. width: 100%;
  133. }
  134. > .icon {
  135. margin-left: -15px
  136. }
  137. }
  138. td.item-type {
  139. width: 1%;
  140. text-transform: capitalize;
  141. }
  142. .item-date {
  143. text-align: right;
  144. width: 1%;
  145. }
  146. .item-action {
  147. width: 1%;
  148. padding-left: 0px;
  149. padding-right: 30px;
  150. }
  151. .fav-toggle {
  152. z-index: 500;
  153. // margin-left: -15px;
  154. // margin-top: -18px;
  155. margin-right: -60px;
  156. // margin-bottom: -18px;
  157. @include transition( all 0.125s ease-in-out);
  158. .icon {
  159. left: 0px;
  160. top: 0px;
  161. line-height: 60px;
  162. font-size: 13px;
  163. position: absolute;
  164. @include scale(0,0);
  165. @include transition( all 0.125s ease-in-out);
  166. @include opacity(0.25);
  167. }
  168. &:hover {
  169. margin-right: -12px;
  170. .icon {
  171. @include scale(1,1);
  172. }
  173. }
  174. }
  175. }
  176. #folder-header {
  177. background-color: rgba(41,41,41,0.95);
  178. background-color: rgba(245,245,245,0.95);
  179. }
  180. #folder-wrapper {
  181. padding-top: 64px;
  182. }
  183. #folder-grid,
  184. #folder-header {
  185. width: 100%;
  186. margin: auto;
  187. }
  188. #folder-grid .item {
  189. float: left;
  190. width: 100%;
  191. @media screen and (min-width: 640px) {width: 50%; }
  192. @media screen and (min-width: 800px) {width: 33.333333%; }
  193. @media screen and (min-width: 1000px) {width: 25%; }
  194. @media screen and (min-width: 1200px) {width: 20%; }
  195. }
  196. .compact-hidden {
  197. @media screen and (max-width: 900px) {
  198. display: none;
  199. }
  200. }
  201. #folder-grid {
  202. padding-bottom: $folder-gutter;
  203. padding-left: $folder-gutter;
  204. padding-right: $folder-gutter;
  205. @include clearfix();
  206. position: relative;
  207. z-index: 400;
  208. text-align: left;
  209. width: 100%;
  210. margin: auto;
  211. // -webkit-line-break: after-white-space;
  212. // -webkit-column-width: 400px;
  213. // -webkit-column-gap: $gutter-c;
  214. // -webkit-column-fill: balance;
  215. // -moz-line-break: after-white-space;
  216. // -moz-column-width: 400px;
  217. // -moz-column-gap: $gutter-c;
  218. // -moz-column-fill: balance;
  219. // word-wrap: break-word;
  220. .item {
  221. box-shadow: 0 0 1pxrgba(0,0,0,0.1);
  222. display: inline-block;
  223. text-align: left;
  224. padding-right: $folder-gutter*2;
  225. padding-bottom: $folder-gutter*2;
  226. margin-bottom: $folder-gutter;
  227. position: relative;
  228. @include backface-visibility(hidden);
  229. cursor: pointer;
  230. .folder-drop {display:none; }
  231. &.appear > a,
  232. &.creating > a {
  233. opacity: 0;
  234. -webkit-animation: appear 0.25s ease-out 0.05s;
  235. -moz-animation: appear 0.25s ease-out 0.05s;
  236. -ms-animation: appear 0.25s ease-out 0.05s;
  237. -o-animation: appear 0.25s ease-out 0.05s;
  238. animation: appear 0.25s ease-out 0.05s;
  239. -webkit-animation-fill-mode: forwards;
  240. -moz-animation-fill-mode: forwards;
  241. -ms-animation-fill-mode: forwards;
  242. -o-animation-fill-mode: forwards;
  243. animation-fill-mode: forwards;
  244. }
  245. &.deleting > a {
  246. -webkit-animation: disappear 0.25s ease-out 0.05s;
  247. -moz-animation: disappear 0.25s ease-out 0.05s;
  248. -ms-animation: disappear 0.25s ease-out 0.05s;
  249. -o-animation: disappear 0.25s ease-out 0.05s;
  250. animation: disappear 0.25s ease-out 0.05s;
  251. -webkit-animation-fill-mode: forwards;
  252. -moz-animation-fill-mode: forwards;
  253. -ms-animation-fill-mode: forwards;
  254. -o-animation-fill-mode: forwards;
  255. animation-fill-mode: forwards;
  256. }
  257. &.tag-important > a {
  258. background-color: #f1c40f;
  259. }
  260. &.renaming > a {
  261. background-color: $blue !important;
  262. color: white !important;
  263. }
  264. &.dropping {
  265. .folder-drop {
  266. display:block;
  267. }
  268. }
  269. &.folder button {
  270. color: black;
  271. }
  272. &.folder > a {
  273. &:after {
  274. content: "";
  275. height: 6px;
  276. left: 6px;
  277. position: absolute;
  278. right: 6px;
  279. top: -6px;
  280. border-top-left-radius: $radius * 2;
  281. border-top-right-radius: $radius * 2;
  282. display: block;
  283. background-color: #2664b7;
  284. }
  285. top: 0px;
  286. background-color: $blue;
  287. .item-thumbnail {
  288. bottom: 0px;
  289. //opacity: 0.05;
  290. z-index: 1;
  291. }
  292. .item-title {
  293. background-color: transparent;
  294. color: $light;
  295. &:before {
  296. content: "";
  297. display: block;
  298. width: 100%;
  299. height: 100px;
  300. background-color: $darker;
  301. position: absolute;
  302. bottom: 2px;
  303. -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0)), to(rgba(0,0,0,0.1)));
  304. background-color: black;
  305. pointer-events: none;
  306. }
  307. }
  308. }
  309. &.favorite {
  310. .fav-toggle {
  311. margin-right: -12px;
  312. .icon {
  313. @include scale(1,1);
  314. @include opacity(1);
  315. }
  316. }
  317. }
  318. .item-type:before {
  319. @include icon;
  320. @include icon-sm;
  321. top: -6px;
  322. left: -6px;
  323. }
  324. &.folder-up:before,
  325. &.folder .item-type:before {
  326. @extend .icon-folder:before;
  327. }
  328. &.space .item-type:before {
  329. @extend .icon-page-horizontal:before;
  330. }
  331. > a {
  332. /* aspect ratio without spacer image */
  333. &:before{
  334. content: "";
  335. display: block;
  336. padding-top: 100%; /* initial ratio of 1:1*/
  337. padding-top: 80%;
  338. }
  339. background-color: white;
  340. border-radius: $radius*2;
  341. &:active { opacity: 0.95 !important; }
  342. box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.025), 0 2px 7px rgba(0, 0, 0, 0.025);
  343. @include opacity(1);
  344. color: $medium;
  345. // color: white;
  346. font-weight: 400;
  347. display: block;
  348. text-decoration: none;
  349. border-radius: $radius*2;
  350. position: relative;
  351. .item-thumbnail {
  352. @include transition(all 0.125s ease-in-out);
  353. display: block;
  354. height: auto;
  355. top: 0px;
  356. bottom: 0px;
  357. position: absolute;
  358. width: 100%;
  359. overflow: hidden;
  360. background-size: cover;
  361. background-color: transparent;
  362. border-top-left-radius: $radius*2;
  363. border-top-right-radius: $radius*2;
  364. border-bottom-left-radius: 10px;
  365. border-bottom-right-radius: 10px;
  366. background-position: center 100%;
  367. background-repeat: no-repeat;
  368. }
  369. .item-title {
  370. display: block;
  371. border-top: 1px solid rgba(0,0,0,0.05);
  372. background-color: white;
  373. font-size: 18px;
  374. width: 100%;
  375. padding: 16px 25px;
  376. left: 0px;
  377. bottom: 0px;
  378. position: absolute;
  379. border-bottom-left-radius: $radius*2;
  380. border-bottom-right-radius: $radius*2;
  381. white-space: nowrap;
  382. overflow: hidden;
  383. text-overflow: ellipsis;
  384. color: $dark;
  385. text-align: left;
  386. }
  387. .thumbnail-loading {
  388. position: absolute;
  389. z-index: 0;
  390. background-color: white;
  391. background-image: url("/images/spinner2.gif");
  392. background-repeat: no-repeat;
  393. background-position: 50% 50%;
  394. background-size: cover;
  395. }
  396. }
  397. &.folder .item-title {
  398. //background-color: $blue;
  399. }
  400. .item-meta {
  401. border-top: 2px solid rgba(0,0,0,0.025);
  402. border-radius: 2*$radius;
  403. border-top-left-radius: 0;
  404. border-top-right-radius: 0;
  405. @include clearfix;
  406. color: $medium;
  407. position: absolute;
  408. bottom: 40px;
  409. right: 40px;
  410. left: 0px;
  411. z-index: 100;
  412. width: auto;
  413. background-color: rgba(255,255,255,1);
  414. .dropdown {
  415. position: absolute;
  416. bottom: 0;
  417. right: 0;
  418. }
  419. .item-title {
  420. display: block;
  421. font-size: 18px;
  422. width: auto;
  423. padding: 16px 25px;
  424. padding-right: 40px;
  425. left: 0px;
  426. bottom: 0px;
  427. position: relative;
  428. border-bottom-left-radius: $radius*2;
  429. border-bottom-right-radius: $radius*2;
  430. //white-space: nowrap;
  431. overflow: hidden;
  432. text-overflow: ellipsis;
  433. color: $dark;
  434. text-align: left;
  435. }
  436. .item-social {
  437. padding: 8px;
  438. border-right: 2px solid rgba(0,0,0,0.025);
  439. @include clearfix;
  440. color: $medium;
  441. .item-likes,
  442. .item-comments,
  443. .item-shares {
  444. position: relative;
  445. &:hover {
  446. .icon {opacity: 0; }
  447. .number {opacity: 1; }
  448. }
  449. .number {
  450. position: absolute;
  451. opacity: 0;
  452. top: 0;
  453. left: 0;
  454. }
  455. .icon {opacity: 0.5; }
  456. }
  457. }
  458. }
  459. .item-appendix {
  460. pointer-events: none;
  461. width: auto;
  462. position: absolute;
  463. bottom: 0;
  464. left: 0;
  465. right: $folder-gutter*2;
  466. color: $medium;
  467. font-size: 11px;
  468. font-family: $main-font;
  469. text-align: left;
  470. }
  471. }
  472. }