2cea40a894
For when the icon should be less prominent than the content around it
43 lines
748 B
SCSS
43 lines
748 B
SCSS
$icon-dimensions: 1.25rem;
|
|
$icon-dimensions-small: 1rem;
|
|
$icon-dimensions-medium: 1.5rem;
|
|
$icon-dimensions-large: 2rem;
|
|
|
|
.icon {
|
|
align-items: center;
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
vertical-align: text-top;
|
|
height: $icon-dimensions;
|
|
width: $icon-dimensions;
|
|
fill: $text;
|
|
|
|
&.is-small,
|
|
&.is-text {
|
|
height: $icon-dimensions-small;
|
|
width: $icon-dimensions-small;
|
|
}
|
|
|
|
&.is-medium {
|
|
height: $icon-dimensions-medium;
|
|
width: $icon-dimensions-medium;
|
|
}
|
|
|
|
&.is-large {
|
|
height: $icon-dimensions-large;
|
|
width: $icon-dimensions-large;
|
|
}
|
|
|
|
&.is-faded {
|
|
fill: $grey-light;
|
|
}
|
|
|
|
@each $name, $pair in $colors {
|
|
$color: nth($pair, 1);
|
|
|
|
&.is-#{$name} {
|
|
fill: $color;
|
|
}
|
|
}
|
|
}
|