mirror of
https://github.com/tabler/tabler.git
synced 2026-10-21 07:14:30 +04:00
39 lines
863 B
SCSS
39 lines
863 B
SCSS
@use 'sass:map';
|
|
|
|
@use '../config' as *;
|
|
|
|
.shape {
|
|
// scss-docs-start shape-css-vars
|
|
--shape-size: #{$avatar-size};
|
|
--shape-icon-size: #{$avatar-icon-size};
|
|
--shape-border-radius: 35%;
|
|
// scss-docs-end shape-css-vars
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: var(--shape-size);
|
|
height: var(--shape-size);
|
|
color: var(--primary);
|
|
background-color: var(--primary-lt);
|
|
@include border-radius(var(--shape-border-radius));
|
|
|
|
.icon {
|
|
width: var(--shape-icon-size);
|
|
height: var(--shape-icon-size);
|
|
}
|
|
}
|
|
|
|
@each $avatar-size, $size in $avatar-sizes {
|
|
.shape-#{$avatar-size} {
|
|
--shape-size: #{map.get($size, size)};
|
|
--shape-icon-size: #{map.get($size, icon-size)};
|
|
}
|
|
}
|
|
|
|
@each $name, $color in $colors {
|
|
.shape-#{$name} {
|
|
color: var(--#{$name});
|
|
background: var(--#{$name}-lt);
|
|
}
|
|
}
|