_dashboard.scss 20 KB

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