web-map/src/_icon.scss

40 lines
542 B
SCSS
Raw Normal View History

2025-05-02 00:35:53 +08:00
@use 'asset/themes/theme' as *;
@use 'asset/icons/icon' as *;
@include themed {
2025-05-03 00:28:22 +08:00
i {
&.bg-1 {
background-color: get-color(ffffffd9);
}
}
2025-05-02 00:35:53 +08:00
.icon {
2025-05-03 00:28:22 +08:00
@extend %icon;
2025-05-02 00:35:53 +08:00
@each $icon in $icons {
&.#{$icon} {
background: get-icon($icon);
}
}
}
2025-05-03 00:28:22 +08:00
.mask {
@extend %icon;
@each $icon in $icons {
&.#{$icon} {
mask: get-icon($icon);
}
}
}
}
%icon {
display: inline-block;
width: 1em;
height: 1em;
font-size: 24px;
line-height: 1;
vertical-align: top;
2025-05-02 00:35:53 +08:00
}