_badges.scss 795 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. .badge {
  2. display: inline-flex;
  3. align-items: center;
  4. font-size: $font-size-h7;
  5. text-decoration: none;
  6. color: $color-muted;
  7. background: rgba($color-muted, .05);
  8. line-height: 1;
  9. border-radius: $border-radius;
  10. padding: $gap-1 $gap-2;
  11. user-select: none;
  12. transition: .3s color, .3s background-color;
  13. svg {
  14. width: 1.25rem;
  15. height: 1.25rem;
  16. margin: 0 .5rem 0 -.25rem;
  17. stroke-width: 1.5;
  18. }
  19. @at-root a#{&}:hover,
  20. &.active {
  21. color: $color-text;
  22. background: theme-lighten($color-text);
  23. }
  24. }
  25. @each $name, $color in $colors {
  26. .badge-#{$name} {
  27. color: $color;
  28. background-color: theme-lighten($color)
  29. }
  30. }
  31. .badges-list {
  32. display: inline-flex;
  33. flex-wrap: wrap;
  34. margin: 0 -.25rem -.25rem 0;
  35. > * {
  36. margin: 0 .25rem .25rem 0;
  37. }
  38. }