logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

App.scss (22093B)


  1. // stylelint-disable rscss/class-format
  2. /* stylelint-disable no-descending-specificity */
  3. @import "./panel";
  4. :root {
  5. --status-margin: 0.75em;
  6. --post-line-height: 1.4;
  7. // Z-Index stuff
  8. --ZI_media_modal: 9000;
  9. --ZI_modals_popovers: 8500;
  10. --ZI_modals: 8000;
  11. --ZI_navbar_popovers: 7500;
  12. --ZI_navbar: 7000;
  13. --ZI_popovers: 6000;
  14. // Fallback for when stuff is loading
  15. --background: var(--bg);
  16. }
  17. html {
  18. font-size: var(--textSize, 14px);
  19. --navbar-height: var(--navbarSize, 3.5rem);
  20. --emoji-size: var(--emojiSize, 32px);
  21. --panel-header-height: var(--panelHeaderSize, 3.2rem);
  22. // overflow-x: clip causes my browser's tab to crash with SIGILL lul
  23. }
  24. body {
  25. font-family: sans-serif;
  26. font-family: var(--font);
  27. margin: 0;
  28. color: var(--text);
  29. -webkit-font-smoothing: antialiased;
  30. -moz-osx-font-smoothing: grayscale;
  31. overscroll-behavior-y: none;
  32. overflow-x: clip;
  33. overflow-y: scroll;
  34. &.hidden {
  35. display: none;
  36. }
  37. }
  38. // ## Custom scrollbars
  39. // Only show custom scrollbars on devices which
  40. // have a cursor/pointer to operate them
  41. @media (any-pointer: fine) {
  42. * {
  43. scrollbar-color: var(--fg) transparent;
  44. &::-webkit-scrollbar {
  45. background: transparent;
  46. }
  47. &::-webkit-scrollbar-corner {
  48. background: transparent;
  49. }
  50. &::-webkit-resizer {
  51. /* stylelint-disable-next-line declaration-no-important */
  52. background-color: transparent !important;
  53. background-image:
  54. linear-gradient(
  55. 135deg,
  56. transparent calc(50% - 1px),
  57. var(--textFaint) 50%,
  58. transparent calc(50% + 1px),
  59. transparent calc(75% - 1px),
  60. var(--textFaint) 75%,
  61. transparent calc(75% + 1px),
  62. );
  63. }
  64. &::-webkit-scrollbar-button,
  65. &::-webkit-scrollbar-thumb {
  66. box-shadow: var(--shadow);
  67. border-radius: var(--roundness);
  68. }
  69. // horizontal/vertical/increment/decrement are webkit-specific stuff
  70. // that indicates whether we're affecting vertical scrollbar, increase button etc
  71. // stylelint-disable selector-pseudo-class-no-unknown
  72. &::-webkit-scrollbar-button {
  73. --___bgPadding: 2px;
  74. color: var(--text);
  75. background-repeat: no-repeat, no-repeat;
  76. &:horizontal {
  77. background-size: 50% calc(50% - var(--___bgPadding)), 50% calc(50% - var(--___bgPadding));
  78. &:increment {
  79. background-image:
  80. linear-gradient(45deg, var(--text) 50%, transparent 51%),
  81. linear-gradient(-45deg, transparent 50%, var(--text) 51%);
  82. background-position: top var(--___bgPadding) left 50%, right 50% bottom var(--___bgPadding);
  83. }
  84. &:decrement {
  85. background-image:
  86. linear-gradient(45deg, transparent 50%, var(--text) calc(50% + 1px)),
  87. linear-gradient(-45deg, var(--text) 50%, transparent 51%);
  88. background-position: bottom var(--___bgPadding) right 50%, left 50% top var(--___bgPadding);
  89. }
  90. }
  91. &:vertical {
  92. background-size: calc(50% - var(--___bgPadding)) 50%, calc(50% - var(--___bgPadding)) 50%;
  93. &:increment {
  94. background-image:
  95. linear-gradient(-45deg, transparent 50%, var(--text) 51%),
  96. linear-gradient(45deg, transparent 50%, var(--text) 51%);
  97. background-position: right var(--___bgPadding) top 50%, left var(--___bgPadding) top 50%;
  98. }
  99. &:decrement {
  100. background-image:
  101. linear-gradient(-45deg, var(--text) 50%, transparent 51%),
  102. linear-gradient(45deg, var(--text) 50%, transparent 51%);
  103. background-position: left var(--___bgPadding) top 50%, right var(--___bgPadding) top 50%;
  104. }
  105. }
  106. }
  107. // stylelint-enable selector-pseudo-class-no-unknown
  108. }
  109. // Body should have background to scrollbar otherwise it will use white (body color?)
  110. html {
  111. scrollbar-color: var(--fg) var(--wallpaper);
  112. background: var(--wallpaper);
  113. }
  114. }
  115. a {
  116. text-decoration: none;
  117. color: var(--link);
  118. }
  119. h4 {
  120. margin: 0;
  121. }
  122. .iconLetter {
  123. display: inline-block;
  124. text-align: center;
  125. font-weight: 1000;
  126. }
  127. i[class*="icon-"],
  128. .svg-inline--fa,
  129. .iconLetter {
  130. color: var(--icon);
  131. }
  132. nav {
  133. z-index: var(--ZI_navbar);
  134. box-shadow: var(--shadow);
  135. box-sizing: border-box;
  136. height: var(--navbar-height);
  137. font-size: calc(var(--navbar-height) / 3.5);
  138. position: fixed;
  139. }
  140. #sidebar {
  141. grid-area: sidebar;
  142. }
  143. #modal {
  144. position: absolute;
  145. z-index: var(--ZI_modals);
  146. }
  147. .column.-scrollable {
  148. top: var(--navbar-height);
  149. position: sticky;
  150. }
  151. #main-scroller {
  152. grid-area: content;
  153. position: relative;
  154. }
  155. #notifs-column {
  156. grid-area: notifs;
  157. }
  158. .app-bg-wrapper {
  159. position: fixed;
  160. height: 100%;
  161. top: var(--navbar-height);
  162. z-index: -1000;
  163. left: 0;
  164. right: -20px;
  165. background-size: cover;
  166. background-repeat: no-repeat;
  167. background-color: var(--wallpaper);
  168. background-image: var(--body-background-image);
  169. background-position: 50%;
  170. }
  171. .underlay {
  172. grid-column: 1 / span 3;
  173. grid-row: 1 / 1;
  174. pointer-events: none;
  175. background-color: var(--underlay);
  176. z-index: -1000;
  177. }
  178. .app-layout {
  179. --miniColumn: 25rem;
  180. --maxiColumn: 45rem;
  181. --columnGap: 1rem;
  182. --effectiveSidebarColumnWidth: minmax(var(--miniColumn), var(--sidebarColumnWidth, var(--miniColumn)));
  183. --effectiveNotifsColumnWidth: minmax(var(--miniColumn), var(--notifsColumnWidth, var(--miniColumn)));
  184. --effectiveContentColumnWidth: minmax(var(--miniColumn), var(--contentColumnWidth, var(--maxiColumn)));
  185. position: relative;
  186. display: grid;
  187. grid-template-columns:
  188. var(--effectiveSidebarColumnWidth)
  189. var(--effectiveContentColumnWidth);
  190. grid-template-areas: "sidebar content";
  191. grid-template-rows: 1fr;
  192. box-sizing: border-box;
  193. margin: 0 auto;
  194. align-content: flex-start;
  195. flex-wrap: wrap;
  196. justify-content: center;
  197. min-height: 100vh;
  198. overflow-x: clip;
  199. .column {
  200. --___columnMargin: var(--columnGap);
  201. display: grid;
  202. grid-template-columns: 100%;
  203. box-sizing: border-box;
  204. grid-row: 1 / 1;
  205. margin: 0 calc(var(--___columnMargin) / 2);
  206. padding: calc(var(--___columnMargin)) 0;
  207. row-gap: var(--___columnMargin);
  208. align-content: start;
  209. &:not(.-scrollable) {
  210. margin-top: var(--navbar-height);
  211. }
  212. &:hover {
  213. z-index: 2;
  214. }
  215. &.-full-height {
  216. margin-bottom: 0;
  217. padding-top: 0;
  218. padding-bottom: 0;
  219. }
  220. &.-scrollable {
  221. --___paddingIncrease: calc(var(--columnGap) / 2);
  222. position: sticky;
  223. top: var(--navbar-height);
  224. max-height: calc(100vh - var(--navbar-height));
  225. overflow-y: auto;
  226. overflow-x: hidden;
  227. margin-left: calc(var(--___paddingIncrease) * -1);
  228. padding-left: calc(var(--___paddingIncrease) + var(--___columnMargin) / 2);
  229. // On browsers that don't support hiding scrollbars we enforce "show scrolbars" mode
  230. // might implement old style of hiding scrollbars later if there's demand
  231. @supports (scrollbar-width: none) or (-webkit-text-fill-color: initial) {
  232. &:not(.-show-scrollbar) {
  233. scrollbar-width: none;
  234. margin-right: calc(var(--___paddingIncrease) * -1);
  235. padding-right: calc(var(--___paddingIncrease) + var(--___columnMargin) / 2);
  236. &::-webkit-scrollbar {
  237. display: block;
  238. width: 0;
  239. }
  240. }
  241. }
  242. .panel-heading.-sticky {
  243. top: calc(var(--columnGap) / -1);
  244. }
  245. }
  246. }
  247. &.-has-new-post-button {
  248. .column {
  249. padding-bottom: 10rem;
  250. }
  251. }
  252. &.-no-sticky-headers {
  253. .column {
  254. .panel-heading.-sticky {
  255. position: relative;
  256. top: 0;
  257. }
  258. }
  259. }
  260. .column-inner {
  261. display: grid;
  262. grid-template-columns: 100%;
  263. box-sizing: border-box;
  264. row-gap: 1em;
  265. align-content: start;
  266. }
  267. &.-reverse:not(.-wide, .-mobile) {
  268. grid-template-columns:
  269. var(--effectiveContentColumnWidth)
  270. var(--effectiveSidebarColumnWidth);
  271. grid-template-areas: "content sidebar";
  272. }
  273. &.-wide {
  274. grid-template-columns:
  275. var(--effectiveSidebarColumnWidth)
  276. var(--effectiveContentColumnWidth)
  277. var(--effectiveNotifsColumnWidth);
  278. grid-template-areas: "sidebar content notifs";
  279. &.-reverse {
  280. grid-template-columns:
  281. var(--effectiveNotifsColumnWidth)
  282. var(--effectiveContentColumnWidth)
  283. var(--effectiveSidebarColumnWidth);
  284. grid-template-areas: "notifs content sidebar";
  285. }
  286. }
  287. &.-mobile {
  288. grid-template-columns: 100vw;
  289. grid-template-areas: "content";
  290. padding: 0;
  291. .column {
  292. padding-top: 0;
  293. margin: var(--navbar-height) 0 0 0;
  294. }
  295. .panel-heading,
  296. .panel-heading::after,
  297. .panel-heading::before,
  298. .panel,
  299. .panel::after {
  300. border-top-left-radius: 0;
  301. border-top-right-radius: 0;
  302. }
  303. #sidebar,
  304. #notifs-column {
  305. display: none;
  306. }
  307. }
  308. &.-normal {
  309. #notifs-column {
  310. display: none;
  311. }
  312. }
  313. }
  314. .text-center {
  315. text-align: center;
  316. }
  317. .button-default {
  318. user-select: none;
  319. color: var(--text);
  320. border: none;
  321. cursor: pointer;
  322. background-color: var(--background);
  323. box-shadow: var(--shadow);
  324. font-size: 1em;
  325. font-family: sans-serif;
  326. font-family: var(--font);
  327. &::-moz-focus-inner {
  328. border: none;
  329. }
  330. &:disabled {
  331. cursor: not-allowed;
  332. }
  333. }
  334. .menu-item {
  335. line-height: var(--__line-height);
  336. font-family: inherit;
  337. font-weight: 400;
  338. font-size: 100%;
  339. cursor: pointer;
  340. a,
  341. button:not(.button-default) {
  342. color: var(--text);
  343. font-size: 100%;
  344. }
  345. &.disabled {
  346. cursor: not-allowed;
  347. }
  348. }
  349. .list-item {
  350. border-color: var(--border);
  351. border-style: solid;
  352. border-width: 0;
  353. border-top-width: 1px;
  354. &.-active,
  355. &:hover {
  356. border-top-width: 1px;
  357. border-bottom-width: 1px;
  358. }
  359. &.-active + &,
  360. &:hover + & {
  361. border-top-width: 0;
  362. }
  363. &:hover + .menu-item-collapsible:not(.-expanded) + &,
  364. &.-active + .menu-item-collapsible:not(.-expanded) + & {
  365. border-top-width: 0;
  366. }
  367. &[aria-expanded="true"] {
  368. border-bottom-width: 1px;
  369. }
  370. &:first-child {
  371. border-top-right-radius: var(--roundness);
  372. border-top-left-radius: var(--roundness);
  373. border-top-width: 0;
  374. }
  375. &:last-child {
  376. border-bottom-right-radius: var(--roundness);
  377. border-bottom-left-radius: var(--roundness);
  378. border-bottom-width: 0;
  379. }
  380. }
  381. .menu-item,
  382. .list-item {
  383. display: block;
  384. box-sizing: border-box;
  385. border: none;
  386. outline: none;
  387. text-align: initial;
  388. color: inherit;
  389. clear: both;
  390. position: relative;
  391. white-space: nowrap;
  392. width: 100%;
  393. padding: var(--__vertical-gap) var(--__horizontal-gap);
  394. background: transparent;
  395. --__line-height: 1.5em;
  396. --__horizontal-gap: 0.75em;
  397. --__vertical-gap: 0.5em;
  398. &.-non-interactive {
  399. cursor: auto;
  400. }
  401. a,
  402. button:not(.button-default) {
  403. text-align: initial;
  404. padding: 0;
  405. background: none;
  406. border: none;
  407. outline: none;
  408. display: inline;
  409. font-family: inherit;
  410. line-height: unset;
  411. }
  412. }
  413. .button-unstyled {
  414. border: none;
  415. outline: none;
  416. display: inline;
  417. text-align: initial;
  418. font-size: 100%;
  419. font-family: inherit;
  420. box-shadow: var(--shadow);
  421. background-color: transparent;
  422. padding: 0;
  423. line-height: unset;
  424. cursor: pointer;
  425. box-sizing: content-box;
  426. color: inherit;
  427. &.-link {
  428. /* stylelint-disable-next-line declaration-no-important */
  429. color: var(--link) !important;
  430. }
  431. }
  432. input,
  433. textarea {
  434. border: none;
  435. display: inline-block;
  436. outline: none;
  437. }
  438. .input {
  439. &.unstyled {
  440. border-radius: 0;
  441. /* stylelint-disable-next-line declaration-no-important */
  442. background: none !important;
  443. box-shadow: none;
  444. height: unset;
  445. }
  446. --_padding: 0.5em;
  447. border: none;
  448. background-color: var(--background);
  449. color: var(--text);
  450. box-shadow: var(--shadow);
  451. font-family: var(--font);
  452. font-size: 1em;
  453. margin: 0;
  454. box-sizing: border-box;
  455. display: inline-block;
  456. position: relative;
  457. line-height: 2;
  458. hyphens: none;
  459. padding: 0 var(--_padding);
  460. &:disabled,
  461. &[disabled="disabled"],
  462. &.disabled {
  463. cursor: not-allowed;
  464. }
  465. &[type="range"] {
  466. background: none;
  467. border: none;
  468. margin: 0;
  469. box-shadow: none;
  470. flex: 1;
  471. }
  472. &[type="radio"] {
  473. display: none;
  474. &:checked + label::before {
  475. box-shadow: var(--shadow);
  476. background-color: var(--background);
  477. color: var(--text);
  478. }
  479. &:disabled {
  480. &,
  481. & + label,
  482. & + label::before {
  483. opacity: 0.5;
  484. }
  485. }
  486. + label::before {
  487. flex-shrink: 0;
  488. display: inline-block;
  489. content: "•";
  490. transition: box-shadow 200ms;
  491. width: 1.1em;
  492. height: 1.1em;
  493. border-radius: 100%; // Radio buttons should always be circle
  494. background-color: var(--background);
  495. box-shadow: var(--shadow);
  496. margin-right: 0.5em;
  497. vertical-align: top;
  498. text-align: center;
  499. line-height: 1.1;
  500. font-size: 1.1em;
  501. box-sizing: border-box;
  502. color: transparent;
  503. overflow: hidden;
  504. }
  505. }
  506. &[type="checkbox"] {
  507. &:checked + label::before {
  508. color: var(--text);
  509. background-color: var(--background);
  510. box-shadow: var(--shadow);
  511. }
  512. &:disabled {
  513. &,
  514. & + label,
  515. & + label::before {
  516. opacity: 0.5;
  517. }
  518. }
  519. + label::before {
  520. flex-shrink: 0;
  521. display: inline-block;
  522. content: "✓";
  523. transition: color 200ms;
  524. width: 1.1em;
  525. height: 1.1em;
  526. border-radius: var(--roundness);
  527. box-shadow: var(--shadow);
  528. margin-right: 0.5em;
  529. vertical-align: top;
  530. text-align: center;
  531. line-height: 1.1;
  532. font-size: 1.1em;
  533. box-sizing: border-box;
  534. color: transparent;
  535. overflow: hidden;
  536. }
  537. }
  538. &.resize-height {
  539. resize: vertical;
  540. }
  541. }
  542. .input,
  543. .button-default {
  544. --_roundness-left: var(--roundness);
  545. --_roundness-right: var(--roundness);
  546. border-top-left-radius: var(--_roundness-left);
  547. border-bottom-left-radius: var(--_roundness-left);
  548. border-top-right-radius: var(--_roundness-right);
  549. border-bottom-right-radius: var(--_roundness-right);
  550. }
  551. // Textareas should have stock line-height + vertical padding instead of huge line-height
  552. textarea.input {
  553. padding: var(--_padding);
  554. line-height: var(--post-line-height);
  555. }
  556. option {
  557. color: var(--text);
  558. background-color: var(--background);
  559. }
  560. .hide-number-spinner {
  561. appearance: textfield;
  562. &[type="number"]::-webkit-inner-spin-button,
  563. &[type="number"]::-webkit-outer-spin-button {
  564. opacity: 0;
  565. display: none;
  566. }
  567. }
  568. .cards-list {
  569. list-style: none;
  570. display: grid;
  571. grid-auto-flow: row dense;
  572. grid-template-columns: 1fr 1fr;
  573. li {
  574. border: 1px solid var(--border);
  575. border-radius: var(--roundness);
  576. padding: 0.5em;
  577. margin: 0.25em;
  578. }
  579. }
  580. .btn-block {
  581. display: block;
  582. width: 100%;
  583. }
  584. .btn-group {
  585. position: relative;
  586. display: inline-flex;
  587. vertical-align: middle;
  588. > *,
  589. > * .button-default {
  590. --_roundness-left: 0;
  591. --_roundness-right: 0;
  592. position: relative;
  593. flex: 1 1 auto;
  594. }
  595. > *:first-child,
  596. > *:first-child .button-default {
  597. --_roundness-left: var(--roundness);
  598. }
  599. > *:last-child,
  600. > *:last-child .button-default {
  601. --_roundness-right: var(--roundness);
  602. }
  603. }
  604. .fa {
  605. color: grey;
  606. }
  607. .mobile-shown {
  608. display: none;
  609. }
  610. .badge {
  611. box-sizing: border-box;
  612. display: inline-block;
  613. border-radius: 99px;
  614. max-width: 10em;
  615. min-width: 1.7em;
  616. height: 1.3em;
  617. padding: 0.15em;
  618. vertical-align: middle;
  619. font-weight: normal;
  620. font-style: normal;
  621. font-size: 0.9em;
  622. line-height: 1;
  623. text-align: center;
  624. white-space: nowrap;
  625. overflow: hidden;
  626. text-overflow: ellipsis;
  627. &.-dot,
  628. &.-counter {
  629. margin: 0;
  630. position: absolute;
  631. }
  632. &.-dot {
  633. min-height: 8px;
  634. max-height: 8px;
  635. min-width: 8px;
  636. max-width: 8px;
  637. padding: 0;
  638. line-height: 0;
  639. font-size: 0;
  640. left: calc(50% - 4px);
  641. top: calc(50% - 4px);
  642. margin-left: 6px;
  643. margin-top: -6px;
  644. }
  645. &.-counter {
  646. border-radius: var(--roundness);
  647. font-size: 0.75em;
  648. line-height: 1;
  649. text-align: right;
  650. padding: 0.2em;
  651. min-width: 0;
  652. left: calc(50% - 0.5em);
  653. top: calc(50% - 0.4em);
  654. margin-left: 0.7em;
  655. margin-top: -1em;
  656. }
  657. &.-neutral {
  658. background-color: var(--badgeNeutral);
  659. color: white;
  660. color: var(--badgeNeutralText, white);
  661. }
  662. }
  663. .alert {
  664. margin: 0 0.35em;
  665. padding: 0 0.25em;
  666. border-radius: var(--roundness);
  667. border: 1px solid var(--border);
  668. }
  669. .faint {
  670. --text: var(--textFaint);
  671. --link: var(--linkFaint);
  672. color: var(--text);
  673. }
  674. .visibility-notice {
  675. padding: 0.5em;
  676. border: 1px solid var(--textFaint);
  677. border-radius: var(--roundness);
  678. }
  679. .notice-dismissible {
  680. padding-right: 4rem;
  681. position: relative;
  682. .dismiss {
  683. position: absolute;
  684. top: 0;
  685. right: 0;
  686. padding: 0.5em;
  687. color: inherit;
  688. }
  689. }
  690. .fa-scale-110 {
  691. &.svg-inline--fa,
  692. &.iconLetter {
  693. font-size: 1.1em;
  694. }
  695. &.svg-inline--fa {
  696. vertical-align: -0.15em;
  697. }
  698. }
  699. .fa-old-padding {
  700. &.iconLetter,
  701. &.svg-inline--fa,
  702. &-layer {
  703. padding: 0 0.3em;
  704. }
  705. }
  706. .veryfaint {
  707. opacity: 0.25;
  708. }
  709. .timeago {
  710. --link: var(--text);
  711. --linkFaint: var(--textFaint);
  712. }
  713. .login-hint {
  714. text-align: center;
  715. @media all and (min-width: 801px) {
  716. display: none;
  717. }
  718. a {
  719. display: inline-block;
  720. padding: 1em 0;
  721. width: 100%;
  722. }
  723. }
  724. .btn.button-default {
  725. min-height: 2em;
  726. }
  727. .new-status-notification {
  728. position: relative;
  729. font-size: 1.1em;
  730. z-index: 1;
  731. flex: 1;
  732. }
  733. @media all and (max-width: 800px) {
  734. .mobile-hidden {
  735. display: none;
  736. }
  737. }
  738. @keyframes spin {
  739. 0% {
  740. transform: rotate(0deg);
  741. }
  742. 100% {
  743. transform: rotate(359deg);
  744. }
  745. }
  746. @keyframes shakeError {
  747. 0% {
  748. transform: translateX(0);
  749. }
  750. 15% {
  751. transform: translateX(0.375rem);
  752. }
  753. 30% {
  754. transform: translateX(-0.375rem);
  755. }
  756. 45% {
  757. transform: translateX(0.375rem);
  758. }
  759. 60% {
  760. transform: translateX(-0.375rem);
  761. }
  762. 75% {
  763. transform: translateX(0.375rem);
  764. }
  765. 90% {
  766. transform: translateX(-0.375rem);
  767. }
  768. 100% {
  769. transform: translateX(0);
  770. }
  771. }
  772. // Vue transitions
  773. .fade-enter-active,
  774. .fade-leave-active {
  775. transition: opacity 0.3s;
  776. }
  777. .fade-enter-from,
  778. .fade-leave-active {
  779. opacity: 0;
  780. }
  781. /* stylelint-enable no-descending-specificity */
  782. .visible-for-screenreader-only {
  783. display: block;
  784. width: 1px;
  785. height: 1px;
  786. margin: -1px;
  787. overflow: hidden;
  788. visibility: visible;
  789. clip: rect(0 0 0 0);
  790. padding: 0;
  791. position: absolute;
  792. }
  793. *::selection {
  794. color: var(--selectionText);
  795. background-color: var(--selectionBackground);
  796. }
  797. #splash {
  798. pointer-events: none;
  799. transition: opacity 2s;
  800. opacity: 1;
  801. &.hidden {
  802. opacity: 0;
  803. }
  804. #status {
  805. &.css-ok {
  806. &::before {
  807. display: inline-block;
  808. content: "CSS OK";
  809. }
  810. }
  811. .initial-text {
  812. display: none;
  813. }
  814. }
  815. #throbber {
  816. animation-duration: 3s;
  817. animation-name: bounce;
  818. animation-iteration-count: infinite;
  819. animation-direction: normal;
  820. transform-origin: bottom center;
  821. &.dead {
  822. animation-name: dead;
  823. animation-duration: 2s;
  824. animation-iteration-count: 1;
  825. transform: rotateX(90deg) rotateY(0) rotateZ(-45deg);
  826. }
  827. @keyframes dead {
  828. 0% {
  829. transform: rotateX(0) rotateY(0) rotateZ(0);
  830. }
  831. 5% {
  832. transform: rotateX(0) rotateY(0) rotateZ(1deg);
  833. }
  834. 10% {
  835. transform: rotateX(0) rotateY(0) rotateZ(-2deg);
  836. }
  837. 15% {
  838. transform: rotateX(0) rotateY(0) rotateZ(3deg);
  839. }
  840. 20% {
  841. transform: rotateX(0) rotateY(0) rotateZ(0);
  842. }
  843. 25% {
  844. transform: rotateX(0) rotateY(0) rotateZ(0);
  845. }
  846. 30% {
  847. transform: rotateX(10deg) rotateY(0) rotateZ(0);
  848. }
  849. 35% {
  850. transform: rotateX(-10deg) rotateY(0) rotateZ(0);
  851. }
  852. 40% {
  853. transform: rotateX(10deg) rotateY(0) rotateZ(0);
  854. }
  855. 45% {
  856. transform: rotateX(-10deg) rotateY(0) rotateZ(0);
  857. }
  858. 50% {
  859. transform: rotateX(10deg) rotateY(0) rotateZ(0);
  860. }
  861. 100% {
  862. transform: rotateX(90deg) rotateY(0) rotateZ(-45deg);
  863. transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06); /* easeInQuint */
  864. }
  865. }
  866. @keyframes bounce {
  867. 0% {
  868. scale: 1 1;
  869. translate: 0 0;
  870. animation-timing-function: ease-out;
  871. }
  872. 10% {
  873. scale: 1.2 0.8;
  874. translate: 0 0;
  875. transform: rotateZ(var(--defaultZ));
  876. animation-timing-function: ease-out;
  877. }
  878. 30% {
  879. scale: 0.9 1.1;
  880. translate: 0 -40%;
  881. transform: rotateZ(var(--defaultZ));
  882. animation-timing-function: ease-in;
  883. }
  884. 40% {
  885. scale: 1.1 0.9;
  886. translate: 0 -50%;
  887. transform: rotateZ(var(--defaultZ));
  888. animation-timing-function: ease-in;
  889. }
  890. 45% {
  891. scale: 0.9 1.1;
  892. translate: 0 -45%;
  893. transform: rotateZ(var(--defaultZ));
  894. animation-timing-function: ease-in;
  895. }
  896. 50% {
  897. scale: 1.05 0.95;
  898. translate: 0 -40%;
  899. animation-timing-function: ease-in;
  900. }
  901. 55% {
  902. scale: 0.985 1.025;
  903. translate: 0 -35%;
  904. transform: rotateZ(var(--defaultZ));
  905. animation-timing-function: ease-in;
  906. }
  907. 60% {
  908. scale: 1.0125 0.9985;
  909. translate: 0 -30%;
  910. transform: rotateZ(var(--defaultZ));
  911. animation-timing-function: ease-in;
  912. }
  913. 80% {
  914. scale: 1.0063 0.9938;
  915. translate: 0 -10%;
  916. transform: rotateZ(var(--defaultZ));
  917. animation-timing-function: ease-in-ou;
  918. }
  919. 90% {
  920. scale: 1.2 0.8;
  921. translate: 0 0;
  922. transform: rotateZ(var(--defaultZ));
  923. animation-timing-function: ease-out;
  924. }
  925. 100% {
  926. scale: 1 1;
  927. translate: 0 0;
  928. transform: rotateZ(var(--defaultZ));
  929. animation-timing-function: ease-out;
  930. }
  931. }
  932. }
  933. }