style.scss 23 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228
  1. @import '@uppy/core/src/_utils.scss';
  2. @import '@uppy/core/src/_variables.scss';
  3. @import '@uppy/informer/src/style.scss';
  4. @import '@uppy/status-bar/src/style.scss';
  5. @import '@uppy/provider-views/src/style.scss';
  6. // transitions //
  7. .uppy-transition-slideDownUp-enter {
  8. opacity: 0.01;
  9. transform: translate3d(0, -105%, 0);
  10. transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
  11. }
  12. .uppy-transition-slideDownUp-enter.uppy-transition-slideDownUp-enter-active {
  13. opacity: 1;
  14. transform: translate3d(0, 0, 0);
  15. }
  16. .uppy-transition-slideDownUp-leave {
  17. opacity: 1;
  18. transform: translate3d(0, 0, 0);
  19. transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
  20. }
  21. .uppy-transition-slideDownUp-leave.uppy-transition-slideDownUp-leave-active {
  22. opacity: 0.01;
  23. transform: translate3d(0, -105%, 0);
  24. }
  25. // end transitions //
  26. .uppy-Dashboard--modal {
  27. z-index: $zIndex-2;
  28. }
  29. .uppy-Dashboard--modal[aria-hidden=true] {
  30. display: none;
  31. }
  32. // Modal open/close animations
  33. @keyframes uppy-Dashboard-fadeIn {
  34. from { opacity: 0; }
  35. to { opacity: 1; }
  36. }
  37. @keyframes uppy-Dashboard-fadeOut {
  38. from { opacity: 1; }
  39. to { opacity: 0; }
  40. }
  41. @keyframes uppy-Dashboard-slideDownAndFadeIn {
  42. from { transform: translate3d(-50%, -70%, 0); opacity: 0; }
  43. to { transform: translate3d(-50%, -50%, 0); opacity: 1; }
  44. }
  45. @keyframes uppy-Dashboard-slideDownAndFadeIn--small {
  46. from { transform: translate3d(0, -20%, 0); opacity: 0; }
  47. to { transform: translate3d(0, 0, 0); opacity: 1; }
  48. }
  49. @keyframes uppy-Dashboard-slideUpFadeOut {
  50. from { transform: translate3d(-50%, -50%, 0); opacity: 1; }
  51. to { transform: translate3d(-50%, -70%, 0); opacity: 0; }
  52. }
  53. @keyframes uppy-Dashboard-slideUpFadeOut--small {
  54. from { transform: translate3d(0, 0, 0); opacity: 1; }
  55. to { transform: translate3d(0, -20%, 0); opacity: 0; }
  56. }
  57. .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose > .uppy-Dashboard-inner {
  58. animation: uppy-Dashboard-slideDownAndFadeIn--small 0.3s cubic-bezier(0, 0, .2, 1);
  59. @media #{$screen-medium} {
  60. animation: uppy-Dashboard-slideDownAndFadeIn 0.3s cubic-bezier(0, 0, .2, 1);
  61. }
  62. }
  63. .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose > .uppy-Dashboard-overlay {
  64. animation: uppy-Dashboard-fadeIn 0.3s cubic-bezier(0, 0, .2, 1);
  65. }
  66. .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing > .uppy-Dashboard-inner {
  67. animation: uppy-Dashboard-slideUpFadeOut--small 0.3s cubic-bezier(0, 0, .2, 1);
  68. @media #{$screen-medium} {
  69. animation: uppy-Dashboard-slideUpFadeOut 0.3s cubic-bezier(0, 0, .2, 1);
  70. }
  71. }
  72. .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing > .uppy-Dashboard-overlay {
  73. animation: uppy-Dashboard-fadeOut 0.3s cubic-bezier(0, 0, .2, 1);
  74. }
  75. // Added to body to prevent the page from scrolling when Modal is open
  76. .uppy-Dashboard-isFixed {
  77. overflow: hidden;
  78. height: 100vh;
  79. }
  80. .uppy-Dashboard--modal .uppy-Dashboard-overlay {
  81. position: fixed;
  82. top: 0;
  83. left: 0;
  84. right: 0;
  85. bottom: 0;
  86. background-color: rgba($color-black, 0.5);
  87. z-index: $zIndex-2;
  88. }
  89. .uppy-Dashboard-inner {
  90. position: relative;
  91. background-color: $color-almost-white;
  92. max-width: 100%; /* no !important */
  93. max-height: 100%; /* no !important */
  94. // min-width: 290px;
  95. // min-height: 450px is required for everything to fit on mobile
  96. min-height: 450px;
  97. outline: none;
  98. border: 1px solid rgba($color-gray, 0.2);
  99. border-radius: 5px;
  100. .uppy-size--md & {
  101. min-height: auto;
  102. }
  103. @media #{$screen-medium} {
  104. width: 750px; /* no !important */
  105. height: 550px; /* no !important */
  106. }
  107. .uppy-Dashboard--modal & {
  108. z-index: $zIndex-3;
  109. }
  110. }
  111. .uppy-Dashboard-innerWrap {
  112. display: flex;
  113. flex-direction: column;
  114. height: 100%;
  115. overflow: hidden;
  116. position: relative;
  117. border-radius: 5px;
  118. opacity: 0;
  119. }
  120. .uppy-Dashboard--isInnerWrapVisible .uppy-Dashboard-innerWrap{
  121. opacity: 1;
  122. }
  123. .uppy-Dashboard--modal .uppy-Dashboard-inner {
  124. position: fixed;
  125. top: 35px;
  126. left: 15px;
  127. right: 15px;
  128. bottom: 15px;
  129. border: none;
  130. @media #{$screen-medium} {
  131. top: 50%;
  132. left: 50%;
  133. transform: translate(-50%, -50%);
  134. box-shadow: 0 5px 15px 4px rgba($color-black, 0.15);
  135. }
  136. }
  137. .uppy-Dashboard-close {
  138. display: block;
  139. position: absolute;
  140. top: -33px;
  141. right: -2px;
  142. cursor: pointer;
  143. color: rgba($color-white, 0.9);
  144. font-size: 27px;
  145. z-index: $zIndex-5;
  146. @media #{$screen-medium} {
  147. font-size: 35px;
  148. top: -10px;
  149. right: -35px;
  150. }
  151. }
  152. .uppy-DashboardAddFiles {
  153. display: flex;
  154. justify-content: center;
  155. align-items: center;
  156. flex-direction: column;
  157. height: 100%;
  158. position: relative;
  159. text-align: center;
  160. flex: 1;
  161. }
  162. .uppy-DashboardTabs {
  163. display: flex;
  164. flex-direction: column;
  165. justify-content: center;
  166. width: 100%;
  167. .uppy-size--md & {
  168. align-items: center;
  169. }
  170. }
  171. .uppy-DashboardTabs-title {
  172. font-size: 15px;
  173. line-height: 30px;
  174. font-weight: 400;
  175. margin: 0;
  176. padding: 0;
  177. text-align: center;
  178. color: $color-asphalt-gray;
  179. .uppy-size--md & {
  180. font-size: 17px;
  181. line-height: 40px;
  182. }
  183. }
  184. .uppy-DashboardAddFiles-info {
  185. padding-top: 15px;
  186. padding-bottom: 15px;
  187. .uppy-size--md & {
  188. position: absolute;
  189. bottom: 30px;
  190. left: 0;
  191. right: 0;
  192. padding-top: 30px;
  193. padding-bottom: 0;
  194. }
  195. }
  196. .uppy-Dashboard-browse {
  197. @include reset-button;
  198. cursor: pointer;
  199. color: rgba($color-cornflower-blue, 0.9);
  200. }
  201. .uppy-Dashboard-browse:focus {
  202. outline: none;
  203. border-bottom: 2px solid $color-cornflower-blue;
  204. }
  205. .uppy-DashboardTabs-list {
  206. display: flex;
  207. flex-direction: column;
  208. max-height: 300px;
  209. overflow-x: auto;
  210. -webkit-overflow-scrolling: touch;
  211. margin-top: 10px;
  212. padding: 2px 0;
  213. .uppy-size--md & {
  214. flex-direction: row;
  215. flex-wrap: wrap;
  216. justify-content: center;
  217. max-width: 600px;
  218. overflow-x: initial;
  219. margin-top: 30px;
  220. padding-top: 0;
  221. }
  222. }
  223. .uppy-DashboardTab {
  224. width: 100%;
  225. display: inline-block;
  226. text-align: center;
  227. border-bottom: 1px solid rgba($color-gray, 0.2);
  228. padding: 0px 2px;
  229. .uppy-size--md & {
  230. width: initial;
  231. margin-bottom: 20px;
  232. border-bottom: initial;
  233. padding: 0;
  234. }
  235. }
  236. .uppy-DashboardTab-btn {
  237. width: 100%;
  238. height: 100%;
  239. cursor: pointer;
  240. border: 0;
  241. background-color: transparent;
  242. -webkit-appearance: none;
  243. appearance: none;
  244. color: darken($color-gray, 25%);
  245. display: flex;
  246. flex-direction: row;
  247. align-items: center;
  248. padding: 12px 20px;
  249. line-height: 1;
  250. .uppy-size--md & {
  251. width: 80px;
  252. margin: 0 5px;
  253. flex-direction: column;
  254. padding: 0;
  255. }
  256. }
  257. .uppy-DashboardTab-btn:hover {
  258. color: $color-cornflower-blue;
  259. }
  260. .uppy-DashboardTab-btn:focus {
  261. outline-offset: 0;
  262. .uppy-size--md & {
  263. outline-offset: $size-focus-offset;
  264. }
  265. }
  266. .uppy-DashboardTab-btn svg {
  267. margin-right: 10px;
  268. .uppy-size--md & {
  269. margin-right: 0;
  270. }
  271. }
  272. .uppy-DashboardTab-btn svg {
  273. max-width: 100%;
  274. max-height: 100%;
  275. display: inline-block;
  276. vertical-align: text-top;
  277. overflow: hidden;
  278. transition: transform ease-in-out 0.2s;
  279. }
  280. .uppy-DashboardTab-btn:hover svg {
  281. transform: scale(1.1, 1.1);
  282. }
  283. .uppy-DashboardTab-name {
  284. font-size: 14px;
  285. font-weight: 500;
  286. .uppy-size--md & {
  287. font-size: 11px;
  288. line-height: 14px;
  289. margin-top: 8px;
  290. margin-bottom: 0;
  291. }
  292. }
  293. // On SVG sizing: https://sarasoueidan.com/blog/svg-style-inheritance-and-FOUSVG/
  294. .uppy-DashboardTab svg {
  295. width: 18px;
  296. height: 18px;
  297. vertical-align: middle;
  298. .uppy-size--md & {
  299. width: 27px;
  300. height: 27px;
  301. }
  302. }
  303. .uppy-Dashboard-input {
  304. width: 0.1px;
  305. height: 0.1px;
  306. opacity: 0;
  307. overflow: hidden;
  308. position: absolute;
  309. z-index: -1;
  310. }
  311. .uppy-DashboardContent-bar {
  312. display: flex;
  313. align-items: center;
  314. justify-content: space-between;
  315. height: 40px;
  316. width: 100%;
  317. border-bottom: 1px solid rgba($color-gray, 0.3);
  318. z-index: $zIndex-4;
  319. background-color: $color-almost-white;
  320. padding: 0 10px;
  321. .uppy-size--md & {
  322. height: 50px;
  323. padding: 0 15px;
  324. }
  325. }
  326. .uppy-DashboardContent-title {
  327. position: absolute;
  328. top: 0;
  329. left: 0;
  330. right: 0;
  331. text-align: center;
  332. font-size: 12px;
  333. line-height: 40px;
  334. font-weight: normal;
  335. max-width: 170px;
  336. text-overflow: ellipsis;
  337. white-space: nowrap;
  338. overflow-x: hidden;
  339. margin: auto;
  340. .uppy-size--md & {
  341. font-size: 14px;
  342. line-height: 50px;
  343. max-width: 300px;
  344. }
  345. }
  346. .uppy-DashboardContent-back {
  347. @include reset-button;
  348. font-size: 13px;
  349. font-weight: 500;
  350. cursor: pointer;
  351. color: $color-cornflower-blue;
  352. .uppy-size--md & {
  353. font-size: 15px;
  354. }
  355. }
  356. .uppy-DashboardContent-addMore {
  357. @include reset-button;
  358. font-weight: 500;
  359. cursor: pointer;
  360. color: $color-cornflower-blue;
  361. stroke: $color-cornflower-blue;
  362. stroke-width: 0.7px;
  363. width: 13px;
  364. height: 13px;
  365. .uppy-size--md & {
  366. width: 15px;
  367. height: 15px;
  368. }
  369. }
  370. .uppy-DashboardContent-addMore svg {
  371. vertical-align: text-top;
  372. }
  373. .uppy-DashboardContent-panel {
  374. position: absolute;
  375. top: 0;
  376. bottom: 0;
  377. left: 0;
  378. right: 0;
  379. background-color: darken($color-white, 4%);
  380. overflow: hidden;
  381. z-index: $zIndex-5;
  382. border-radius: 5px;
  383. display: flex;
  384. flex-direction: column;
  385. flex: 1;
  386. }
  387. .uppy-Dashboard-AddFilesPanel {
  388. position: absolute;
  389. top: 0;
  390. bottom: 0;
  391. left: 0;
  392. right: 0;
  393. background: $color-almost-white;
  394. background: linear-gradient(0deg, $color-almost-white 35%, rgba($color-almost-white, 0.85) 100%);
  395. box-shadow: 0 0 10px 5px rgba($color-black, 0.15);
  396. overflow: hidden;
  397. z-index: $zIndex-5;
  398. border-radius: 5px;
  399. display: flex;
  400. flex-direction: column;
  401. }
  402. .uppy-Dashboard--isAddFilesPanelVisible .uppy-Dashboard-files {
  403. filter: blur(2px);
  404. }
  405. // Progress bar placeholder
  406. .uppy-Dashboard-progress {
  407. position: absolute;
  408. bottom: 0;
  409. left: 0;
  410. width: 100%;
  411. height: 12%;
  412. }
  413. .uppy-Dashboard-progressBarContainer.is-active {
  414. z-index: $zIndex-4;
  415. position: absolute;
  416. top: 0;
  417. left: 0;
  418. width: 100%;
  419. height: 100%;
  420. }
  421. .uppy-Dashboard-next {
  422. position: absolute;
  423. top: 0;
  424. left: 0;
  425. width: 100%;
  426. height: 100%;
  427. background: none;
  428. background-color: rgba($color-gray, 0.7);
  429. -webkit-appearance: none;
  430. appearance: none;
  431. border: 0;
  432. z-index: $zIndex-3;
  433. transition: background-color 0.5s;
  434. color: $color-white;
  435. font-family: inherit;
  436. font-size: 14px;
  437. line-height: 1;
  438. padding: 0;
  439. margin: 0;
  440. outline: none;
  441. cursor: not-allowed;
  442. }
  443. .uppy-Dashboard-next.is-active {
  444. cursor: pointer;
  445. background-color: $color-cornflower-blue;
  446. &:hover {
  447. background-color: darken($color-cornflower-blue, 20%);
  448. }
  449. }
  450. .uppy-Dashboard-filesContainer {
  451. @include clearfix;
  452. position: relative;
  453. overflow-y: hidden;
  454. margin: 0;
  455. flex: 1;
  456. }
  457. .uppy-Dashboard-files {
  458. margin: 0;
  459. padding: 0 0 10px 0;
  460. overflow-y: auto;
  461. -webkit-overflow-scrolling: touch;
  462. flex: 1;
  463. }
  464. .uppy-size--md .uppy-Dashboard-files {
  465. padding-top: 10px;
  466. }
  467. .uppy-Dashboard.drag .uppy-Dashboard-innerWrap {
  468. background-color: darken($color-almost-white, 25%)
  469. }
  470. .uppy-Dashboard.drag .uppy-Dashboard-AddFilesPanel {
  471. background: darken($color-almost-white, 20%)
  472. }
  473. .uppy-Dashboard.drag .uppy-Dashboard-files--noFiles {
  474. border-color: darken($color-almost-white, 20%);
  475. }
  476. .uppy-Dashboard-dropFilesTitle {
  477. max-width: 300px;
  478. text-align: center;
  479. font-size: 16px;
  480. line-height: 1.45;
  481. font-weight: 400;
  482. color: $color-asphalt-gray;
  483. margin: auto;
  484. padding: 0 15px;
  485. padding-top: 20px;
  486. .uppy-size--md & {
  487. max-width: 400px;
  488. font-size: 27px;
  489. }
  490. }
  491. .uppy-Dashboard-note {
  492. font-size: 13px;
  493. line-height: 1.25;
  494. text-align: center;
  495. color: rgba($color-asphalt-gray, 0.8);
  496. max-width: 350px;
  497. margin: auto;
  498. padding: 0 15px;
  499. .uppy-size--md & {
  500. font-size: 16px;
  501. line-height: 1.35;
  502. max-width: 600px;
  503. }
  504. }
  505. a.uppy-Dashboard-poweredBy {
  506. display: inline-block;
  507. text-align: center;
  508. font-size: 11px;
  509. color: $color-gray;
  510. text-decoration: none;
  511. margin-top: 8px;
  512. }
  513. .uppy-Dashboard-poweredByIcon {
  514. stroke: $color-gray;
  515. fill: none;
  516. margin-left: 1px;
  517. margin-right: 1px;
  518. position: relative;
  519. top: 1px;
  520. opacity: 0.9;
  521. vertical-align: text-top;
  522. }
  523. .uppy-DashboardItem {
  524. list-style: none;
  525. margin: 10px 0;
  526. position: relative;
  527. display: flex;
  528. align-items: center;
  529. border-bottom: 1px solid lighten($color-gray, 35%);
  530. padding-bottom: 10px;
  531. padding-left: 10px;
  532. $rl-margin: 15px;
  533. .uppy-size--md & {
  534. float: left;
  535. margin: 5px $rl-margin;
  536. width: calc(33.333% - #{$rl-margin} - #{$rl-margin});
  537. height: 170px;
  538. flex-direction: column;
  539. background-color: initial;
  540. border: 0;
  541. border-bottom: none;
  542. padding-bottom: 0;
  543. padding-left: 0;
  544. }
  545. .uppy-size--lg & {
  546. width: calc(25% - #{$rl-margin} - #{$rl-margin});
  547. height: 190px;
  548. }
  549. .uppy-size--xl & {
  550. width: calc(20% - #{$rl-margin} - #{$rl-margin});
  551. height: 210px;
  552. }
  553. }
  554. .uppy-DashboardItem-preview {
  555. width: 50px;
  556. height: 50px;
  557. border-bottom: 0;
  558. position: relative;
  559. display: flex;
  560. justify-content: center;
  561. align-items: center;
  562. .uppy-size--md & {
  563. width: 100%;
  564. height: 100px;
  565. border: 0;
  566. }
  567. .uppy-size--lg & {
  568. height: 120px;
  569. }
  570. .uppy-size--xl & {
  571. height: 140px;
  572. }
  573. }
  574. .uppy-DashboardItem-previewLink {
  575. position: absolute;
  576. left: 0;
  577. top: 0;
  578. right: 0;
  579. bottom: 0;
  580. z-index: $zIndex-3;
  581. }
  582. .uppy-DashboardItem-sourceIcon {
  583. display: inline-block;
  584. vertical-align: middle;
  585. width: 11px;
  586. height: 11px;
  587. color: rgba($color-gray, 0.85);
  588. }
  589. .uppy-DashboardItem-sourceIcon svg,
  590. .uppy-DashboardItem-sourceIcon svg * {
  591. max-width: 100%;
  592. max-height: 100%;
  593. display: inline-block;
  594. vertical-align: text-top;
  595. overflow: hidden;
  596. fill: currentColor;
  597. }
  598. .uppy-DashboardItem-previewInnerWrap {
  599. width: 100%;
  600. height: 100%;
  601. overflow: hidden;
  602. position: relative;
  603. display: flex;
  604. justify-content: center;
  605. align-items: center;
  606. flex-direction: column;
  607. box-shadow: 0 0 2px 0 rgba($color-gray, 0.7);
  608. border-radius: 3px;
  609. .uppy-size--md & {
  610. box-shadow: 0 1px 3px rgba($color-black,.2);
  611. }
  612. }
  613. .uppy-DashboardItem-previewInnerWrap:after {
  614. content: '';
  615. position: absolute;
  616. top: 0;
  617. bottom: 0;
  618. left: 0;
  619. right: 0;
  620. background-color: rgba($color-black, 0.65) /* no !important */;
  621. display: none;
  622. z-index: $zIndex-2;
  623. }
  624. .uppy-DashboardItem-preview img {
  625. width: 100%;
  626. height: 100%;
  627. object-fit: cover;
  628. }
  629. .uppy-DashboardItem-previewIconWrap {
  630. height: 80px;
  631. max-height: 90%;
  632. position: relative;
  633. }
  634. .uppy-DashboardItem-previewIconBg {
  635. width: 100%;
  636. height: 100%;
  637. filter: drop-shadow(rgba($color-black, 0.1) 0px 0px 1px);
  638. }
  639. .uppy-DashboardItem-previewIcon {
  640. width: 18px;
  641. height: 18px;
  642. z-index: $zIndex-1;
  643. position: absolute;
  644. top: 50%;
  645. left: 50%;
  646. transform: translate(-50%, -50%);
  647. .uppy-size--md & {
  648. width: 25px;
  649. height: 25px;
  650. }
  651. }
  652. .uppy-DashboardItem-previewType {
  653. position: absolute;
  654. bottom: 14px;
  655. left: 50%;
  656. transform: translate(-50%, 0);
  657. text-transform: uppercase;
  658. font-size: 9px;
  659. letter-spacing: 1px;
  660. color: $color-asphalt-gray;
  661. z-index: $zIndex-1;
  662. user-select: none;
  663. }
  664. .uppy-DashboardItem-info {
  665. padding-left: 15px;
  666. position: relative;
  667. max-width: 65%;
  668. .uppy-size--md & {
  669. width: 100%;
  670. max-width: 100%;
  671. flex: 1;
  672. padding: 8px 3px 0 3px;
  673. border-top: 0;
  674. }
  675. }
  676. .uppy-DashboardItem-name {
  677. font-size: 11px;
  678. line-height: 1.35;
  679. font-weight: 500;
  680. margin: 0;
  681. padding: 0;
  682. max-height: 28px;
  683. margin-bottom: 5px;
  684. text-overflow: ellipsis;
  685. white-space: nowrap;
  686. overflow: hidden;
  687. .uppy-size--md & {
  688. word-break: break-all;
  689. white-space: normal;
  690. overflow: initial;
  691. }
  692. }
  693. .uppy-DashboardItem-name a {
  694. text-decoration: underline;
  695. color: $color-black;
  696. }
  697. .uppy-DashboardItem-status {
  698. font-size: 11px;
  699. line-height: 11px;
  700. font-weight: normal;
  701. color: darken($color-gray, 15%);
  702. margin-bottom: 4px;
  703. }
  704. .uppy-DashboardItem-statusSize {
  705. display: inline-block;
  706. vertical-align: bottom;
  707. text-transform: uppercase;
  708. }
  709. .uppy-DashboardItem-edit,
  710. .uppy-DashboardItem-copyLink {
  711. display: inline-block;
  712. vertical-align: bottom;
  713. cursor: pointer;
  714. font-family: inherit;
  715. font-size: inherit;
  716. line-height: 1;
  717. color: inherit;
  718. }
  719. .uppy-DashboardItem-edit:not(:first-child),
  720. .uppy-DashboardItem-copyLink:not(:first-child),
  721. .uppy-DashboardItem-sourceIcon:not(:first-child) {
  722. position: relative;
  723. margin-left: 14px;
  724. // margin-right: 7px;
  725. &:before {
  726. content: '\00B7';
  727. position: absolute;
  728. top: 0;
  729. left: -9px;
  730. color: $color-gray;
  731. font-weight: 700;
  732. }
  733. }
  734. .uppy-DashboardItem-action {
  735. position: absolute;
  736. top: 18px;
  737. right: 10px;
  738. z-index: $zIndex-3;
  739. .uppy-size--md & {
  740. top: -8px;
  741. right: -8px;
  742. }
  743. }
  744. .uppy-DashboardItem-remove {
  745. @include reset-button;
  746. cursor: pointer;
  747. color: $color-black;
  748. width: 16px;
  749. height: 16px;
  750. opacity: 0.75;
  751. .uppy-size--md & {
  752. width: 20px;
  753. height: 20px;
  754. }
  755. }
  756. .uppy-DashboardItem.is-inprogress:not(.is-resumable) .uppy-DashboardItem-remove {
  757. display: none;
  758. }
  759. .uppy-DashboardItem-progress {
  760. position: absolute;
  761. top: 50%;
  762. left: 50%;
  763. transform: translate(-50%, -50%);
  764. z-index: $zIndex-3;
  765. color: $color-white;
  766. text-align: center;
  767. width: 120px;
  768. display: none;
  769. transition: all .35 ease;
  770. }
  771. .uppy-DashboardItem.is-complete .uppy-DashboardItem-progress {
  772. transform: initial;
  773. top: -9px;
  774. right: -8px;
  775. left: initial;
  776. width: auto;
  777. }
  778. .uppy-DashboardItem.is-inprogress .uppy-DashboardItem-progress,
  779. .uppy-DashboardItem.is-complete .uppy-DashboardItem-progress,
  780. .uppy-DashboardItem.is-error .uppy-DashboardItem-progress {
  781. display: block;
  782. }
  783. .uppy-DashboardItem-progressIndicator {
  784. @include reset-button;
  785. display: inline-block;
  786. width: 38px;
  787. height: 38px;
  788. opacity: 0.9;
  789. transition: all .35s ease;
  790. .uppy-size--md & {
  791. width: 55px;
  792. height: 55px;
  793. }
  794. }
  795. button.uppy-DashboardItem-progressIndicator {
  796. cursor: pointer;
  797. }
  798. .uppy-DashboardItem.is-error .uppy-DashboardItem-progressIndicator {
  799. width: 18px;
  800. height: 18px;
  801. .uppy-size--md & {
  802. width: 28px;
  803. height: 28px;
  804. }
  805. }
  806. .uppy-DashboardItem.is-complete .uppy-DashboardItem-progressIndicator {
  807. width: 18px;
  808. height: 18px;
  809. opacity: 1;
  810. .uppy-size--md & {
  811. width: 25px;
  812. height: 25px;
  813. }
  814. }
  815. .uppy-DashboardItem-progressInfo {
  816. font-size: 9px;
  817. line-height: 1;
  818. font-weight: 500;
  819. height: 10px;
  820. display: none;
  821. position: absolute;
  822. bottom: -10px;
  823. left: 0;
  824. width: 100%;
  825. text-shadow: 0 1px 0 rgba($color-black, 0.3);
  826. .uppy-size--md & {
  827. display: block;
  828. }
  829. }
  830. .UppyIcon-progressCircle {
  831. width: 100%;
  832. height: 100%;
  833. }
  834. .uppy-DashboardItem .bg {
  835. stroke: rgba($color-white, 0.4);
  836. opacity: 0;
  837. }
  838. .uppy-DashboardItem .progress {
  839. stroke: $color-white;
  840. transition: stroke-dashoffset .5s ease-out;
  841. opacity: 0;
  842. }
  843. .uppy-DashboardItem .play {
  844. stroke: $color-white;
  845. fill: $color-white;
  846. opacity: 0;
  847. transition: all 0.2s;
  848. display: none;
  849. }
  850. .uppy-DashboardItem .cancel {
  851. fill: $color-white;
  852. opacity: 0;
  853. transition: all 0.2s;
  854. }
  855. .uppy-DashboardItem .pause {
  856. stroke: $color-white;
  857. fill: $color-white;
  858. opacity: 0;
  859. transition: all 0.2s;
  860. display: none;
  861. }
  862. .uppy-DashboardItem.is-error .retry {
  863. fill: $color-white;
  864. }
  865. .uppy-DashboardItem.is-resumable {
  866. .pause, .play { display: block; }
  867. .cancel { display: none; }
  868. }
  869. .UppyIcon-progressCircle .check {
  870. opacity: 0;
  871. fill: $color-white;
  872. transition: all 0.2s;
  873. }
  874. .uppy-DashboardItem.is-inprogress {
  875. .bg, .progress, .pause, .cancel {
  876. opacity: 1;
  877. }
  878. .uppy-DashboardItem-previewInnerWrap:after {
  879. display: block;
  880. }
  881. }
  882. .uppy-DashboardItem.is-error {
  883. .uppy-DashboardItem-previewInnerWrap:after {
  884. display: block;
  885. }
  886. }
  887. .uppy-DashboardItem.is-paused {
  888. .pause {
  889. opacity: 0;
  890. }
  891. .play {
  892. opacity: 1;
  893. }
  894. }
  895. .uppy-DashboardItem.is-processing .uppy-DashboardItem-progress {
  896. opacity: 0;
  897. }
  898. .uppy-DashboardItem.is-complete {
  899. .uppy-DashboardItem-progressIndicator {
  900. cursor: default;
  901. }
  902. .progress {
  903. stroke: $color-green;
  904. fill: $color-green;
  905. opacity: 1;
  906. }
  907. .check {
  908. opacity: 1;
  909. }
  910. }
  911. .uppy-DashboardItem-progressNum {
  912. position: relative;
  913. z-index: $zIndex-2;
  914. }
  915. .uppy-DashboardItem-progressInner {
  916. height: 15px;
  917. background-color: $color-cornflower-blue;
  918. position: absolute;
  919. top: 0;
  920. left: 0;
  921. }
  922. .uppy-Dashboard-actions {
  923. height: 55px;
  924. border-top: 1px solid rgba($color-gray, 0.3);
  925. display: flex;
  926. align-items: center;
  927. padding: 0 15px;
  928. background-color: $color-almost-white;
  929. }
  930. .uppy-size--md .uppy-Dashboard-actions {
  931. height: 65px;
  932. }
  933. .uppy-Dashboard-actionsBtn {
  934. margin-right: 10px;
  935. }
  936. .uppy-Dashboard-pauseResume .UppyIcon {
  937. width: 100%;
  938. height: 100%;
  939. }
  940. .uppy-Dashboard-upload {
  941. position: relative;
  942. width: 50px;
  943. height: 50px;
  944. .uppy-size--md & {
  945. width: 60px;
  946. height: 60px;
  947. }
  948. }
  949. .uppy-Dashboard-upload .UppyIcon {
  950. position: relative;
  951. top: 1px;
  952. width: 50%;
  953. }
  954. .uppy-Dashboard-uploadCount {
  955. position: absolute;
  956. top: -12px;
  957. right: -12px;
  958. background-color: $color-green;
  959. color: $color-white;
  960. border-radius: 50%;
  961. width: 16px;
  962. height: 16px;
  963. line-height: 16px;
  964. font-size: 8px;
  965. .uppy-size--md & {
  966. width: 18px;
  967. height: 18px;
  968. line-height: 18px;
  969. font-size: 9px;
  970. }
  971. }
  972. //
  973. // File Card
  974. //
  975. .uppy-DashboardFileCard {
  976. // transform: translate3d(0, 0, 0);
  977. // transition: transform 0.2s ease-in-out;
  978. width: 100%;
  979. height: 100%;
  980. position: absolute;
  981. top: 0;
  982. left: 0;
  983. right: 0;
  984. bottom: 0;
  985. z-index: $zIndex-5;
  986. box-shadow: 0px 0px 10px 4px rgba($color-black, 0.1);
  987. background-color: $color-white;
  988. display: flex;
  989. flex-direction: column;
  990. }
  991. // .uppy-DashboardFileCard[aria-hidden=true] {
  992. // transform: translate3d(0, -105%, 0);
  993. // }
  994. .uppy-DashboardFileCard-inner {
  995. display: flex;
  996. flex-direction: column;
  997. height: 100%;
  998. flex: 1;
  999. }
  1000. .uppy-DashboardFileCard-preview {
  1001. display: flex;
  1002. align-items: center;
  1003. justify-content: center;
  1004. flex-grow: 1;
  1005. border-bottom: 1px solid rgba($color-gray, 0.3);
  1006. background-color: lighten($color-gray, 40%); /* no !important */
  1007. position: relative;
  1008. }
  1009. .uppy-DashboardFileCard-preview img {
  1010. box-shadow: 0px 3px 20px rgba($color-black, 0.15);
  1011. max-width: 90%;
  1012. max-height: 90%;
  1013. object-fit: cover;
  1014. border-radius: 3px;
  1015. position: absolute;
  1016. }
  1017. .uppy-DashboardFileCard-info {
  1018. padding: 30px 20px 20px 20px;
  1019. max-height: 40%;
  1020. flex-grow: 1;
  1021. overflow-y: auto;
  1022. -webkit-overflow-scrolling: touch;
  1023. }
  1024. .uppy-DashboardFileCard-fieldset {
  1025. font-size: 0;
  1026. border: 0;
  1027. padding: 0;
  1028. max-width: 640px;
  1029. margin: auto;
  1030. margin-bottom: 12px;
  1031. }
  1032. .uppy-DashboardFileCard-label {
  1033. display: inline-block;
  1034. vertical-align: middle;
  1035. width: 22%;
  1036. font-size: 12px;
  1037. color: $color-asphalt-gray;
  1038. .uppy-size--md & {
  1039. font-size: 13px;
  1040. }
  1041. }
  1042. .uppy-DashboardFileCard-input {
  1043. display: inline-block;
  1044. vertical-align: middle;
  1045. width: 78%;
  1046. }