web-map/src/_icon.scss

51 lines
724 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-05 01:06:09 +08:00
.icon-btn {
&.panel-btn {
color: get-color(ffffffd9);
&:disabled {
color: get-color(ffffff2e);
}
2025-05-03 00:28:22 +08:00
}
}
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;
2025-05-05 01:06:09 +08:00
color: inherit;
background-color: currentcolor;
&.primary {
color: get-color(icon-brand);
}
2025-05-03 00:28:22 +08:00
@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
}