_shape.scss 808 B

12345678910111213141516171819202122232425262728293031
  1. .shape {
  2. --#{$prefix}shape-size: #{$avatar-size};
  3. --#{$prefix}shape-icon-size: #{$avatar-icon-size};
  4. background-color: var(--#{$prefix}primary-lt);
  5. color: var(--#{$prefix}primary);
  6. border-radius: 35%;
  7. display: inline-flex;
  8. align-items: center;
  9. justify-content: center;
  10. height: var(--#{$prefix}shape-size);
  11. width: var(--#{$prefix}shape-size);
  12. .icon {
  13. width: var(--#{$prefix}shape-icon-size);
  14. height: var(--#{$prefix}shape-icon-size);
  15. }
  16. }
  17. @each $avatar-size, $size in $avatar-sizes {
  18. .shape-#{$avatar-size} {
  19. --#{$prefix}shape-size: #{map-get($size, size)};
  20. --#{$prefix}shape-icon-size: #{map-get($size, icon-size)};
  21. }
  22. }
  23. @each $name, $color in $colors {
  24. .shape-#{$name} {
  25. background: var(--#{$prefix}#{$name}-lt);
  26. color: var(--#{$prefix}#{$name});
  27. }
  28. }