style.scss 19 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036
  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. transform: translate3d(0, -105%, 0);
  12. opacity: 0.01;
  13. transition:
  14. transform 0.25s ease-in-out,
  15. opacity 0.25s ease-in-out;
  16. }
  17. .uppy-transition-slideDownUp-enter.uppy-transition-slideDownUp-enter-active {
  18. transform: translate3d(0, 0, 0);
  19. opacity: 1;
  20. }
  21. .uppy-transition-slideDownUp-leave {
  22. transform: translate3d(0, 0, 0);
  23. opacity: 1;
  24. transition:
  25. transform 0.25s ease-in-out,
  26. opacity 0.25s ease-in-out;
  27. }
  28. .uppy-transition-slideDownUp-leave.uppy-transition-slideDownUp-leave-active {
  29. transform: translate3d(0, -105%, 0);
  30. opacity: 0.01;
  31. }
  32. // Modal open/close animations
  33. @keyframes uppy-Dashboard-fadeIn {
  34. from {
  35. opacity: 0;
  36. }
  37. to {
  38. opacity: 1;
  39. }
  40. }
  41. @keyframes uppy-Dashboard-fadeOut {
  42. from {
  43. opacity: 1;
  44. }
  45. to {
  46. opacity: 0;
  47. }
  48. }
  49. @keyframes uppy-Dashboard-slideDownAndFadeIn {
  50. from {
  51. transform: translate3d(-50%, -70%, 0);
  52. opacity: 0;
  53. }
  54. to {
  55. transform: translate3d(-50%, -50%, 0);
  56. opacity: 1;
  57. }
  58. }
  59. @keyframes uppy-Dashboard-slideDownAndFadeIn--small {
  60. from {
  61. transform: translate3d(0, -20%, 0);
  62. opacity: 0;
  63. }
  64. to {
  65. transform: translate3d(0, 0, 0);
  66. opacity: 1;
  67. }
  68. }
  69. @keyframes uppy-Dashboard-slideUpFadeOut {
  70. from {
  71. transform: translate3d(-50%, -50%, 0);
  72. opacity: 1;
  73. }
  74. to {
  75. transform: translate3d(-50%, -70%, 0);
  76. opacity: 0;
  77. }
  78. }
  79. @keyframes uppy-Dashboard-slideUpFadeOut--small {
  80. from {
  81. transform: translate3d(0, 0, 0);
  82. opacity: 1;
  83. }
  84. to {
  85. transform: translate3d(0, -20%, 0);
  86. opacity: 0;
  87. }
  88. }
  89. // End Transitions //
  90. .uppy-Dashboard--modal {
  91. z-index: $zIndex-2;
  92. }
  93. .uppy-Dashboard--modal[aria-hidden='true'] {
  94. display: none;
  95. }
  96. .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose
  97. > .uppy-Dashboard-inner {
  98. animation: uppy-Dashboard-slideDownAndFadeIn--small 0.3s
  99. cubic-bezier(0, 0, 0.2, 1);
  100. @media #{$screen-medium} {
  101. animation: uppy-Dashboard-slideDownAndFadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
  102. }
  103. }
  104. .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose
  105. > .uppy-Dashboard-overlay {
  106. animation: uppy-Dashboard-fadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
  107. }
  108. .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing
  109. > .uppy-Dashboard-inner {
  110. animation: uppy-Dashboard-slideUpFadeOut--small 0.3s
  111. cubic-bezier(0, 0, 0.2, 1);
  112. @media #{$screen-medium} {
  113. animation: uppy-Dashboard-slideUpFadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
  114. }
  115. }
  116. .uppy-Dashboard--modal.uppy-Dashboard--animateOpenClose.uppy-Dashboard--isClosing
  117. > .uppy-Dashboard-overlay {
  118. animation: uppy-Dashboard-fadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
  119. }
  120. // Added to body to prevent the page from scrolling when Modal is open
  121. .uppy-Dashboard-isFixed {
  122. height: 100vh;
  123. overflow: hidden;
  124. }
  125. .uppy-Dashboard--modal .uppy-Dashboard-overlay {
  126. position: fixed;
  127. top: 0;
  128. right: 0;
  129. bottom: 0;
  130. left: 0;
  131. z-index: $zIndex-2;
  132. background-color: rgba($black, 0.5);
  133. }
  134. .uppy-Dashboard-inner {
  135. position: relative;
  136. max-width: 100%;
  137. max-height: 100%;
  138. background-color: $gray-100;
  139. border: 1px solid $gray-200;
  140. border-radius: 5px;
  141. outline: none;
  142. .uppy-size--md & {
  143. min-height: auto;
  144. }
  145. @media #{$screen-medium} {
  146. width: 650px;
  147. height: 500px;
  148. }
  149. .uppy-Dashboard--modal & {
  150. z-index: $zIndex-3;
  151. }
  152. [data-uppy-theme='dark'] & {
  153. background-color: $gray-900;
  154. }
  155. .uppy-Dashboard--isDisabled & {
  156. cursor: not-allowed;
  157. }
  158. }
  159. .uppy-Dashboard-innerWrap {
  160. position: relative;
  161. display: flex;
  162. flex-direction: column;
  163. height: 100%;
  164. overflow: hidden;
  165. border-radius: 5px;
  166. opacity: 0;
  167. .uppy-Dashboard--isInnerWrapVisible & {
  168. opacity: 1;
  169. }
  170. .uppy-Dashboard--isDisabled & {
  171. opacity: 0.6;
  172. filter: grayscale(100%);
  173. user-select: none;
  174. cursor: not-allowed;
  175. }
  176. }
  177. .uppy-Dashboard--isDisabled .uppy-ProviderIconBg {
  178. fill: #9f9f9f;
  179. }
  180. // Disallow clicking on all interactive elements
  181. .uppy-Dashboard--isDisabled {
  182. [disabled],
  183. [aria-disabled] {
  184. pointer-events: none;
  185. cursor: not-allowed;
  186. }
  187. }
  188. .uppy-Dashboard--modal .uppy-Dashboard-inner {
  189. position: fixed;
  190. top: 35px;
  191. right: 15px;
  192. bottom: 15px;
  193. left: 15px;
  194. border: none;
  195. @media #{$screen-medium} {
  196. top: 50%;
  197. right: auto; // else the 15px from above may override the positioning
  198. left: 50%;
  199. box-shadow: 0 5px 15px 4px rgba($black, 0.15);
  200. transform: translate(-50%, -50%);
  201. }
  202. }
  203. .uppy-Dashboard-close {
  204. @include clear-focus;
  205. position: absolute;
  206. top: -33px;
  207. z-index: $zIndex-5;
  208. display: block;
  209. color: rgba($white, 0.9);
  210. font-size: 27px;
  211. cursor: pointer;
  212. inset-inline-end: -2px;
  213. &:focus {
  214. color: lighten($blue, 25%);
  215. }
  216. @media #{$screen-medium} {
  217. top: -10px;
  218. font-size: 35px;
  219. inset-inline-end: -35px;
  220. }
  221. }
  222. // Service Message
  223. .uppy-Dashboard-serviceMsg {
  224. position: relative;
  225. top: -1px;
  226. z-index: $zIndex-4;
  227. padding: 12px 0;
  228. font-weight: 500;
  229. font-size: 12px;
  230. line-height: 1.3;
  231. background-color: $white-50;
  232. border-top: 1px solid $beige;
  233. border-bottom: 1px solid $beige;
  234. .uppy-size--md & {
  235. font-size: 14px;
  236. line-height: 1.4;
  237. }
  238. [data-uppy-theme='dark'] & {
  239. color: $gray-200;
  240. background-color: $gray-900;
  241. border-top: 1px solid $gray-800;
  242. border-bottom: 1px solid $gray-800;
  243. }
  244. }
  245. .uppy-Dashboard-serviceMsg-title {
  246. display: block;
  247. margin-bottom: 4px;
  248. padding-left: 42px;
  249. line-height: 1;
  250. }
  251. .uppy-Dashboard-serviceMsg-text {
  252. padding: 0 15px;
  253. }
  254. .uppy-Dashboard-serviceMsg-actionBtn {
  255. color: $blue;
  256. font-weight: inherit;
  257. font-size: inherit;
  258. vertical-align: initial;
  259. [data-uppy-theme='dark'] & {
  260. color: rgba($highlight--dark, 0.9);
  261. }
  262. }
  263. .uppy-Dashboard-serviceMsg-icon {
  264. position: absolute;
  265. top: 10px;
  266. left: 15px;
  267. }
  268. .uppy-Dashboard-AddFiles {
  269. position: relative;
  270. display: flex;
  271. flex-direction: column;
  272. align-items: center;
  273. justify-content: center;
  274. height: 100%;
  275. text-align: center;
  276. [data-uppy-drag-drop-supported='true'] & {
  277. height: calc(100% - 14px); // to accomodate for the 7px margin
  278. margin: 7px;
  279. border: 1px dashed $gray-250;
  280. border-radius: 3px;
  281. }
  282. .uppy-Dashboard-AddFilesPanel & {
  283. height: calc(
  284. 100% - 14px - 40px
  285. ); // to accomodate for the 7px margin and 40px topbar height
  286. border: none;
  287. }
  288. .uppy-Dashboard--modal & {
  289. border-color: $gray-300;
  290. }
  291. [data-uppy-theme='dark'] & {
  292. border-color: $gray-600;
  293. }
  294. }
  295. .uppy-Dashboard-AddFiles-info {
  296. // hide on short note and “powered by” on short screens
  297. // such as CodePen, or inline dashboard with height < 400px
  298. display: none;
  299. margin-top: auto;
  300. padding-top: 15px;
  301. padding-bottom: 15px;
  302. .uppy-size--height-md & {
  303. display: block;
  304. }
  305. .uppy-size--md & {
  306. position: absolute;
  307. right: 0;
  308. bottom: 25px;
  309. left: 0;
  310. padding-top: 30px;
  311. padding-bottom: 0;
  312. }
  313. [data-uppy-num-acquirers='0'] & {
  314. margin-top: 0;
  315. }
  316. }
  317. .uppy-Dashboard-browse {
  318. @include clear-focus;
  319. color: $blue;
  320. cursor: pointer;
  321. &:hover,
  322. &:focus {
  323. border-bottom: 1px solid $blue;
  324. }
  325. [data-uppy-theme='dark'] & {
  326. color: rgba($highlight--dark, 0.9);
  327. }
  328. [data-uppy-theme='dark'] &:hover,
  329. [data-uppy-theme='dark'] &:focus {
  330. border-bottom: 1px solid $highlight--dark;
  331. }
  332. }
  333. .uppy-Dashboard-browseBtn {
  334. display: block;
  335. width: 100%;
  336. margin-top: 8px;
  337. margin-bottom: 5px;
  338. font-weight: 500;
  339. font-size: 14px;
  340. .uppy-size--md & {
  341. width: auto;
  342. margin: auto;
  343. margin-top: 15px;
  344. margin-bottom: 15px;
  345. padding: 13px 44px;
  346. font-size: 15px;
  347. }
  348. }
  349. .uppy-Dashboard-AddFiles-list {
  350. display: flex;
  351. flex: 1;
  352. flex-direction: column;
  353. width: 100%;
  354. margin-top: 2px;
  355. padding: 2px 0;
  356. overflow-y: auto;
  357. -webkit-overflow-scrolling: touch;
  358. .uppy-size--md & {
  359. flex: none;
  360. flex-direction: row;
  361. flex-wrap: wrap;
  362. justify-content: center;
  363. max-width: 600px;
  364. margin-top: 15px;
  365. padding-top: 0;
  366. overflow-y: visible;
  367. }
  368. }
  369. .uppy-DashboardTab {
  370. width: 100%;
  371. text-align: center;
  372. border-bottom: 1px solid $gray-200;
  373. [data-uppy-theme='dark'] & {
  374. border-bottom: 1px solid $gray-800;
  375. }
  376. .uppy-size--md & {
  377. display: inline-block;
  378. width: initial;
  379. margin-bottom: 10px;
  380. border-bottom: none;
  381. }
  382. }
  383. .uppy-DashboardTab-btn {
  384. @include clear-focus;
  385. // display: flex;
  386. flex-direction: row;
  387. align-items: center;
  388. justify-content: left;
  389. width: 100%;
  390. height: 100%;
  391. padding: 12px 15px;
  392. color: $gray-700;
  393. background-color: transparent;
  394. cursor: pointer;
  395. -webkit-appearance: none;
  396. appearance: none;
  397. .uppy-size--md & {
  398. flex-direction: column;
  399. width: 86px;
  400. padding: 10px 3px;
  401. border-radius: 5px;
  402. margin-inline-end: 1px;
  403. }
  404. [data-uppy-theme='dark'] & {
  405. color: $gray-200;
  406. }
  407. }
  408. .uppy-DashboardTab-btn::-moz-focus-inner {
  409. border: 0;
  410. }
  411. .uppy-DashboardTab-btn:hover {
  412. background-color: $gray-200--highlighted;
  413. [data-uppy-theme='dark'] & {
  414. background-color: $gray-800;
  415. }
  416. }
  417. .uppy-DashboardTab-btn:active,
  418. .uppy-DashboardTab-btn:focus {
  419. background-color: $highlight;
  420. [data-uppy-theme='dark'] & {
  421. background-color: $gray-700;
  422. }
  423. }
  424. .uppy-DashboardTab-btn svg {
  425. display: inline-block;
  426. max-width: 100%;
  427. max-height: 100%;
  428. overflow: hidden;
  429. vertical-align: text-top;
  430. transition: transform ease-in-out 0.15s;
  431. }
  432. .uppy-DashboardTab-inner {
  433. display: flex;
  434. justify-content: center;
  435. align-items: center;
  436. width: 32px;
  437. height: 32px;
  438. border-radius: 8px;
  439. background-color: #fff;
  440. box-shadow:
  441. 0 1px 1px 0 rgba(0, 0, 0, 0.1),
  442. 0 1px 2px 0 rgba(0, 0, 0, 0.1),
  443. 0 2px 3px 0 rgba(0, 0, 0, 0.02);
  444. margin-inline-end: 10px;
  445. .uppy-size--md & {
  446. margin-inline-end: 0;
  447. }
  448. [data-uppy-theme='dark'] & {
  449. background-color: #323232;
  450. box-shadow:
  451. 0 1px 1px 0 rgba(0, 0, 0, 0.2),
  452. 0 1px 2px 0 rgba(0, 0, 0, 0.2),
  453. 0 2px 3px 0 rgba(0, 0, 0, 0.08);
  454. }
  455. }
  456. .uppy-DashboardTab-name {
  457. font-weight: 400;
  458. font-size: 14px;
  459. .uppy-size--md & {
  460. margin-top: 8px;
  461. margin-bottom: 0;
  462. font-size: 12px;
  463. line-height: 15px;
  464. }
  465. }
  466. .uppy-DashboardTab-iconMyDevice {
  467. color: $blue;
  468. [data-uppy-theme='dark'] & {
  469. color: $highlight--dark;
  470. }
  471. }
  472. .uppy-DashboardTab-iconBox {
  473. color: #0061d5;
  474. [data-uppy-theme='dark'] & {
  475. color: $gray-200;
  476. }
  477. }
  478. .uppy-DashboardTab-iconDropbox {
  479. color: #0061fe;
  480. [data-uppy-theme='dark'] & {
  481. color: $gray-200;
  482. }
  483. }
  484. .uppy-DashboardTab-iconUnsplash {
  485. color: #111;
  486. [data-uppy-theme='dark'] & {
  487. color: $gray-200;
  488. }
  489. }
  490. .uppy-DashboardTab-iconWebdav {
  491. color: #111;
  492. [data-uppy-theme='dark'] & {
  493. color: $gray-200;
  494. }
  495. }
  496. .uppy-DashboardTab-iconScreenRec {
  497. color: #2c3e50;
  498. [data-uppy-theme='dark'] & {
  499. color: $gray-200;
  500. }
  501. }
  502. .uppy-DashboardTab-iconAudio {
  503. color: #8030a3;
  504. [data-uppy-theme='dark'] & {
  505. color: #bf6ee3;
  506. }
  507. }
  508. .uppy-Dashboard-input {
  509. position: absolute;
  510. z-index: -1;
  511. width: 0.1px;
  512. height: 0.1px;
  513. overflow: hidden;
  514. opacity: 0;
  515. }
  516. .uppy-DashboardContent-bar {
  517. // For .uppy-DashboardContent-title's position: absolute
  518. position: relative;
  519. z-index: $zIndex-4;
  520. // For when both 'Cancel' and '+ Add more' buttons are present
  521. display: flex;
  522. flex-shrink: 0;
  523. align-items: center;
  524. justify-content: space-between;
  525. width: 100%;
  526. height: 40px;
  527. padding: 0 10px;
  528. background-color: $gray-50;
  529. border-bottom: 1px solid $gray-200;
  530. .uppy-size--md & {
  531. height: 50px;
  532. padding: 0 15px;
  533. }
  534. [data-uppy-theme='dark'] & {
  535. background-color: $gray-900;
  536. border-bottom: 1px solid $gray-800;
  537. }
  538. }
  539. .uppy-DashboardContent-title {
  540. position: absolute;
  541. top: 0;
  542. right: 0;
  543. left: 0;
  544. // MUST be present for title to be visible in IE11
  545. width: 100%;
  546. max-width: 170px;
  547. margin: auto;
  548. overflow-x: hidden;
  549. font-weight: 500;
  550. font-size: 12px;
  551. line-height: 40px;
  552. white-space: nowrap;
  553. text-align: center;
  554. text-overflow: ellipsis;
  555. .uppy-size--md & {
  556. max-width: 300px;
  557. font-size: 14px;
  558. line-height: 50px;
  559. }
  560. [data-uppy-theme='dark'] & {
  561. color: $gray-200;
  562. }
  563. }
  564. .uppy-DashboardContent-back,
  565. .uppy-DashboardContent-save {
  566. @include reset-button;
  567. @include highlight-focus;
  568. padding: 7px 6px;
  569. color: $blue;
  570. font-weight: 400;
  571. font-size: 12px;
  572. border-radius: 3px;
  573. cursor: pointer;
  574. margin-inline-start: -6px;
  575. .uppy-size--md & {
  576. font-size: 14px;
  577. }
  578. [data-uppy-theme='dark'] & {
  579. color: $highlight--dark;
  580. }
  581. }
  582. .uppy-DashboardContent-addMore {
  583. @include reset-button;
  584. @include highlight-focus;
  585. width: 29px;
  586. height: 29px;
  587. padding: 7px 8px;
  588. color: $blue;
  589. font-weight: 500;
  590. border-radius: 3px;
  591. cursor: pointer;
  592. margin-inline-end: -5px;
  593. .uppy-size--md & {
  594. width: auto;
  595. height: auto;
  596. font-size: 14px;
  597. margin-inline-end: -8px;
  598. }
  599. [data-uppy-theme='dark'] & {
  600. color: $highlight--dark;
  601. }
  602. }
  603. .uppy-DashboardContent-addMore svg {
  604. vertical-align: baseline;
  605. margin-inline-end: 4px;
  606. .uppy-size--md & {
  607. width: 11px;
  608. height: 11px;
  609. }
  610. }
  611. .uppy-DashboardContent-addMoreCaption {
  612. display: none;
  613. .uppy-size--md & {
  614. display: inline;
  615. }
  616. }
  617. // ...uppy-DashboardContent-addMore|
  618. // ...uppy-DashboardContent-bar|
  619. .uppy-DashboardContent-panel {
  620. position: absolute;
  621. top: 0;
  622. right: 0;
  623. bottom: 0;
  624. left: 0;
  625. z-index: $zIndex-5;
  626. display: flex;
  627. flex: 1;
  628. flex-direction: column;
  629. overflow: hidden;
  630. background-color: darken($white, 4%);
  631. border-radius: 5px;
  632. }
  633. .uppy-Dashboard-AddFilesPanel {
  634. position: absolute;
  635. top: 0;
  636. right: 0;
  637. bottom: 0;
  638. left: 0;
  639. z-index: $zIndex-5;
  640. display: flex;
  641. flex-direction: column;
  642. overflow: hidden;
  643. background: $gray-50;
  644. background: linear-gradient(0deg, $gray-50 35%, rgba($gray-50, 0.85) 100%);
  645. border-radius: 5px;
  646. box-shadow: 0 0 10px 5px rgba($black, 0.15);
  647. [data-uppy-theme='dark'] & {
  648. background-color: $gray-800;
  649. background-image: linear-gradient(
  650. 0deg,
  651. $gray-900 35%,
  652. rgba($gray-900, 0.85) 100%
  653. );
  654. }
  655. }
  656. .uppy-Dashboard--isAddFilesPanelVisible .uppy-Dashboard-files {
  657. filter: blur(2px);
  658. }
  659. // Progress bar placeholder
  660. .uppy-Dashboard-progress {
  661. position: absolute;
  662. bottom: 0;
  663. left: 0;
  664. width: 100%;
  665. height: 12%;
  666. }
  667. .uppy-Dashboard-progressBarContainer.is-active {
  668. position: absolute;
  669. top: 0;
  670. left: 0;
  671. z-index: $zIndex-4;
  672. width: 100%;
  673. height: 100%;
  674. }
  675. .uppy-Dashboard-filesContainer {
  676. @include clearfix;
  677. position: relative;
  678. flex: 1;
  679. margin: 0;
  680. overflow-y: hidden;
  681. }
  682. .uppy-Dashboard-files {
  683. flex: 1;
  684. margin: 0;
  685. padding: 0 0 10px 0;
  686. overflow-y: auto;
  687. -webkit-overflow-scrolling: touch;
  688. .uppy-size--md & {
  689. padding-top: 10px;
  690. }
  691. }
  692. .uppy-Dashboard--singleFile .uppy-Dashboard-filesInner {
  693. display: flex;
  694. justify-content: center;
  695. align-items: center;
  696. height: 100%;
  697. }
  698. .uppy-Dashboard-dropFilesHereHint {
  699. position: absolute;
  700. top: 7px;
  701. right: 7px;
  702. bottom: 7px;
  703. left: 7px;
  704. z-index: 2000;
  705. display: flex;
  706. align-items: center;
  707. justify-content: center;
  708. padding-top: 90px;
  709. color: $gray-600;
  710. font-size: 16px;
  711. text-align: center;
  712. 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='%231269CF' fill-rule='nonzero'/%3E%3C/svg%3E");
  713. background-repeat: no-repeat;
  714. background-position: 50% 50%;
  715. border: 1px dashed $blue;
  716. border-radius: 3px;
  717. visibility: hidden;
  718. [data-uppy-theme='dark'] & {
  719. color: $gray-400;
  720. 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");
  721. border-color: $highlight--dark;
  722. }
  723. }
  724. .uppy-Dashboard.uppy-Dashboard--isDraggingOver {
  725. .uppy-Dashboard-dropFilesHereHint {
  726. visibility: visible;
  727. // prevents flickering (https://stackoverflow.com/a/18582960/3192470)
  728. pointer-events: none;
  729. }
  730. .uppy-DashboardContent-bar,
  731. .uppy-Dashboard-files,
  732. .uppy-Dashboard-progressindicators,
  733. .uppy-Dashboard-serviceMsg {
  734. opacity: 0.15;
  735. }
  736. .uppy-Dashboard-AddFiles {
  737. opacity: 0.03;
  738. }
  739. }
  740. .uppy-Dashboard-AddFiles-title {
  741. width: 100%;
  742. margin-top: 15px;
  743. margin-bottom: 5px;
  744. padding: 0 15px;
  745. color: $black;
  746. font-weight: 500;
  747. font-size: 17px;
  748. line-height: 1.35;
  749. text-align: inline-start;
  750. .uppy-size--md & {
  751. max-width: 480px;
  752. padding: 0 35px;
  753. margin-top: 5px;
  754. font-weight: 400;
  755. font-size: 21px;
  756. text-align: center;
  757. }
  758. [data-uppy-num-acquirers='0'] & {
  759. text-align: center;
  760. }
  761. [data-uppy-theme='dark'] & {
  762. color: $gray-200;
  763. }
  764. button {
  765. font-weight: 500;
  766. }
  767. .uppy-size--md & button {
  768. font-weight: 400;
  769. }
  770. }
  771. .uppy-Dashboard-note {
  772. max-width: 350px;
  773. margin: auto;
  774. padding: 0 15px;
  775. color: $gray-600;
  776. font-size: 14px;
  777. line-height: 1.25;
  778. text-align: center;
  779. .uppy-size--md & {
  780. max-width: 600px;
  781. line-height: 1.35;
  782. }
  783. [data-uppy-theme='dark'] & {
  784. color: $gray-300;
  785. }
  786. }
  787. a.uppy-Dashboard-poweredBy {
  788. display: inline-block;
  789. margin-top: 8px;
  790. color: $gray-500;
  791. font-size: 11px;
  792. text-align: center;
  793. text-decoration: none;
  794. }
  795. .uppy-Dashboard-poweredByIcon {
  796. position: relative;
  797. top: 1px;
  798. margin-right: 1px;
  799. margin-left: 1px;
  800. vertical-align: text-top;
  801. opacity: 0.9;
  802. fill: none;
  803. stroke: $gray-500;
  804. }
  805. .uppy-Dashboard-Item-previewIcon {
  806. position: absolute;
  807. top: 50%;
  808. left: 50%;
  809. z-index: $zIndex-1;
  810. width: 25px;
  811. height: 25px;
  812. transform: translate(-50%, -50%);
  813. .uppy-size--md & {
  814. width: 38px;
  815. height: 38px;
  816. }
  817. svg {
  818. width: 100%;
  819. height: 100%;
  820. }
  821. .uppy-Dashboard--singleFile & {
  822. width: 100%;
  823. height: 100%;
  824. max-width: 60%;
  825. max-height: 60%;
  826. }
  827. }
  828. .uppy-Dashboard-Item-previewIconWrap {
  829. position: relative;
  830. height: 76px;
  831. max-height: 75%;
  832. .uppy-Dashboard--singleFile & {
  833. width: 100%;
  834. height: 100%;
  835. }
  836. }
  837. .uppy-Dashboard-Item-previewIconBg {
  838. width: 100%;
  839. height: 100%;
  840. filter: drop-shadow(rgba($black, 0.1) 0 1px 1px);
  841. }
  842. .uppy-Dashboard-upload {
  843. position: relative;
  844. width: 50px;
  845. height: 50px;
  846. .uppy-size--md & {
  847. width: 60px;
  848. height: 60px;
  849. }
  850. }
  851. .uppy-Dashboard-upload .uppy-c-icon {
  852. position: relative;
  853. top: 1px;
  854. width: 50%;
  855. }
  856. .uppy-Dashboard-uploadCount {
  857. position: absolute;
  858. top: -12px;
  859. width: 16px;
  860. height: 16px;
  861. color: $white;
  862. font-size: 8px;
  863. line-height: 16px;
  864. background-color: $green;
  865. border-radius: 50%;
  866. inset-inline-end: -12px;
  867. .uppy-size--md & {
  868. width: 18px;
  869. height: 18px;
  870. font-size: 9px;
  871. line-height: 18px;
  872. }
  873. }