style.scss 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286
  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-dropFilesHereHint {
  486. display: flex;
  487. align-items: center;
  488. justify-content: center;
  489. visibility: hidden;
  490. position: absolute;
  491. top: 3px;
  492. right: 3px;
  493. bottom: 3px;
  494. left: 3px;
  495. padding-top: 90px;
  496. border: 2px dashed rgb(34, 117, 215);
  497. border-radius: 4px;
  498. z-index: 2000;
  499. text-align: center;
  500. background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2V1zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0v1zm7.707 19.293a.999.999 0 1 1-1.414 1.414L25 16.414V34a1 1 0 1 1-2 0V16.414l-5.293 5.293a.999.999 0 1 1-1.414-1.414l7-7a.999.999 0 0 1 1.414 0l7 7z' fill='%232275D7' fill-rule='nonzero'/%3E%3C/svg%3E");
  501. background-position: 50% 50%;
  502. background-repeat: no-repeat;
  503. color: #707070;
  504. font-size: 16px;
  505. }
  506. .uppy-Dashboard.uppy-Dashboard--isDraggingOver{
  507. .uppy-Dashboard-dropFilesHereHint{
  508. visibility: visible;
  509. }
  510. .uppy-DashboardContent-bar,
  511. .uppy-Dashboard-files,
  512. .uppy-Dashboard-progressindicators {
  513. opacity: 0.2;
  514. }
  515. .uppy-DashboardAddFiles {
  516. opacity: 0.03;
  517. }
  518. }
  519. .uppy-Dashboard-dropFilesTitle {
  520. max-width: 300px;
  521. text-align: center;
  522. font-size: 16px;
  523. line-height: 1.45;
  524. font-weight: 400;
  525. color: $gray-700;
  526. margin: auto;
  527. padding: 0 15px;
  528. padding-top: 20px;
  529. .uppy-size--md & {
  530. max-width: 400px;
  531. font-size: 27px;
  532. }
  533. }
  534. .uppy-Dashboard-note {
  535. font-size: 14px;
  536. line-height: 1.25;
  537. text-align: center;
  538. color: $gray-600;
  539. max-width: 350px;
  540. margin: auto;
  541. padding: 0 15px;
  542. .uppy-size--md & {
  543. font-size: 16px;
  544. line-height: 1.35;
  545. max-width: 600px;
  546. }
  547. }
  548. a.uppy-Dashboard-poweredBy {
  549. display: inline-block;
  550. text-align: center;
  551. font-size: 11px;
  552. color: $gray-500;
  553. text-decoration: none;
  554. margin-top: 8px;
  555. }
  556. .uppy-Dashboard-poweredByIcon {
  557. stroke: $gray-500;
  558. fill: none;
  559. margin-left: 1px;
  560. margin-right: 1px;
  561. position: relative;
  562. top: 1px;
  563. opacity: 0.9;
  564. vertical-align: text-top;
  565. }
  566. .uppy-DashboardItem {
  567. list-style: none;
  568. margin: 10px 0;
  569. position: relative;
  570. display: flex;
  571. align-items: center;
  572. border-bottom: 1px solid $gray-200;
  573. padding-bottom: 10px;
  574. padding-left: 10px;
  575. $rl-margin: 15px;
  576. .uppy-size--md & {
  577. float: left;
  578. margin: 5px $rl-margin;
  579. width: calc(33.333% - #{$rl-margin} - #{$rl-margin});
  580. height: 170px;
  581. flex-direction: column;
  582. background-color: initial;
  583. border: 0;
  584. border-bottom: none;
  585. padding-bottom: 0;
  586. padding-left: 0;
  587. }
  588. .uppy-size--lg & {
  589. width: calc(25% - #{$rl-margin} - #{$rl-margin});
  590. height: 190px;
  591. }
  592. .uppy-size--xl & {
  593. width: calc(20% - #{$rl-margin} - #{$rl-margin});
  594. height: 210px;
  595. }
  596. }
  597. .uppy-DashboardItem-preview {
  598. width: 50px;
  599. height: 50px;
  600. border-bottom: 0;
  601. position: relative;
  602. display: flex;
  603. justify-content: center;
  604. align-items: center;
  605. .uppy-size--md & {
  606. width: 100%;
  607. height: 100px;
  608. border: 0;
  609. }
  610. .uppy-size--lg & {
  611. height: 120px;
  612. }
  613. .uppy-size--xl & {
  614. height: 140px;
  615. }
  616. }
  617. .uppy-DashboardItem-previewLink {
  618. position: absolute;
  619. left: 0;
  620. top: 0;
  621. right: 0;
  622. bottom: 0;
  623. z-index: $zIndex-3;
  624. }
  625. .uppy-DashboardItem-sourceIcon {
  626. display: inline-block;
  627. vertical-align: bottom;
  628. color: $gray-500;
  629. }
  630. .uppy-DashboardItem-sourceIcon svg,
  631. .uppy-DashboardItem-sourceIcon svg * {
  632. max-width: 100%;
  633. max-height: 100%;
  634. display: inline-block;
  635. vertical-align: text-bottom;
  636. overflow: hidden;
  637. fill: currentColor;
  638. width: 11px;
  639. height: 12px;
  640. }
  641. .uppy-DashboardItem-previewInnerWrap {
  642. width: 100%;
  643. height: 100%;
  644. overflow: hidden;
  645. position: relative;
  646. display: flex;
  647. justify-content: center;
  648. align-items: center;
  649. flex-direction: column;
  650. box-shadow: 0 0 2px 0 rgba($black, 0.4);
  651. border-radius: 3px;
  652. .uppy-size--md & {
  653. box-shadow: 0 1px 3px rgba($black, 0.2);
  654. }
  655. }
  656. .uppy-DashboardItem-previewInnerWrap:after {
  657. content: '';
  658. position: absolute;
  659. top: 0;
  660. bottom: 0;
  661. left: 0;
  662. right: 0;
  663. background-color: rgba($black, 0.65) /* no !important */;
  664. display: none;
  665. z-index: $zIndex-2;
  666. }
  667. .uppy-DashboardItem-preview img {
  668. width: 100%;
  669. height: 100%;
  670. object-fit: cover;
  671. }
  672. .uppy-DashboardItem-previewIconWrap {
  673. height: 76px;
  674. max-height: 75%;
  675. position: relative;
  676. }
  677. .uppy-DashboardItem-previewIconBg {
  678. width: 100%;
  679. height: 100%;
  680. filter: drop-shadow(rgba($black, 0.1) 0px 1px 1px);
  681. }
  682. .uppy-DashboardItem-previewIcon {
  683. width: 25px;
  684. height: 25px;
  685. z-index: $zIndex-1;
  686. position: absolute;
  687. top: 50%;
  688. left: 50%;
  689. transform: translate(-50%, -50%);
  690. .uppy-size--md & {
  691. width: 38px;
  692. height: 38px;
  693. }
  694. svg {
  695. width: 100%;
  696. height: 100%;
  697. }
  698. }
  699. .uppy-DashboardItem-previewType {
  700. position: absolute;
  701. bottom: 14px;
  702. left: 50%;
  703. transform: translate(-50%, 0);
  704. text-transform: uppercase;
  705. font-size: 9px;
  706. letter-spacing: 1px;
  707. color: $gray-700;
  708. z-index: $zIndex-1;
  709. user-select: none;
  710. }
  711. .uppy-DashboardItem-info {
  712. padding-left: 15px;
  713. position: relative;
  714. max-width: 65%;
  715. .uppy-size--md & {
  716. width: 100%;
  717. max-width: 100%;
  718. flex: 1;
  719. padding: 8px 0 0;
  720. border-top: 0;
  721. }
  722. }
  723. .uppy-DashboardItem-name {
  724. font-size: 12px;
  725. line-height: 1.3;
  726. font-weight: 500;
  727. margin: 0;
  728. padding: 0;
  729. margin-bottom: 5px;
  730. text-overflow: ellipsis;
  731. white-space: nowrap;
  732. overflow: hidden;
  733. .uppy-size--md & {
  734. word-break: break-all;
  735. white-space: normal;
  736. overflow: initial;
  737. }
  738. }
  739. .uppy-DashboardItem-name a {
  740. text-decoration: none;
  741. color: $gray-800;
  742. }
  743. .uppy-DashboardItem-status {
  744. font-size: 11px;
  745. line-height: 1.3;
  746. font-weight: normal;
  747. color: $gray-600;
  748. margin-bottom: 4px;
  749. }
  750. .uppy-DashboardItem-statusSize {
  751. display: inline-block;
  752. vertical-align: bottom;
  753. text-transform: uppercase;
  754. }
  755. .uppy-DashboardItem-edit,
  756. .uppy-DashboardItem-copyLink {
  757. display: inline-block;
  758. vertical-align: bottom;
  759. cursor: pointer;
  760. font-family: inherit;
  761. font-size: inherit;
  762. line-height: inherit;
  763. color: inherit;
  764. &:hover {
  765. text-decoration: underline;
  766. }
  767. }
  768. .uppy-DashboardItem-edit:not(:first-child),
  769. .uppy-DashboardItem-copyLink:not(:first-child),
  770. .uppy-DashboardItem-sourceIcon:not(:first-child) {
  771. position: relative;
  772. margin-left: 14px;
  773. // margin-right: 7px;
  774. &:before {
  775. content: '\00B7';
  776. position: absolute;
  777. top: 0;
  778. left: -9px;
  779. color: $gray-600;
  780. }
  781. }
  782. .uppy-DashboardItem-action {
  783. position: absolute;
  784. top: 18px;
  785. right: 10px;
  786. z-index: $zIndex-3;
  787. .uppy-size--md & {
  788. top: -8px;
  789. right: -8px;
  790. }
  791. }
  792. .uppy-DashboardItem-remove {
  793. @include reset-button;
  794. cursor: pointer;
  795. color: $gray-900;
  796. width: 20px;
  797. height: 20px;
  798. padding: 1px;
  799. opacity: 0.9;
  800. &:hover {
  801. opacity: 1;
  802. }
  803. }
  804. .uppy-DashboardItem.is-inprogress:not(.is-resumable) .uppy-DashboardItem-remove {
  805. display: none;
  806. }
  807. .uppy-DashboardItem-progress {
  808. position: absolute;
  809. top: 50%;
  810. left: 50%;
  811. transform: translate(-50%, -50%);
  812. z-index: $zIndex-3;
  813. color: $white;
  814. text-align: center;
  815. width: 120px;
  816. display: none;
  817. transition: all .35 ease;
  818. }
  819. .uppy-DashboardItem.is-complete .uppy-DashboardItem-progress {
  820. transform: initial;
  821. top: -9px;
  822. right: -8px;
  823. left: initial;
  824. width: auto;
  825. }
  826. .uppy-DashboardItem.is-inprogress .uppy-DashboardItem-progress,
  827. .uppy-DashboardItem.is-complete .uppy-DashboardItem-progress,
  828. .uppy-DashboardItem.is-error .uppy-DashboardItem-progress {
  829. display: block;
  830. }
  831. .uppy-DashboardItem-progressIndicator {
  832. @include reset-button;
  833. display: inline-block;
  834. width: 38px;
  835. height: 38px;
  836. opacity: 0.9;
  837. .uppy-size--md & {
  838. width: 55px;
  839. height: 55px;
  840. }
  841. }
  842. button.uppy-DashboardItem-progressIndicator {
  843. cursor: pointer;
  844. }
  845. .uppy-DashboardItem.is-error .uppy-DashboardItem-progressIndicator {
  846. width: 18px;
  847. height: 18px;
  848. .uppy-size--md & {
  849. width: 28px;
  850. height: 28px;
  851. }
  852. }
  853. .uppy-DashboardItem.is-complete .uppy-DashboardItem-progressIndicator {
  854. width: 18px;
  855. height: 18px;
  856. opacity: 1;
  857. .uppy-size--md & {
  858. width: 22px;
  859. height: 22px;
  860. }
  861. }
  862. .uppy-DashboardItem-progressInfo {
  863. font-size: 9px;
  864. line-height: 1;
  865. font-weight: 500;
  866. height: 10px;
  867. display: none;
  868. position: absolute;
  869. bottom: -10px;
  870. left: 0;
  871. width: 100%;
  872. text-shadow: 0 1px 0 rgba($black, 0.3);
  873. .uppy-size--md & {
  874. display: block;
  875. }
  876. }
  877. .UppyIcon-progressCircle {
  878. width: 100%;
  879. height: 100%;
  880. }
  881. .uppy-DashboardItem .bg {
  882. stroke: rgba($white, 0.4);
  883. opacity: 0;
  884. }
  885. .uppy-DashboardItem .progress {
  886. stroke: $white;
  887. transition: stroke-dashoffset .5s ease-out;
  888. opacity: 0;
  889. }
  890. .uppy-DashboardItem .play {
  891. stroke: $white;
  892. fill: $white;
  893. opacity: 0;
  894. transition: all 0.2s;
  895. display: none;
  896. }
  897. .uppy-DashboardItem .cancel {
  898. fill: $white;
  899. opacity: 0;
  900. transition: all 0.2s;
  901. }
  902. .uppy-DashboardItem .pause {
  903. stroke: $white;
  904. fill: $white;
  905. opacity: 0;
  906. transition: all 0.2s;
  907. display: none;
  908. }
  909. .uppy-DashboardItem.is-error .retry {
  910. fill: $white;
  911. }
  912. .uppy-DashboardItem.is-resumable {
  913. .pause, .play { display: block; }
  914. .cancel { display: none; }
  915. }
  916. .UppyIcon-progressCircle .check {
  917. opacity: 0;
  918. fill: $white;
  919. transition: all 0.2s;
  920. }
  921. .uppy-DashboardItem.is-inprogress {
  922. .bg, .progress, .pause, .cancel {
  923. opacity: 1;
  924. }
  925. .uppy-DashboardItem-previewInnerWrap:after {
  926. display: block;
  927. }
  928. }
  929. .uppy-DashboardItem.is-error {
  930. .uppy-DashboardItem-previewInnerWrap:after {
  931. display: block;
  932. }
  933. }
  934. .uppy-DashboardItem.is-paused {
  935. .pause {
  936. opacity: 0;
  937. }
  938. .play {
  939. opacity: 1;
  940. }
  941. }
  942. .uppy-DashboardItem.is-noIndividualCancellation {
  943. .uppy-DashboardItem-progressIndicator {
  944. cursor: default;
  945. }
  946. .cancel {
  947. display: none;
  948. }
  949. }
  950. .uppy-DashboardItem.is-processing .uppy-DashboardItem-progress {
  951. opacity: 0;
  952. }
  953. .uppy-DashboardItem.is-complete {
  954. .uppy-DashboardItem-progressIndicator {
  955. cursor: default;
  956. }
  957. .progress {
  958. stroke: $green;
  959. fill: $green;
  960. opacity: 1;
  961. }
  962. .check {
  963. opacity: 1;
  964. }
  965. }
  966. .uppy-DashboardItem-progressNum {
  967. position: relative;
  968. z-index: $zIndex-2;
  969. }
  970. .uppy-DashboardItem-progressInner {
  971. height: 15px;
  972. background-color: $blue;
  973. position: absolute;
  974. top: 0;
  975. left: 0;
  976. }
  977. .uppy-Dashboard-actions {
  978. height: 55px;
  979. border-top: 1px solid $gray-200;
  980. display: flex;
  981. align-items: center;
  982. padding: 0 15px;
  983. background-color: $gray-50;
  984. }
  985. .uppy-size--md .uppy-Dashboard-actions {
  986. height: 65px;
  987. }
  988. .uppy-Dashboard-actionsBtn {
  989. margin-right: 10px;
  990. }
  991. .uppy-Dashboard-pauseResume .UppyIcon {
  992. width: 100%;
  993. height: 100%;
  994. }
  995. .uppy-Dashboard-upload {
  996. position: relative;
  997. width: 50px;
  998. height: 50px;
  999. .uppy-size--md & {
  1000. width: 60px;
  1001. height: 60px;
  1002. }
  1003. }
  1004. .uppy-Dashboard-upload .UppyIcon {
  1005. position: relative;
  1006. top: 1px;
  1007. width: 50%;
  1008. }
  1009. .uppy-Dashboard-uploadCount {
  1010. position: absolute;
  1011. top: -12px;
  1012. right: -12px;
  1013. background-color: $green;
  1014. color: $white;
  1015. border-radius: 50%;
  1016. width: 16px;
  1017. height: 16px;
  1018. line-height: 16px;
  1019. font-size: 8px;
  1020. .uppy-size--md & {
  1021. width: 18px;
  1022. height: 18px;
  1023. line-height: 18px;
  1024. font-size: 9px;
  1025. }
  1026. }
  1027. //
  1028. // File Card
  1029. //
  1030. .uppy-DashboardFileCard {
  1031. // transform: translate3d(0, 0, 0);
  1032. // transition: transform 0.2s ease-in-out;
  1033. width: 100%;
  1034. height: 100%;
  1035. position: absolute;
  1036. top: 0;
  1037. left: 0;
  1038. right: 0;
  1039. bottom: 0;
  1040. z-index: $zIndex-5;
  1041. box-shadow: 0px 0px 10px 4px rgba($black, 0.1);
  1042. background-color: $white;
  1043. display: flex;
  1044. flex-direction: column;
  1045. }
  1046. // .uppy-DashboardFileCard[aria-hidden=true] {
  1047. // transform: translate3d(0, -105%, 0);
  1048. // }
  1049. .uppy-DashboardFileCard-inner {
  1050. display: flex;
  1051. flex-direction: column;
  1052. height: 100%;
  1053. flex: 1;
  1054. }
  1055. .uppy-DashboardFileCard-preview {
  1056. display: flex;
  1057. align-items: center;
  1058. justify-content: center;
  1059. flex-grow: 1;
  1060. border-bottom: 1px solid $gray-200;
  1061. background-color: $gray-50; /* no !important */
  1062. position: relative;
  1063. }
  1064. .uppy-DashboardFileCard-preview img {
  1065. box-shadow: 0px 3px 20px rgba($black, 0.15);
  1066. max-width: 90%;
  1067. max-height: 90%;
  1068. object-fit: cover;
  1069. border-radius: 3px;
  1070. position: absolute;
  1071. }
  1072. .uppy-DashboardFileCard-info {
  1073. padding: 30px 20px 20px 20px;
  1074. max-height: 40%;
  1075. flex-grow: 1;
  1076. overflow-y: auto;
  1077. -webkit-overflow-scrolling: touch;
  1078. }
  1079. .uppy-DashboardFileCard-fieldset {
  1080. font-size: 0;
  1081. border: 0;
  1082. padding: 0;
  1083. max-width: 640px;
  1084. margin: auto;
  1085. margin-bottom: 12px;
  1086. }
  1087. .uppy-DashboardFileCard-label {
  1088. display: inline-block;
  1089. vertical-align: middle;
  1090. width: 22%;
  1091. font-size: 12px;
  1092. color: $gray-700;
  1093. .uppy-size--md & {
  1094. font-size: 14px;
  1095. }
  1096. }
  1097. .uppy-DashboardFileCard-input {
  1098. display: inline-block;
  1099. vertical-align: middle;
  1100. width: 78%;
  1101. }