style.scss 22 KB

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