App.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  1. // stylelint-disable rscss/class-format
  2. @import './_variables.scss';
  3. :root {
  4. --navbar-height: 3.5rem;
  5. --post-line-height: 1.4;
  6. }
  7. html {
  8. font-size: 14px;
  9. // overflow-x: clip causes my browser's tab to crash with SIGILL lul
  10. }
  11. body {
  12. font-family: sans-serif;
  13. font-family: var(--interfaceFont, sans-serif);
  14. margin: 0;
  15. color: $fallback--text;
  16. color: var(--text, $fallback--text);
  17. -webkit-font-smoothing: antialiased;
  18. -moz-osx-font-smoothing: grayscale;
  19. overscroll-behavior-y: none;
  20. overflow-x: clip;
  21. overflow-y: scroll;
  22. &.hidden {
  23. display: none;
  24. }
  25. }
  26. // ## Custom scrollbars
  27. // Only show custom scrollbars on devices which
  28. // have a cursor/pointer to operate them
  29. @media (any-pointer: fine) {
  30. * {
  31. scrollbar-color: var(--btn) transparent;
  32. &::-webkit-scrollbar {
  33. background: transparent;
  34. }
  35. &::-webkit-scrollbar-button,
  36. &::-webkit-scrollbar-thumb {
  37. background-color: var(--btn);
  38. box-shadow: var(--buttonShadow);
  39. border-radius: var(--btnRadius);
  40. }
  41. // horizontal/vertical/increment/decrement are webkit-specific stuff
  42. // that indicates whether we're affecting vertical scrollbar, increase button etc
  43. // stylelint-disable selector-pseudo-class-no-unknown
  44. &::-webkit-scrollbar-button {
  45. --___bgPadding: 2px;
  46. color: var(--btnText);
  47. background-repeat: no-repeat, no-repeat;
  48. &:horizontal {
  49. background-size: 50% calc(50% - var(--___bgPadding)), 50% calc(50% - var(--___bgPadding));
  50. &:increment {
  51. background-image:
  52. linear-gradient(45deg, var(--btnText) 50%, transparent 51%),
  53. linear-gradient(-45deg, transparent 50%, var(--btnText) 51%);
  54. background-position: top var(--___bgPadding) left 50%, right 50% bottom var(--___bgPadding);
  55. }
  56. &:decrement {
  57. background-image:
  58. linear-gradient(45deg, transparent 50%, var(--btnText) 51%),
  59. linear-gradient(-45deg, var(--btnText) 50%, transparent 51%);
  60. background-position: bottom var(--___bgPadding) right 50%, left 50% top var(--___bgPadding);
  61. }
  62. }
  63. &:vertical {
  64. background-size: calc(50% - var(--___bgPadding)) 50%, calc(50% - var(--___bgPadding)) 50%;
  65. &:increment {
  66. background-image:
  67. linear-gradient(-45deg, transparent 50%, var(--btnText) 51%),
  68. linear-gradient(45deg, transparent 50%, var(--btnText) 51%);
  69. background-position: right var(--___bgPadding) top 50%, left var(--___bgPadding) top 50%;
  70. }
  71. &:decrement {
  72. background-image:
  73. linear-gradient(-45deg, var(--btnText) 50%, transparent 51%),
  74. linear-gradient(45deg, var(--btnText) 50%, transparent 51%);
  75. background-position: left var(--___bgPadding) top 50%, right var(--___bgPadding) top 50%;
  76. }
  77. }
  78. }
  79. // stylelint-enable selector-pseudo-class-no-unknown
  80. }
  81. // Body should have background to scrollbar otherwise it will use white (body color?)
  82. html {
  83. scrollbar-color: var(--selectedMenu) var(--wallpaper);
  84. background: var(--wallpaper);
  85. }
  86. }
  87. a {
  88. text-decoration: none;
  89. color: $fallback--link;
  90. color: var(--link, $fallback--link);
  91. }
  92. h4 {
  93. margin: 0;
  94. }
  95. i[class*=icon-],
  96. .svg-inline--fa {
  97. color: $fallback--icon;
  98. color: var(--icon, $fallback--icon);
  99. }
  100. nav {
  101. z-index: 1000;
  102. color: var(--topBarText);
  103. background-color: $fallback--fg;
  104. background-color: var(--topBar, $fallback--fg);
  105. color: $fallback--faint;
  106. color: var(--faint, $fallback--faint);
  107. box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  108. box-shadow: var(--topBarShadow);
  109. box-sizing: border-box;
  110. height: var(--navbar-height);
  111. position: fixed;
  112. }
  113. #sidebar {
  114. grid-area: sidebar;
  115. }
  116. .column.-scrollable {
  117. top: var(--navbar-height);
  118. position: sticky;
  119. }
  120. #main-scroller {
  121. margin-top: var(--navbar-height);
  122. grid-area: content;
  123. position: relative;
  124. }
  125. #notifs-column {
  126. grid-area: notifs;
  127. }
  128. .app-bg-wrapper {
  129. position: fixed;
  130. height: 100%;
  131. top: var(--navbar-height);
  132. z-index: -1000;
  133. left: 0;
  134. right: -20px;
  135. background-size: cover;
  136. background-repeat: no-repeat;
  137. background-color: var(--wallpaper);
  138. background-image: var(--body-background-image);
  139. background-position: 50%;
  140. }
  141. .underlay {
  142. grid-column-start: 1;
  143. grid-column-end: span 3;
  144. grid-row-start: 1;
  145. grid-row-end: 1;
  146. pointer-events: none;
  147. background-color: rgba(0, 0, 0, 0.15);
  148. background-color: var(--underlay, rgba(0, 0, 0, 0.15));
  149. z-index: -1000;
  150. }
  151. .app-layout {
  152. --miniColumn: 25rem;
  153. --maxiColumn: minmax(var(--miniColumn), 45rem);
  154. --columnGap: 1em;
  155. --status-margin: 0.75em;
  156. position: relative;
  157. display: grid;
  158. grid-template-columns: var(--miniColumn) var(--maxiColumn);
  159. grid-template-areas: "sidebar content";
  160. grid-template-rows: 1fr;
  161. box-sizing: border-box;
  162. margin: 0 auto;
  163. align-content: flex-start;
  164. flex-wrap: wrap;
  165. justify-content: center;
  166. min-height: 100vh;
  167. overflow-x: clip;
  168. .column {
  169. --___columnMargin: var(--columnGap);
  170. display: grid;
  171. grid-template-columns: 100%;
  172. box-sizing: border-box;
  173. grid-row-start: 1;
  174. grid-row-end: 1;
  175. margin: 0 calc(var(--___columnMargin) / 2);
  176. padding: calc(var(--___columnMargin)) 0;
  177. row-gap: var(--___columnMargin);
  178. align-content: start;
  179. &:hover {
  180. z-index: 2;
  181. }
  182. &.-full-height {
  183. margin-top: 0;
  184. margin-bottom: 0;
  185. }
  186. &.-scrollable {
  187. --___paddingIncrease: calc(var(--columnGap) / 2);
  188. position: sticky;
  189. top: var(--navbar-height);
  190. max-height: calc(100vh - var(--navbar-height));
  191. overflow-y: auto;
  192. overflow-x: hidden;
  193. margin-left: calc(var(--___paddingIncrease) * -1);
  194. padding-left: calc(var(--___paddingIncrease) + var(--___columnMargin) / 2);
  195. // On browsers that don't support hiding scrollbars we enforce "show scrolbars" mode
  196. // might implement old style of hiding scrollbars later if there's demand
  197. @supports (scrollbar-width: none) or (-webkit-text-fill-color: initial) {
  198. &:not(.-show-scrollbar) {
  199. scrollbar-width: none;
  200. margin-right: calc(var(--___paddingIncrease) * -1);
  201. padding-right: calc(var(--___paddingIncrease) + var(--___columnMargin) / 2);
  202. &::-webkit-scrollbar {
  203. display: block;
  204. width: 0;
  205. }
  206. }
  207. }
  208. .panel-heading.-sticky {
  209. top: calc(var(--columnGap) / -1);
  210. }
  211. }
  212. }
  213. &.-has-new-post-button {
  214. .column {
  215. padding-bottom: 10rem;
  216. }
  217. }
  218. &.-no-sticky-headers {
  219. .column {
  220. .panel-heading.-sticky {
  221. position: relative;
  222. top: 0;
  223. }
  224. }
  225. }
  226. .column-inner {
  227. display: grid;
  228. grid-template-columns: 100%;
  229. box-sizing: border-box;
  230. row-gap: 1em;
  231. align-content: start;
  232. }
  233. &.-reverse:not(.-wide):not(.-mobile) {
  234. grid-template-columns: var(--maxiColumn) var(--miniColumn);
  235. grid-template-areas: "content sidebar";
  236. }
  237. &.-wide {
  238. grid-template-columns: var(--miniColumn) var(--maxiColumn) var(--miniColumn);
  239. grid-template-areas: "sidebar content notifs";
  240. &.-reverse {
  241. grid-template-areas: "notifs content sidebar";
  242. }
  243. }
  244. &.-mobile {
  245. grid-template-columns: 100vw;
  246. grid-template-areas: "content";
  247. padding: 0;
  248. .column {
  249. margin: 0;
  250. }
  251. .underlay,
  252. #sidebar,
  253. #notifs-column {
  254. display: none;
  255. }
  256. }
  257. &.-normal {
  258. #notifs-column {
  259. display: none;
  260. }
  261. }
  262. }
  263. .text-center {
  264. text-align: center;
  265. }
  266. .button-default {
  267. user-select: none;
  268. color: $fallback--text;
  269. color: var(--btnText, $fallback--text);
  270. background-color: $fallback--fg;
  271. background-color: var(--btn, $fallback--fg);
  272. border: none;
  273. border-radius: $fallback--btnRadius;
  274. border-radius: var(--btnRadius, $fallback--btnRadius);
  275. cursor: pointer;
  276. box-shadow: $fallback--buttonShadow;
  277. box-shadow: var(--buttonShadow);
  278. font-size: 1em;
  279. font-family: sans-serif;
  280. font-family: var(--interfaceFont, sans-serif);
  281. &.-sublime {
  282. background: transparent;
  283. }
  284. i[class*=icon-],
  285. .svg-inline--fa {
  286. color: $fallback--text;
  287. color: var(--btnText, $fallback--text);
  288. }
  289. &::-moz-focus-inner {
  290. border: none;
  291. }
  292. &:hover {
  293. box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
  294. box-shadow: var(--buttonHoverShadow);
  295. }
  296. &:active {
  297. box-shadow: 0 0 4px 0 rgba(255, 255, 255, 0.3), 0 1px 0 0 rgba(0, 0, 0, 0.2) inset, 0 -1px 0 0 rgba(255, 255, 255, 0.2) inset;
  298. box-shadow: var(--buttonPressedShadow);
  299. color: $fallback--text;
  300. color: var(--btnPressedText, $fallback--text);
  301. background-color: $fallback--fg;
  302. background-color: var(--btnPressed, $fallback--fg);
  303. svg,
  304. i {
  305. color: $fallback--text;
  306. color: var(--btnPressedText, $fallback--text);
  307. }
  308. }
  309. &:disabled {
  310. cursor: not-allowed;
  311. color: $fallback--text;
  312. color: var(--btnDisabledText, $fallback--text);
  313. background-color: $fallback--fg;
  314. background-color: var(--btnDisabled, $fallback--fg);
  315. svg,
  316. i {
  317. color: $fallback--text;
  318. color: var(--btnDisabledText, $fallback--text);
  319. }
  320. }
  321. &.toggled {
  322. color: $fallback--text;
  323. color: var(--btnToggledText, $fallback--text);
  324. background-color: $fallback--fg;
  325. background-color: var(--btnToggled, $fallback--fg);
  326. box-shadow: 0 0 4px 0 rgba(255, 255, 255, 0.3), 0 1px 0 0 rgba(0, 0, 0, 0.2) inset, 0 -1px 0 0 rgba(255, 255, 255, 0.2) inset;
  327. box-shadow: var(--buttonPressedShadow);
  328. svg,
  329. i {
  330. color: $fallback--text;
  331. color: var(--btnToggledText, $fallback--text);
  332. }
  333. }
  334. &.danger {
  335. // TODO: add better color variable
  336. color: $fallback--text;
  337. color: var(--alertErrorPanelText, $fallback--text);
  338. background-color: $fallback--alertError;
  339. background-color: var(--alertError, $fallback--alertError);
  340. }
  341. }
  342. .button-unstyled {
  343. background: none;
  344. border: none;
  345. outline: none;
  346. display: inline;
  347. text-align: initial;
  348. font-size: 100%;
  349. font-family: inherit;
  350. padding: 0;
  351. line-height: unset;
  352. cursor: pointer;
  353. box-sizing: content-box;
  354. color: inherit;
  355. &.-link {
  356. color: $fallback--link;
  357. color: var(--link, $fallback--link);
  358. }
  359. &.-fullwidth {
  360. width: 100%;
  361. }
  362. &.-hover-highlight {
  363. &:hover svg {
  364. color: $fallback--lightText;
  365. color: var(--lightText, $fallback--lightText);
  366. }
  367. }
  368. }
  369. input,
  370. textarea,
  371. .input {
  372. &.unstyled {
  373. border-radius: 0;
  374. background: none;
  375. box-shadow: none;
  376. height: unset;
  377. }
  378. --_padding: 0.5em;
  379. border: none;
  380. border-radius: $fallback--inputRadius;
  381. border-radius: var(--inputRadius, $fallback--inputRadius);
  382. box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2) inset, 0 -1px 0 0 rgba(255, 255, 255, 0.2) inset, 0 0 2px 0 rgba(0, 0, 0, 1) inset;
  383. box-shadow: var(--inputShadow);
  384. background-color: $fallback--fg;
  385. background-color: var(--input, $fallback--fg);
  386. color: $fallback--lightText;
  387. color: var(--inputText, $fallback--lightText);
  388. font-family: sans-serif;
  389. font-family: var(--inputFont, sans-serif);
  390. font-size: 1em;
  391. margin: 0;
  392. box-sizing: border-box;
  393. display: inline-block;
  394. position: relative;
  395. line-height: 2;
  396. hyphens: none;
  397. padding: 0 var(--_padding);
  398. &:disabled,
  399. &[disabled=disabled],
  400. &.disabled {
  401. cursor: not-allowed;
  402. opacity: 0.5;
  403. }
  404. &[type=range] {
  405. background: none;
  406. border: none;
  407. margin: 0;
  408. box-shadow: none;
  409. flex: 1;
  410. }
  411. &[type=radio] {
  412. display: none;
  413. &:checked + label::before {
  414. box-shadow: 0 0 2px black inset, 0 0 0 4px $fallback--fg inset;
  415. box-shadow: var(--inputShadow), 0 0 0 4px var(--fg, $fallback--fg) inset;
  416. background-color: var(--accent, $fallback--link);
  417. }
  418. &:disabled {
  419. &,
  420. & + label,
  421. & + label::before {
  422. opacity: 0.5;
  423. }
  424. }
  425. + label::before {
  426. flex-shrink: 0;
  427. display: inline-block;
  428. content: '';
  429. transition: box-shadow 200ms;
  430. width: 1.1em;
  431. height: 1.1em;
  432. border-radius: 100%; // Radio buttons should always be circle
  433. box-shadow: 0 0 2px black inset;
  434. box-shadow: var(--inputShadow);
  435. margin-right: 0.5em;
  436. background-color: $fallback--fg;
  437. background-color: var(--input, $fallback--fg);
  438. vertical-align: top;
  439. text-align: center;
  440. line-height: 1.1;
  441. font-size: 1.1em;
  442. box-sizing: border-box;
  443. color: transparent;
  444. overflow: hidden;
  445. }
  446. }
  447. &[type=checkbox] {
  448. display: none;
  449. &:checked + label::before {
  450. color: $fallback--text;
  451. color: var(--inputText, $fallback--text);
  452. }
  453. &:disabled {
  454. &,
  455. & + label,
  456. & + label::before {
  457. opacity: 0.5;
  458. }
  459. }
  460. + label::before {
  461. flex-shrink: 0;
  462. display: inline-block;
  463. content: '✓';
  464. transition: color 200ms;
  465. width: 1.1em;
  466. height: 1.1em;
  467. border-radius: $fallback--checkboxRadius;
  468. border-radius: var(--checkboxRadius, $fallback--checkboxRadius);
  469. box-shadow: 0 0 2px black inset;
  470. box-shadow: var(--inputShadow);
  471. margin-right: 0.5em;
  472. background-color: $fallback--fg;
  473. background-color: var(--input, $fallback--fg);
  474. vertical-align: top;
  475. text-align: center;
  476. line-height: 1.1;
  477. font-size: 1.1em;
  478. box-sizing: border-box;
  479. color: transparent;
  480. overflow: hidden;
  481. }
  482. }
  483. &.resize-height {
  484. resize: vertical;
  485. }
  486. }
  487. // Textareas should have stock line-height + vertical padding instead of huge line-height
  488. textarea {
  489. padding: var(--_padding);
  490. line-height: var(--post-line-height);
  491. }
  492. option {
  493. color: $fallback--text;
  494. color: var(--text, $fallback--text);
  495. background-color: $fallback--bg;
  496. background-color: var(--bg, $fallback--bg);
  497. }
  498. .hide-number-spinner {
  499. -moz-appearance: textfield;
  500. &[type=number]::-webkit-inner-spin-button,
  501. &[type=number]::-webkit-outer-spin-button {
  502. opacity: 0;
  503. display: none;
  504. }
  505. }
  506. .btn-block {
  507. display: block;
  508. width: 100%;
  509. }
  510. .btn-group {
  511. position: relative;
  512. display: inline-flex;
  513. vertical-align: middle;
  514. button {
  515. position: relative;
  516. flex: 1 1 auto;
  517. &:not(:last-child) {
  518. border-top-right-radius: 0;
  519. border-bottom-right-radius: 0;
  520. }
  521. &:not(:first-child) {
  522. border-top-left-radius: 0;
  523. border-bottom-left-radius: 0;
  524. }
  525. }
  526. }
  527. @import './panel.scss';
  528. .fa {
  529. color: grey;
  530. }
  531. .mobile-shown {
  532. display: none;
  533. }
  534. .badge {
  535. box-sizing: border-box;
  536. display: inline-block;
  537. border-radius: 99px;
  538. max-width: 10em;
  539. min-width: 1.7em;
  540. height: 1.3em;
  541. padding: 0.15em 0.15em;
  542. vertical-align: middle;
  543. font-weight: normal;
  544. font-style: normal;
  545. font-size: 0.9em;
  546. line-height: 1;
  547. text-align: center;
  548. white-space: nowrap;
  549. overflow: hidden;
  550. text-overflow: ellipsis;
  551. &.badge-notification {
  552. background-color: $fallback--cRed;
  553. background-color: var(--badgeNotification, $fallback--cRed);
  554. color: white;
  555. color: var(--badgeNotificationText, white);
  556. }
  557. }
  558. .alert {
  559. margin: 0 0.35em;
  560. padding: 0 0.25em;
  561. border-radius: $fallback--tooltipRadius;
  562. border-radius: var(--tooltipRadius, $fallback--tooltipRadius);
  563. &.error {
  564. background-color: $fallback--alertError;
  565. background-color: var(--alertError, $fallback--alertError);
  566. color: $fallback--text;
  567. color: var(--alertErrorText, $fallback--text);
  568. .panel-heading & {
  569. color: $fallback--text;
  570. color: var(--alertErrorPanelText, $fallback--text);
  571. }
  572. }
  573. &.warning {
  574. background-color: $fallback--alertWarning;
  575. background-color: var(--alertWarning, $fallback--alertWarning);
  576. color: $fallback--text;
  577. color: var(--alertWarningText, $fallback--text);
  578. .panel-heading & {
  579. color: $fallback--text;
  580. color: var(--alertWarningPanelText, $fallback--text);
  581. }
  582. }
  583. &.success {
  584. background-color: var(--alertSuccess, $fallback--alertWarning);
  585. color: var(--alertSuccessText, $fallback--text);
  586. .panel-heading & {
  587. color: var(--alertSuccessPanelText, $fallback--text);
  588. }
  589. }
  590. }
  591. .faint {
  592. color: $fallback--faint;
  593. color: var(--faint, $fallback--faint);
  594. }
  595. .faint-link {
  596. color: $fallback--faint;
  597. color: var(--faint, $fallback--faint);
  598. &:hover {
  599. text-decoration: underline;
  600. }
  601. }
  602. .visibility-notice {
  603. padding: 0.5em;
  604. border: 1px solid $fallback--faint;
  605. border: 1px solid var(--faint, $fallback--faint);
  606. border-radius: $fallback--inputRadius;
  607. border-radius: var(--inputRadius, $fallback--inputRadius);
  608. }
  609. .notice-dismissible {
  610. padding-right: 4rem;
  611. position: relative;
  612. .dismiss {
  613. position: absolute;
  614. top: 0;
  615. right: 0;
  616. padding: 0.5em;
  617. color: inherit;
  618. }
  619. }
  620. .fa-scale-110 {
  621. &.svg-inline--fa {
  622. font-size: 1.1em;
  623. }
  624. }
  625. .fa-old-padding {
  626. &.svg-inline--fa {
  627. padding: 0 0.3em;
  628. }
  629. }
  630. .login-hint {
  631. text-align: center;
  632. @media all and (min-width: 801px) {
  633. display: none;
  634. }
  635. a {
  636. display: inline-block;
  637. padding: 1em 0;
  638. width: 100%;
  639. }
  640. }
  641. .btn.button-default {
  642. min-height: 2em;
  643. }
  644. .new-status-notification {
  645. position: relative;
  646. font-size: 1.1em;
  647. z-index: 1;
  648. flex: 1;
  649. }
  650. @media all and (max-width: 800px) {
  651. .mobile-hidden {
  652. display: none;
  653. }
  654. }
  655. @keyframes spin {
  656. 0% {
  657. transform: rotate(0deg);
  658. }
  659. 100% {
  660. transform: rotate(359deg);
  661. }
  662. }
  663. @keyframes shakeError {
  664. 0% {
  665. transform: translateX(0);
  666. }
  667. 15% {
  668. transform: translateX(0.375rem);
  669. }
  670. 30% {
  671. transform: translateX(-0.375rem);
  672. }
  673. 45% {
  674. transform: translateX(0.375rem);
  675. }
  676. 60% {
  677. transform: translateX(-0.375rem);
  678. }
  679. 75% {
  680. transform: translateX(0.375rem);
  681. }
  682. 90% {
  683. transform: translateX(-0.375rem);
  684. }
  685. 100% {
  686. transform: translateX(0);
  687. }
  688. }
  689. // Vue transitions
  690. .fade-enter-active,
  691. .fade-leave-active {
  692. transition: opacity 0.2s;
  693. }
  694. .fade-enter-from,
  695. .fade-leave-active {
  696. opacity: 0;
  697. }