style.scss 22 KB

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