feat(weather): inline weather svg icons

This commit is contained in:
2026-07-22 22:16:16 +03:00
parent 75343a21b9
commit 1c4dac74ca
7 changed files with 51 additions and 10 deletions
@@ -7,6 +7,7 @@ $weather-icons-colors: (
"moon": #4A4B43,
"lightning": red,
"snow": white,
"wind": #0d6efd,
) !default;
$weather-icons-included: (
"wi-cloud",
@@ -1,15 +1,13 @@
@use "variables";
weather-icon {
weather-icon,
.wi-svg {
display: flex;
width: 3rem;
> svg {
path {
fill: gray;
stroke: variables.$weather-icons-stroke-color;
stroke-width: 0.5;
//paint-order: stroke;
}
@each $type, $color in variables.$weather-icons-colors {
path[id="#{$type}"] {
@@ -20,4 +18,19 @@ weather-icon {
}
}
}
&.wi-border {
> svg path {
stroke: variables.$weather-icons-stroke-color;
stroke-width: 0.5;
//paint-order: stroke;
}
}
&.wi-s {
width: 2.5rem;
}
&.wi-l {
width: 3.5rem;
}
}
@@ -2,4 +2,4 @@
@use "weather-icons-base";
@use "weather-icons-list";
@use "weather-wind-aliases";
@use "weather-icons-colors";
@use "weather-icons-svg";