style.scss 22 KB

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