_shape.scss 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. @mixin shape-color($color: $color-muted) {
  2. background: rgba($color, .1);
  3. color: $color;
  4. }
  5. .shape {
  6. --shape-size: 2.5rem;
  7. --shape-icon-size: 1.5rem;
  8. --shape-icon-stroke: 1.5;
  9. width: var(--shape-size);
  10. height: var(--shape-size);
  11. font-size: var(--shape-icon-size);
  12. display: inline-flex;
  13. align-items: center;
  14. justify-content: center;
  15. font-weight: $font-weight-medium;
  16. color: $color-muted;
  17. background: $color-gray;
  18. border-radius: 35%;
  19. vertical-align: bottom;
  20. .icon {
  21. stroke-width: var(--shape-icon-stroke);
  22. width: var(--shape-icon-size);
  23. height: var(--shape-icon-size);
  24. }
  25. }
  26. /*! purgecss start ignore */
  27. @each $name, $color in $colors {
  28. .shape-#{$name} {
  29. @include shape-color($color);
  30. }
  31. }
  32. .shape-square {
  33. border-radius: $border-radius-lg;
  34. }
  35. .shape-rounded {
  36. border-radius: 50%;
  37. }
  38. .shape-sm {
  39. --shape-size: 1.5rem;
  40. --shape-icon-size: 1rem;
  41. }
  42. .shape-md {
  43. --shape-size: 3rem;
  44. --shape-icon-size: 1.75rem;
  45. }
  46. .shape-lg {
  47. --shape-size: 4rem;
  48. --shape-icon-size: 2.25rem;
  49. }
  50. /*! purgecss end ignore */