You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.3 KiB

  1. /*
  2. Must be placed at the end of body in the HTML file of any webview that needs it (because of CSP)
  3. <style nonce="#{cspNonce}">
  4. @font-face {
  5. font-family: '{{ name }}';
  6. font-display: block;
  7. src: {{{ fontSrc }}};
  8. }
  9. </style>
  10. */
  11. .glicon {
  12. font: normal normal normal 16px/1 {{ name }};
  13. display: inline-block;
  14. text-decoration: none;
  15. text-rendering: auto;
  16. text-align: center;
  17. -webkit-font-smoothing: antialiased;
  18. -moz-osx-font-smoothing: grayscale;
  19. user-select: none;
  20. -webkit-user-select: none;
  21. -ms-user-select: none;
  22. }
  23. /*---------------------
  24. * Modifiers
  25. *-------------------*/
  26. @keyframes glicon-spin {
  27. 100% {
  28. transform: rotate(360deg);
  29. }
  30. }
  31. .glicon-sync.glicon-modifier-spin,
  32. .glicon-loading.glicon-modifier-spin,
  33. .glicon-gear.glicon-modifier-spin {
  34. /* Use steps to throttle FPS to reduce CPU usage */
  35. animation: glicon-spin 1.5s steps(30) infinite;
  36. }
  37. .glicon-modifier-disabled {
  38. opacity: 0.5;
  39. }
  40. .glicon-modifier-hidden {
  41. opacity: 0;
  42. }
  43. /* custom speed & easing for loading icon */
  44. .glicon-loading {
  45. animation-duration: 1s !important;
  46. animation-timing-function: cubic-bezier(0.53, 0.21, 0.29, 0.67) !important;
  47. }
  48. /*---------------------
  49. * Icons
  50. *-------------------*/
  51. {{#each codepoints}}
  52. .{{ ../prefix }}-{{ @key }}:before {
  53. content: '\\{{ codepoint this }}';
  54. }
  55. {{/each}}