App.scss 19 KB

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