style.scss 22 KB

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