_dashboard.scss 20 KB

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