web-map/src/_icon.scss

67 lines
1019 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 {
2025-05-05 23:21:31 +08:00
color: get-color(icon);
2025-05-05 01:06:09 +08:00
&:disabled {
2025-05-05 23:21:31 +08:00
color: get-color(icon-disabled);
}
}
&.tool-btn {
color: get-color(icon);
&:disabled {
color: get-color(icon-disabled);
}
&.active {
background-color: get-color(primary) !important;
}
&:not(:disabled):hover {
background-color: get-color(bg_layout);
2025-05-05 01:06:09 +08:00
}
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
}