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.

59 lines
1.1 KiB

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