dropzone.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  1. /*
  2. * The MIT License
  3. * Copyright (c) 2012 Matias Meno <m@tias.me>
  4. */
  5. @-webkit-keyframes passing-through {
  6. 0% {
  7. opacity: 0;
  8. -webkit-transform: translateY(40px);
  9. transform: translateY(40px); }
  10. 30%, 70% {
  11. opacity: 1;
  12. -webkit-transform: translateY(0px);
  13. transform: translateY(0px); }
  14. 100% {
  15. opacity: 0;
  16. -webkit-transform: translateY(-40px);
  17. transform: translateY(-40px); } }
  18. @keyframes passing-through {
  19. 0% {
  20. opacity: 0;
  21. -webkit-transform: translateY(40px);
  22. transform: translateY(40px); }
  23. 30%, 70% {
  24. opacity: 1;
  25. -webkit-transform: translateY(0px);
  26. transform: translateY(0px); }
  27. 100% {
  28. opacity: 0;
  29. -webkit-transform: translateY(-40px);
  30. transform: translateY(-40px); } }
  31. @-webkit-keyframes slide-in {
  32. 0% {
  33. opacity: 0;
  34. -webkit-transform: translateY(40px);
  35. transform: translateY(40px); }
  36. 30% {
  37. opacity: 1;
  38. -webkit-transform: translateY(0px);
  39. transform: translateY(0px); } }
  40. @keyframes slide-in {
  41. 0% {
  42. opacity: 0;
  43. -webkit-transform: translateY(40px);
  44. transform: translateY(40px); }
  45. 30% {
  46. opacity: 1;
  47. -webkit-transform: translateY(0px);
  48. transform: translateY(0px); } }
  49. @-webkit-keyframes pulse {
  50. 0% {
  51. -webkit-transform: scale(1);
  52. transform: scale(1); }
  53. 10% {
  54. -webkit-transform: scale(1.1);
  55. transform: scale(1.1); }
  56. 20% {
  57. -webkit-transform: scale(1);
  58. transform: scale(1); } }
  59. @keyframes pulse {
  60. 0% {
  61. -webkit-transform: scale(1);
  62. transform: scale(1); }
  63. 10% {
  64. -webkit-transform: scale(1.1);
  65. transform: scale(1.1); }
  66. 20% {
  67. -webkit-transform: scale(1);
  68. transform: scale(1); } }
  69. .dropzone, .dropzone * {
  70. -webkit-box-sizing: border-box;
  71. box-sizing: border-box; }
  72. .dropzone {
  73. min-height: 150px;
  74. border: 2px solid rgba(0, 0, 0, 0.3);
  75. background: white;
  76. padding: 20px 20px; }
  77. .dropzone.dz-clickable {
  78. cursor: pointer; }
  79. .dropzone.dz-clickable * {
  80. cursor: default; }
  81. .dropzone.dz-clickable .dz-message, .dropzone.dz-clickable .dz-message * {
  82. cursor: pointer; }
  83. .dropzone.dz-started .dz-message {
  84. display: none; }
  85. .dropzone.dz-drag-hover {
  86. border-style: solid; }
  87. .dropzone.dz-drag-hover .dz-message {
  88. opacity: 0.5; }
  89. .dropzone .dz-message {
  90. text-align: center;
  91. margin: 2em 0; }
  92. .dropzone .dz-message .dz-button {
  93. background: none;
  94. color: inherit;
  95. border: none;
  96. padding: 0;
  97. font: inherit;
  98. cursor: pointer;
  99. outline: inherit; }
  100. .dropzone .dz-preview {
  101. position: relative;
  102. display: inline-block;
  103. vertical-align: top;
  104. margin: 16px;
  105. min-height: 100px; }
  106. .dropzone .dz-preview:hover {
  107. z-index: 1000; }
  108. .dropzone .dz-preview:hover .dz-details {
  109. opacity: 1; }
  110. .dropzone .dz-preview.dz-file-preview .dz-image {
  111. border-radius: 20px;
  112. background: #999;
  113. background: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ddd));
  114. background: linear-gradient(to bottom, #eee, #ddd); }
  115. .dropzone .dz-preview.dz-file-preview .dz-details {
  116. opacity: 1; }
  117. .dropzone .dz-preview.dz-image-preview {
  118. background: white; }
  119. .dropzone .dz-preview.dz-image-preview .dz-details {
  120. -webkit-transition: opacity 0.2s linear;
  121. transition: opacity 0.2s linear; }
  122. .dropzone .dz-preview .dz-remove {
  123. font-size: 14px;
  124. text-align: center;
  125. display: block;
  126. cursor: pointer;
  127. border: none; }
  128. .dropzone .dz-preview .dz-remove:hover {
  129. text-decoration: underline; }
  130. .dropzone .dz-preview:hover .dz-details {
  131. opacity: 1; }
  132. .dropzone .dz-preview .dz-details {
  133. z-index: 20;
  134. position: absolute;
  135. top: 0;
  136. left: 0;
  137. opacity: 0;
  138. font-size: 13px;
  139. min-width: 100%;
  140. max-width: 100%;
  141. padding: 2em 1em;
  142. text-align: center;
  143. color: rgba(0, 0, 0, 0.9);
  144. line-height: 150%; }
  145. .dropzone .dz-preview .dz-details .dz-size {
  146. margin-bottom: 1em;
  147. font-size: 16px; }
  148. .dropzone .dz-preview .dz-details .dz-filename {
  149. white-space: nowrap; }
  150. .dropzone .dz-preview .dz-details .dz-filename:hover span {
  151. border: 1px solid rgba(200, 200, 200, 0.8);
  152. background-color: rgba(255, 255, 255, 0.8); }
  153. .dropzone .dz-preview .dz-details .dz-filename:not(:hover) {
  154. overflow: hidden;
  155. text-overflow: ellipsis; }
  156. .dropzone .dz-preview .dz-details .dz-filename:not(:hover) span {
  157. border: 1px solid transparent; }
  158. .dropzone .dz-preview .dz-details .dz-filename span, .dropzone .dz-preview .dz-details .dz-size span {
  159. background-color: rgba(255, 255, 255, 0.4);
  160. padding: 0 0.4em;
  161. border-radius: 3px; }
  162. .dropzone .dz-preview:hover .dz-image img {
  163. -webkit-transform: scale(1.05, 1.05);
  164. transform: scale(1.05, 1.05);
  165. -webkit-filter: blur(8px);
  166. filter: blur(8px); }
  167. .dropzone .dz-preview .dz-image {
  168. border-radius: 20px;
  169. overflow: hidden;
  170. width: 120px;
  171. height: 120px;
  172. position: relative;
  173. display: block;
  174. z-index: 10; }
  175. .dropzone .dz-preview .dz-image img {
  176. display: block; }
  177. .dropzone .dz-preview.dz-success .dz-success-mark {
  178. -webkit-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
  179. animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1); }
  180. .dropzone .dz-preview.dz-error .dz-error-mark {
  181. opacity: 1;
  182. -webkit-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
  183. animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1); }
  184. .dropzone .dz-preview .dz-success-mark, .dropzone .dz-preview .dz-error-mark {
  185. pointer-events: none;
  186. opacity: 0;
  187. z-index: 500;
  188. position: absolute;
  189. display: block;
  190. top: 50%;
  191. left: 50%;
  192. margin-left: -27px;
  193. margin-top: -27px; }
  194. .dropzone .dz-preview .dz-success-mark svg, .dropzone .dz-preview .dz-error-mark svg {
  195. display: block;
  196. width: 54px;
  197. height: 54px; }
  198. .dropzone .dz-preview.dz-processing .dz-progress {
  199. opacity: 1;
  200. -webkit-transition: all 0.2s linear;
  201. transition: all 0.2s linear; }
  202. .dropzone .dz-preview.dz-complete .dz-progress {
  203. opacity: 0;
  204. -webkit-transition: opacity 0.4s ease-in;
  205. transition: opacity 0.4s ease-in; }
  206. .dropzone .dz-preview:not(.dz-processing) .dz-progress {
  207. -webkit-animation: pulse 6s ease infinite;
  208. animation: pulse 6s ease infinite; }
  209. .dropzone .dz-preview .dz-progress {
  210. opacity: 1;
  211. z-index: 1000;
  212. pointer-events: none;
  213. position: absolute;
  214. height: 16px;
  215. left: 50%;
  216. top: 50%;
  217. margin-top: -8px;
  218. width: 80px;
  219. margin-left: -40px;
  220. background: rgba(255, 255, 255, 0.9);
  221. -webkit-transform: scale(1);
  222. border-radius: 8px;
  223. overflow: hidden; }
  224. .dropzone .dz-preview .dz-progress .dz-upload {
  225. background: #333;
  226. background: -webkit-gradient(linear, left top, left bottom, from(#666), to(#444));
  227. background: linear-gradient(to bottom, #666, #444);
  228. position: absolute;
  229. top: 0;
  230. left: 0;
  231. bottom: 0;
  232. width: 0;
  233. -webkit-transition: width 300ms ease-in-out;
  234. transition: width 300ms ease-in-out; }
  235. .dropzone .dz-preview.dz-error .dz-error-message {
  236. display: block; }
  237. .dropzone .dz-preview.dz-error:hover .dz-error-message {
  238. opacity: 1;
  239. pointer-events: auto; }
  240. .dropzone .dz-preview .dz-error-message {
  241. pointer-events: none;
  242. z-index: 1000;
  243. position: absolute;
  244. display: block;
  245. display: none;
  246. opacity: 0;
  247. -webkit-transition: opacity 0.3s ease;
  248. transition: opacity 0.3s ease;
  249. border-radius: 8px;
  250. font-size: 13px;
  251. top: 130px;
  252. left: -10px;
  253. width: 140px;
  254. background: #be2626;
  255. background: -webkit-gradient(linear, left top, left bottom, from(#be2626), to(#a92222));
  256. background: linear-gradient(to bottom, #be2626, #a92222);
  257. padding: 0.5em 1.2em;
  258. color: white; }
  259. .dropzone .dz-preview .dz-error-message:after {
  260. content: '';
  261. position: absolute;
  262. top: -6px;
  263. left: 64px;
  264. width: 0;
  265. height: 0;
  266. border-left: 6px solid transparent;
  267. border-right: 6px solid transparent;
  268. border-bottom: 6px solid #be2626; }
  269. /* THEME COLORs
  270. ========================================================================== */
  271. /* Looks good on chrome default color profile */
  272. /* looks good in sRGB but washed up on chrome default
  273. $color-primary: #826bb0;
  274. $color-success: #31cb55;
  275. $color-info: #5e93ec;
  276. $color-warning: #eec559;
  277. $color-danger: #dc4b92;
  278. $color-fusion: darken(desaturate(adjust-hue($color-primary, 5), 80%), 25%); */
  279. /* Color Polarity
  280. ========================================================================== */
  281. /* PAINTBUCKET MIXER
  282. ========================================================================== */
  283. /* the grays */
  284. /* the sapphires */
  285. /* the emeralds */
  286. /* the amethyths */
  287. /* the topaz */
  288. /* the rubies */
  289. /* the graphites */
  290. /* Define universal border difition (div outlines, etc)
  291. ========================================================================== */
  292. /* MOBILE BREAKPOINT & GUTTERS (contains some bootstrap responsive overrides)
  293. ========================================================================== */
  294. /* define when mobile menu activates, here we are declearing (lg) so it targets the one after it */
  295. /* bootstrap reference xs: 0, sm: 544px, md: 768px, lg: 992px, xl: 1200px*/
  296. /* global var used for spacing*/
  297. /* Uniform Padding variable */
  298. /* Heads up! This is a global scoped variable - changing may impact the whole template */
  299. /* BOOTSTRAP OVERRIDES (bootstrap variables)
  300. ========================================================================== */
  301. /* usage: theme-colors("primary"); */
  302. /* forms */
  303. /*$input-height: calc(2.25rem + 1px); //I had to add this because the input gruops was having improper height for some reason... */
  304. /* links */
  305. /* checkbox */
  306. /*$custom-file-height-inner: calc(2.25rem - 1px);*/
  307. /* not part of bootstrap variable */
  308. /* custom checkbox */
  309. /* custom range */
  310. /* select */
  311. /* badge */
  312. /* cards */
  313. /*border radius*/
  314. /* alert */
  315. /* toast */
  316. /* breadcrumb */
  317. /* input button */
  318. /* nav link */
  319. /* nav, tabs, pills */
  320. /* tables */
  321. /* dropdowns */
  322. /* dropdowns sizes */
  323. /* popovers */
  324. /* tooltips */
  325. /* modal */
  326. /* reference guide
  327. http://www.standardista.com/px-to-rem-conversion-if-root-font-size-is-16px/
  328. 8px = 0.5rem
  329. 9px = 0.5625rem
  330. 10px = 0.625rem
  331. 11px = 0.6875rem
  332. 12px = 0.75rem
  333. 13px = 0.8125rem
  334. 14px = 0.875rem
  335. 15px = 0.9375rem
  336. 16px = 1rem (base)
  337. 17px = 1.0625rem
  338. 18px = 1.125rem
  339. 19px = 1.1875rem
  340. 20px = 1.25rem
  341. 21px = 1.3125rem
  342. 22px = 1.375rem
  343. 24px = 1.5rem
  344. 25px = 1.5625rem
  345. 26px = 1.625rem
  346. 28px = 1.75rem
  347. 30px = 1.875rem
  348. 32px = 2rem
  349. 34px = 2.125rem
  350. 36px = 2.25rem
  351. 38px = 2.375rem
  352. 40px = 2.5rem
  353. */
  354. /* Fonts */
  355. /* carousel */
  356. /* BASE VARS
  357. ========================================================================== */
  358. /* font vars below will auto change to rem values using function rem($value)*/
  359. /* 11px */
  360. /* 12px */
  361. /* 12.5px */
  362. /* 14px */
  363. /* 15px */
  364. /* 16px */
  365. /* 28px */
  366. /* Font Family
  367. ========================================================================== */
  368. /*hint: you can also try the font called 'Poppins' by replacing the font 'Roboto' */
  369. /* ANIMATIONS
  370. ========================================================================== */
  371. /* this addresses all animation related to nav hide to nav minify */
  372. /* Z-INDEX declearation
  373. ========================================================================== */
  374. /* we adjust bootstrap z-index to be higher than our higest z-index*/
  375. /* CUSTOM ICON PREFIX
  376. ========================================================================== */
  377. /* PRINT CSS (landscape or portrait)
  378. ========================================================================== */
  379. /* landscape or portrait */
  380. /* auto, letter */
  381. /* Common Element Variables
  382. ========================================================================== */
  383. /* Z-index decleartion "birds eye view"
  384. ========================================================================== */
  385. /* Components
  386. ========================================================================== */
  387. /* PAGE HEADER STUFF
  388. ========================================================================== */
  389. /* colors */
  390. /* height */
  391. /* logo */
  392. /* try not to go beywond the width of $main_nav_width value */
  393. /* you may need to change this depending on your logo design */
  394. /* adjust this as you see fit : left, right, center */
  395. /* icon font size (not button) */
  396. /* search input box */
  397. /* suggestion: #ccced0*/
  398. /* btn */
  399. /* dropdown: app list */
  400. /* badge */
  401. /* COMPONENTS & MODS */
  402. /* NAVIGATION STUFF
  403. Guide:
  404. aside.page-sidebar ($nav-width, $nav-background)
  405. .page-logo
  406. .primary-nav
  407. .info-card
  408. ul.nav-menu
  409. li
  410. a (parent level-0..., $nav-link-color, $nav-link-hover-color, $nav-link-hover-bg-color, $nav-link-hover-left-border-color)
  411. icon
  412. span
  413. collapse-sign
  414. ul.nav-menu-sub-one
  415. li
  416. a ($nav-level-1... $nav-sub-link-height)
  417. span
  418. collapse-sign
  419. ul.nav-menu-sub-two
  420. li
  421. a ($nav-level-2... $nav-sub-link-height)
  422. span
  423. p.nav-title ($nav-title-*...)
  424. ========================================================================== */
  425. /* main navigation */
  426. /* left panel */
  427. /* nav parent level-0 */
  428. /* nav icon sizes */
  429. /* badge default */
  430. /* all child */
  431. /* nav title */
  432. /* nav Minify */
  433. /* when the menu pops on hover */
  434. /* navigation Width */
  435. /* partial visibility of the menu */
  436. /* top navigation */
  437. /* nav Info Card (appears below the logo) */
  438. /* width is auto */
  439. /* nav DL labels for all child */
  440. /* will be pulled to left as a negative value */
  441. /* MISC Settings
  442. ========================================================================== */
  443. /* List Table */
  444. /* PAGE SETTINGS
  445. ========================================================================== */
  446. /* PAGE BREADCRUMB
  447. ========================================================================== */
  448. /* PAGE COMPONENT PANELS
  449. ========================================================================== */
  450. /* PAGE COMPONENT PROGRESSBARS
  451. ========================================================================== */
  452. /* PAGE COMPONENT MESSENGER
  453. ========================================================================== */
  454. /* FOOTER
  455. ========================================================================== */
  456. /* GLOBALS
  457. ========================================================================== */
  458. /* ACCESSIBILITIES */
  459. /* SHORTCUT BUTTON (appears on bottom right of the page) */
  460. /* GULP WARNINGS */
  461. .dropzone {
  462. border: 2px dashed #dedede;
  463. border-radius: 5px;
  464. background: #f5f5f5;
  465. display: -webkit-box;
  466. display: -ms-flexbox;
  467. display: flex;
  468. -ms-flex-wrap: wrap;
  469. flex-wrap: wrap;
  470. padding: 0.5rem; }
  471. .dropzone i {
  472. font-size: 3rem; }
  473. .dropzone .dz-message {
  474. color: rgba(0, 0, 0, 0.54);
  475. font-weight: 500;
  476. font-size: initial;
  477. text-transform: uppercase;
  478. width: 100%; }
  479. .dropzone .dz-preview .dz-image {
  480. display: -webkit-box;
  481. display: -ms-flexbox;
  482. display: flex;
  483. -webkit-box-align: center;
  484. -ms-flex-align: center;
  485. align-items: center;
  486. -webkit-box-pack: center;
  487. -ms-flex-pack: center;
  488. justify-content: center;
  489. border-radius: 0; }
  490. .dropzone .dz-preview .dz-image img {
  491. border-radius: 4px; }
  492. .dropzone .dz-preview.dz-image-preview {
  493. background: transparent; }
  494. .dropzone .dz-message {
  495. font-weight: normal;
  496. text-transform: none;
  497. color: inherit; }
  498. .dropzone.dz-drag-hover {
  499. border-style: dashed;
  500. border-color: #886ab5; }
  501. .dropzone .dz-preview.dz-file-preview .dz-image {
  502. border-radius: 4px; }
  503. /*# sourceMappingURL=dropzone.css.map */