style.scss 23 KB

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