5f31d1b10427274602ddd7e42815e1e193480d11141204bba77e738f7d98a5d5db670d2df3e73319bf1ab8de8542f626094bb9328dd68e6102e6d0ef367c6f 641 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. @use 'mixins/mixins' as *;
  2. @use 'common/var' as *;
  3. .#{$namespace}-icon--right {
  4. margin-left: 5px;
  5. }
  6. .#{$namespace}-icon--left {
  7. margin-right: 5px;
  8. }
  9. @keyframes rotating {
  10. 0% {
  11. transform: rotateZ(0deg);
  12. }
  13. 100% {
  14. transform: rotateZ(360deg);
  15. }
  16. }
  17. @include b(icon) {
  18. --color: inherit;
  19. height: 1em;
  20. width: 1em;
  21. line-height: 1em;
  22. display: inline-flex;
  23. justify-content: center;
  24. align-items: center;
  25. position: relative;
  26. fill: currentColor;
  27. color: var(--color);
  28. font-size: inherit;
  29. @include when(loading) {
  30. animation: rotating 2s linear infinite;
  31. }
  32. svg {
  33. height: 1em;
  34. width: 1em;
  35. }
  36. }