style.scss 17 KB

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