_dashboard.scss 20 KB

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