_dashboard.scss 19 KB

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