style.scss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822
  1. @import '@uppy/core/src/_utils.scss';
  2. @import '@uppy/core/src/_variables.scss';
  3. @import '@uppy/informer/src/style.scss';
  4. @import '@uppy/status-bar/src/style.scss';
  5. @import '@uppy/provider-views/src/style.scss';
  6. // Component-specific css imports
  7. @import './components/FileItem/index.scss';
  8. @import './components/FileCard/index.scss';
  9. // Transitions //
  10. .uppy-transition-slideDownUp-enter {
  11. opacity: 0.01;
  12. transform: translate3d(0, -105%, 0);
  13. transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
  14. }
  15. .uppy-transition-slideDownUp-enter.uppy-transition-slideDownUp-enter-active {
  16. opacity: 1;
  17. transform: translate3d(0, 0, 0);
  18. }
  19. .uppy-transition-slideDownUp-leave {
  20. opacity: 1;
  21. transform: translate3d(0, 0, 0);
  22. transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
  23. }
  24. .uppy-transition-slideDownUp-leave.uppy-transition-slideDownUp-leave-active {
  25. opacity: 0.01;
  26. transform: translate3d(0, -105%, 0);
  27. }
  28. // Modal open/close animations
  29. @keyframes uppy-Dashboard-fadeIn {
  30. from { opacity: 0; }
  31. to { opacity: 1; }
  32. }
  33. @keyframes uppy-Dashboard-fadeOut {
  34. from { opacity: 1; }
  35. to { opacity: 0; }
  36. }
  37. @keyframes uppy-Dashboard-slideDownAndFadeIn {
  38. from { transform: translate3d(-50%, -70%, 0); opacity: 0; }
  39. to { transform: translate3d(-50%, -50%, 0); opacity: 1; }
  40. }
  41. @keyframes uppy-Dashboard-slideDownAndFadeIn--small {
  42. from { transform: translate3d(0, -20%, 0); opacity: 0; }
  43. to { transform: translate3d(0, 0, 0); opacity: 1; }
  44. }
  45. @keyframes uppy-Dashboard-slideUpFadeOut {
  46. from { transform: translate3d(-50%, -50%, 0); opacity: 1; }
  47. to { transform: translate3d(-50%, -70%, 0); opacity: 0; }
  48. }
  49. @keyframes uppy-Dashboard-slideUpFadeOut--small {
  50. from { transform: translate3d(0, 0, 0); opacity: 1; }
  51. to { transform: translate3d(0, -20%, 0); opacity: 0; }
  52. }
  53. // End Transitions //
  54. .uppy-Dashboard--modal {
  55. z-index: $zIndex-2;
  56. }
  57. .uppy-Dashboard--modal[aria-hidden=true] {
  58. display: none;
  59. }
  60. .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose > .uppy-Dashboard-inner {
  61. animation: uppy-Dashboard-slideDownAndFadeIn--small 0.3s cubic-bezier(0, 0, .2, 1);
  62. @media #{$screen-medium} {
  63. animation: uppy-Dashboard-slideDownAndFadeIn 0.3s cubic-bezier(0, 0, .2, 1);
  64. }
  65. }
  66. .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose > .uppy-Dashboard-overlay {
  67. animation: uppy-Dashboard-fadeIn 0.3s cubic-bezier(0, 0, .2, 1);
  68. }
  69. .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing > .uppy-Dashboard-inner {
  70. animation: uppy-Dashboard-slideUpFadeOut--small 0.3s cubic-bezier(0, 0, .2, 1);
  71. @media #{$screen-medium} {
  72. animation: uppy-Dashboard-slideUpFadeOut 0.3s cubic-bezier(0, 0, .2, 1);
  73. }
  74. }
  75. .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing > .uppy-Dashboard-overlay {
  76. animation: uppy-Dashboard-fadeOut 0.3s cubic-bezier(0, 0, .2, 1);
  77. }
  78. // Added to body to prevent the page from scrolling when Modal is open
  79. .uppy-Dashboard-isFixed {
  80. overflow: hidden;
  81. height: 100vh;
  82. }
  83. .uppy-Dashboard--modal .uppy-Dashboard-overlay {
  84. position: fixed;
  85. top: 0;
  86. left: 0;
  87. right: 0;
  88. bottom: 0;
  89. background-color: rgba($black, 0.5);
  90. z-index: $zIndex-2;
  91. }
  92. .uppy-Dashboard-inner {
  93. position: relative;
  94. background-color: $gray-50;
  95. max-width: 100%;
  96. max-height: 100%;
  97. outline: none;
  98. border: 1px solid $gray-200;
  99. border-radius: 5px;
  100. .uppy-size--md & {
  101. min-height: auto;
  102. }
  103. @media #{$screen-medium} {
  104. width: 750px;
  105. height: 550px;
  106. }
  107. .uppy-Dashboard--modal & {
  108. z-index: $zIndex-3;
  109. }
  110. [data-uppy-theme="dark"] & {
  111. background-color: $gray-900;
  112. }
  113. }
  114. .uppy-Dashboard-innerWrap {
  115. display: flex;
  116. flex-direction: column;
  117. height: 100%;
  118. overflow: hidden;
  119. position: relative;
  120. border-radius: 5px;
  121. opacity: 0;
  122. }
  123. .uppy-Dashboard--isInnerWrapVisible .uppy-Dashboard-innerWrap {
  124. opacity: 1;
  125. }
  126. .uppy-Dashboard--modal .uppy-Dashboard-inner {
  127. position: fixed;
  128. top: 35px;
  129. left: 15px;
  130. right: 15px;
  131. bottom: 15px;
  132. border: none;
  133. @media #{$screen-medium} {
  134. top: 50%;
  135. left: 50%;
  136. right: auto; // else the 15px from above may override the positioning
  137. transform: translate(-50%, -50%);
  138. box-shadow: 0 5px 15px 4px rgba($black, 0.15);
  139. }
  140. }
  141. .uppy-Dashboard-close {
  142. @include clear-focus;
  143. display: block;
  144. position: absolute;
  145. top: -33px;
  146. inset-inline-end: -2px;
  147. cursor: pointer;
  148. color: rgba($white, 0.9);
  149. font-size: 27px;
  150. z-index: $zIndex-5;
  151. &:focus{
  152. color: lighten($blue, 25%);
  153. }
  154. @media #{$screen-medium} {
  155. font-size: 35px;
  156. top: -10px;
  157. inset-inline-end: -35px;
  158. }
  159. }
  160. .uppy-Dashboard-AddFiles {
  161. display: flex;
  162. justify-content: center;
  163. align-items: center;
  164. flex-direction: column;
  165. height: 100%;
  166. position: relative;
  167. text-align: center;
  168. [data-uppy-drag-drop-supported="true"] & {
  169. margin: 7px;
  170. height: calc(100% - 14px); // to accomodate for the 7px margin
  171. border-radius: 3px;
  172. border: 1px dashed $gray-250;
  173. }
  174. .uppy-Dashboard-AddFilesPanel & {
  175. border: none;
  176. height: calc(100% - 14px - 40px); // to accomodate for the 7px margin and 40px topbar height
  177. }
  178. .uppy-Dashboard--modal & {
  179. border-color: $gray-300;
  180. }
  181. [data-uppy-theme="dark"] & {
  182. border-color: $gray-600;
  183. }
  184. }
  185. .uppy-Dashboard-AddFiles-info {
  186. padding-top: 15px;
  187. padding-bottom: 15px;
  188. margin-top: auto;
  189. // hide on short note and “powered by” on short screens
  190. // such as CodePen, or inline dashboard with height < 400px
  191. display: none;
  192. .uppy-size--height-md & {
  193. display: block;
  194. }
  195. .uppy-size--md & {
  196. position: absolute;
  197. bottom: 25px;
  198. left: 0;
  199. right: 0;
  200. padding-top: 30px;
  201. padding-bottom: 0;
  202. }
  203. [data-uppy-num-acquirers="0"] & {
  204. margin-top: 0;
  205. }
  206. }
  207. .uppy-Dashboard-browse {
  208. @include clear-focus;
  209. cursor: pointer;
  210. color: rgba($blue, 0.9);
  211. &:hover, &:focus {
  212. border-bottom: 1px solid $blue;
  213. }
  214. [data-uppy-theme="dark"] & {
  215. color: rgba($highlight--dark, 0.9);
  216. }
  217. [data-uppy-theme="dark"] &:hover,
  218. [data-uppy-theme="dark"] &:focus {
  219. border-bottom: 1px solid $highlight--dark;
  220. }
  221. }
  222. .uppy-Dashboard-browseBtn {
  223. display: block;
  224. font-size: 14px;
  225. font-weight: 500;
  226. margin-top: 8px;
  227. margin-bottom: 5px;
  228. width: 100%;
  229. .uppy-size--md & {
  230. font-size: 15px;
  231. width: auto;
  232. margin: auto;
  233. margin-top: 15px;
  234. margin-bottom: 15px;
  235. padding: 13px 44px;
  236. }
  237. }
  238. .uppy-Dashboard-AddFiles-list {
  239. display: flex;
  240. flex-direction: column;
  241. flex: 1;
  242. overflow-y: auto;
  243. -webkit-overflow-scrolling: touch;
  244. margin-top: 2px;
  245. padding: 2px 0;
  246. width: 100%;
  247. .uppy-size--md & {
  248. flex-direction: row;
  249. flex-wrap: wrap;
  250. justify-content: center;
  251. max-width: 600px;
  252. overflow-y: visible;
  253. margin-top: 15px;
  254. padding-top: 0;
  255. flex: none;
  256. }
  257. }
  258. .uppy-DashboardTab {
  259. width: 100%;
  260. text-align: center;
  261. border-bottom: 1px solid $gray-200;
  262. [data-uppy-theme="dark"] & {
  263. border-bottom: 1px solid $gray-800;
  264. }
  265. .uppy-size--md & {
  266. display: inline-block;
  267. width: initial;
  268. margin-bottom: 10px;
  269. border-bottom: none;
  270. }
  271. }
  272. .uppy-DashboardTab-btn {
  273. @include clear-focus;
  274. width: 100%;
  275. height: 100%;
  276. cursor: pointer;
  277. border: 0;
  278. background-color: transparent;
  279. -webkit-appearance: none;
  280. appearance: none;
  281. color: $gray-700;
  282. display: flex;
  283. flex-direction: row;
  284. align-items: center;
  285. padding: 12px 15px;
  286. line-height: 1;
  287. text-align: center;
  288. .uppy-size--md & {
  289. width: 86px;
  290. margin-inline-end: 1px;
  291. flex-direction: column;
  292. padding: 10px 3px;
  293. border-radius: 5px;
  294. }
  295. [data-uppy-theme="dark"] & {
  296. color: $gray-200;
  297. }
  298. }
  299. .uppy-DashboardTab-btn::-moz-focus-inner {
  300. border: 0;
  301. }
  302. .uppy-DashboardTab-btn:hover {
  303. background-color: $gray-100--highlighted;
  304. [data-uppy-theme="dark"] & {
  305. background-color: $gray-800;
  306. }
  307. }
  308. .uppy-DashboardTab-btn:active,
  309. .uppy-DashboardTab-btn:focus {
  310. background-color: $highlight;
  311. [data-uppy-theme="dark"] & {
  312. background-color: $gray-700;
  313. }
  314. }
  315. .uppy-DashboardTab-btn svg {
  316. max-width: 100%;
  317. max-height: 100%;
  318. display: inline-block;
  319. vertical-align: text-top;
  320. overflow: hidden;
  321. transition: transform ease-in-out .15s;
  322. margin-inline-end: 10px;
  323. .uppy-size--md & {
  324. margin-inline-end: 0;
  325. }
  326. }
  327. .uppy-DashboardTab-name {
  328. font-size: 14px;
  329. font-weight: 500;
  330. .uppy-size--md & {
  331. font-size: 11px;
  332. line-height: 15px;
  333. margin-top: 8px;
  334. margin-bottom: 0;
  335. }
  336. }
  337. // On SVG sizing: https://sarasoueidan.com/blog/svg-style-inheritance-and-FOUSVG/
  338. .uppy-DashboardTab svg {
  339. width: 23px;
  340. height: 23px;
  341. vertical-align: middle;
  342. .uppy-size--md & {
  343. width: 30px;
  344. height: 30px;
  345. }
  346. }
  347. .uppy-Dashboard-input {
  348. width: 0.1px;
  349. height: 0.1px;
  350. opacity: 0;
  351. overflow: hidden;
  352. position: absolute;
  353. z-index: -1;
  354. }
  355. .uppy-DashboardContent-bar {
  356. flex-shrink: 0;
  357. height: 40px;
  358. width: 100%;
  359. padding: 0 10px;
  360. z-index: $zIndex-4;
  361. // For when both 'Cancel' and '+ Add more' buttons are present
  362. display: flex;
  363. align-items: center;
  364. justify-content: space-between;
  365. // For .uppy-DashboardContent-title's position: absolute
  366. position: relative;
  367. border-bottom: 1px solid $gray-200;
  368. background-color: $gray-50;
  369. .uppy-size--md & {
  370. height: 50px;
  371. padding: 0 15px;
  372. }
  373. [data-uppy-theme="dark"] & {
  374. background-color: $gray-900;
  375. border-bottom: 1px solid $gray-800;
  376. }
  377. }
  378. .uppy-DashboardContent-title {
  379. position: absolute;
  380. top: 0;
  381. left: 0;
  382. right: 0;
  383. text-align: center;
  384. font-size: 12px;
  385. line-height: 40px;
  386. font-weight: 500;
  387. // MUST be present for title to be visible in IE11
  388. width: 100%;
  389. max-width: 170px;
  390. text-overflow: ellipsis;
  391. white-space: nowrap;
  392. overflow-x: hidden;
  393. margin: auto;
  394. .uppy-size--md & {
  395. font-size: 14px;
  396. line-height: 50px;
  397. max-width: 300px;
  398. }
  399. [data-uppy-theme="dark"] & {
  400. color: $gray-200;
  401. }
  402. }
  403. .uppy-DashboardContent-back {
  404. @include reset-button;
  405. @include highlight-focus;
  406. border-radius: 3px;
  407. font-size: 12px;
  408. font-weight: 400;
  409. cursor: pointer;
  410. color: $blue;
  411. padding: 7px 6px;
  412. margin-inline-start: -6px;
  413. .uppy-size--md & {
  414. font-size: 14px;
  415. }
  416. [data-uppy-theme="dark"] & {
  417. color: $highlight--dark;
  418. }
  419. }
  420. .uppy-DashboardContent-addMore {
  421. @include reset-button;
  422. @include highlight-focus;
  423. border-radius: 3px;
  424. font-weight: 500;
  425. cursor: pointer;
  426. color: $blue;
  427. width: 29px;
  428. height: 29px;
  429. padding: 7px 8px;
  430. margin-inline-end: -5px;
  431. .uppy-size--md & {
  432. font-size: 14px;
  433. width: auto;
  434. height: auto;
  435. margin-inline-end: -8px;
  436. }
  437. [data-uppy-theme="dark"] & {
  438. color: $highlight--dark;
  439. }
  440. }
  441. .uppy-DashboardContent-addMore svg {
  442. vertical-align: baseline;
  443. margin-inline-end: 4px;
  444. .uppy-size--md & {
  445. width: 11px;
  446. height: 11px;
  447. }
  448. }
  449. .uppy-DashboardContent-addMoreCaption {
  450. display: none;
  451. .uppy-size--md & {
  452. display: inline;
  453. }
  454. }
  455. // ...uppy-DashboardContent-addMore|
  456. // ...uppy-DashboardContent-bar|
  457. .uppy-DashboardContent-panel {
  458. position: absolute;
  459. top: 0;
  460. bottom: 0;
  461. left: 0;
  462. right: 0;
  463. background-color: darken($white, 4%);
  464. overflow: hidden;
  465. z-index: $zIndex-5;
  466. border-radius: 5px;
  467. display: flex;
  468. flex-direction: column;
  469. flex: 1;
  470. }
  471. .uppy-Dashboard-AddFilesPanel {
  472. position: absolute;
  473. top: 0;
  474. bottom: 0;
  475. left: 0;
  476. right: 0;
  477. background: $gray-50;
  478. background: linear-gradient(0deg, $gray-50 35%, rgba($gray-50, 0.85) 100%);
  479. box-shadow: 0 0 10px 5px rgba($black, 0.15);
  480. overflow: hidden;
  481. z-index: $zIndex-5;
  482. border-radius: 5px;
  483. display: flex;
  484. flex-direction: column;
  485. [data-uppy-theme="dark"] & {
  486. background-color: $gray-800;
  487. background: linear-gradient(0deg, $gray-900 35%, rgba($gray-900, 0.85) 100%);
  488. }
  489. }
  490. .uppy-Dashboard--isAddFilesPanelVisible .uppy-Dashboard-files {
  491. filter: blur(2px);
  492. }
  493. // Progress bar placeholder
  494. .uppy-Dashboard-progress {
  495. position: absolute;
  496. bottom: 0;
  497. left: 0;
  498. width: 100%;
  499. height: 12%;
  500. }
  501. .uppy-Dashboard-progressBarContainer.is-active {
  502. z-index: $zIndex-4;
  503. position: absolute;
  504. top: 0;
  505. left: 0;
  506. width: 100%;
  507. height: 100%;
  508. }
  509. .uppy-Dashboard-filesContainer {
  510. @include clearfix;
  511. position: relative;
  512. overflow-y: hidden;
  513. margin: 0;
  514. flex: 1;
  515. }
  516. .uppy-Dashboard-files {
  517. margin: 0;
  518. padding: 0 0 10px 0;
  519. overflow-y: auto;
  520. -webkit-overflow-scrolling: touch;
  521. flex: 1;
  522. .uppy-size--md & {
  523. padding-top: 10px;
  524. }
  525. }
  526. .uppy-Dashboard-dropFilesHereHint {
  527. display: flex;
  528. align-items: center;
  529. justify-content: center;
  530. visibility: hidden;
  531. position: absolute;
  532. top: 7px;
  533. right: 7px;
  534. bottom: 7px;
  535. left: 7px;
  536. padding-top: 90px;
  537. border: 1px dashed $blue;
  538. border-radius: 3px;
  539. z-index: 2000;
  540. text-align: center;
  541. background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2V1zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0v1zm7.707 19.293a.999.999 0 1 1-1.414 1.414L25 16.414V34a1 1 0 1 1-2 0V16.414l-5.293 5.293a.999.999 0 1 1-1.414-1.414l7-7a.999.999 0 0 1 1.414 0l7 7z' fill='%232275D7' fill-rule='nonzero'/%3E%3C/svg%3E");
  542. background-position: 50% 50%;
  543. background-repeat: no-repeat;
  544. color: $gray-600;
  545. font-size: 16px;
  546. [data-uppy-theme="dark"] & {
  547. color: $gray-400;
  548. border-color: $highlight--dark;
  549. background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2V1zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0v1zm7.707 19.293a.999.999 0 1 1-1.414 1.414L25 16.414V34a1 1 0 1 1-2 0V16.414l-5.293 5.293a.999.999 0 1 1-1.414-1.414l7-7a.999.999 0 0 1 1.414 0l7 7z' fill='%2302BAF2' fill-rule='nonzero'/%3E%3C/svg%3E");
  550. }
  551. }
  552. .uppy-Dashboard.uppy-Dashboard--isDraggingOver {
  553. .uppy-Dashboard-dropFilesHereHint {
  554. visibility: visible;
  555. }
  556. .uppy-DashboardContent-bar,
  557. .uppy-Dashboard-files,
  558. .uppy-Dashboard-progressindicators {
  559. opacity: 0.15;
  560. }
  561. .uppy-Dashboard-AddFiles {
  562. opacity: 0.03;
  563. }
  564. }
  565. .uppy-Dashboard-dropFilesIcon {
  566. display: none;
  567. margin-bottom: 15px;
  568. .uppy-size--md.uppy-size--height-md & {
  569. display: block;
  570. }
  571. }
  572. .uppy-Dashboard-AddFiles-title {
  573. font-size: 17px;
  574. line-height: 1.35;
  575. font-weight: 500;
  576. color: $black;
  577. margin-top: 15px;
  578. margin-bottom: 5px;
  579. text-align: inline-start;
  580. padding: 0 15px;
  581. width: 100%;
  582. .uppy-size--md & {
  583. font-size: 25px;
  584. margin-top: 5px;
  585. font-weight: 400;
  586. text-align: center;
  587. max-width: 480px;
  588. }
  589. [data-uppy-num-acquirers="0"] & {
  590. text-align: center;
  591. }
  592. [data-uppy-theme="dark"] & {
  593. color: $gray-200;
  594. }
  595. button {
  596. font-weight: 500;
  597. }
  598. .uppy-size--md & button {
  599. font-weight: 400;
  600. }
  601. }
  602. .uppy-Dashboard-note {
  603. font-size: 14px;
  604. line-height: 1.25;
  605. text-align: center;
  606. color: $gray-600;
  607. max-width: 350px;
  608. margin: auto;
  609. padding: 0 15px;
  610. .uppy-size--md & {
  611. font-size: 15px;
  612. line-height: 1.35;
  613. max-width: 600px;
  614. }
  615. [data-uppy-theme="dark"] & {
  616. color: $gray-300;
  617. }
  618. }
  619. a.uppy-Dashboard-poweredBy {
  620. display: inline-block;
  621. text-align: center;
  622. font-size: 11px;
  623. color: $gray-500;
  624. text-decoration: none;
  625. margin-top: 8px;
  626. }
  627. .uppy-Dashboard-poweredByIcon {
  628. stroke: $gray-500;
  629. fill: none;
  630. margin-left: 1px;
  631. margin-right: 1px;
  632. position: relative;
  633. top: 1px;
  634. opacity: 0.9;
  635. vertical-align: text-top;
  636. }
  637. .uppy-Dashboard-Item-previewIcon {
  638. width: 25px;
  639. height: 25px;
  640. z-index: $zIndex-1;
  641. position: absolute;
  642. top: 50%;
  643. left: 50%;
  644. transform: translate(-50%, -50%);
  645. .uppy-size--md & {
  646. width: 38px;
  647. height: 38px;
  648. }
  649. svg {
  650. width: 100%;
  651. height: 100%;
  652. }
  653. }
  654. .uppy-Dashboard-Item-previewIconWrap {
  655. height: 76px;
  656. max-height: 75%;
  657. position: relative;
  658. }
  659. .uppy-Dashboard-Item-previewIconBg {
  660. width: 100%;
  661. height: 100%;
  662. filter: drop-shadow(rgba($black, 0.1) 0px 1px 1px);
  663. }
  664. .uppy-Dashboard-upload {
  665. position: relative;
  666. width: 50px;
  667. height: 50px;
  668. .uppy-size--md & {
  669. width: 60px;
  670. height: 60px;
  671. }
  672. }
  673. .uppy-Dashboard-upload .uppy-c-icon {
  674. position: relative;
  675. top: 1px;
  676. width: 50%;
  677. }
  678. .uppy-Dashboard-uploadCount {
  679. position: absolute;
  680. top: -12px;
  681. inset-inline-end: -12px;
  682. background-color: $green;
  683. color: $white;
  684. border-radius: 50%;
  685. width: 16px;
  686. height: 16px;
  687. line-height: 16px;
  688. font-size: 8px;
  689. .uppy-size--md & {
  690. width: 18px;
  691. height: 18px;
  692. line-height: 18px;
  693. font-size: 9px;
  694. }
  695. }