feat(weather): inline weather svg icons
This commit is contained in:
36
static/src/lib/weather-icons/sass/_weather-icons-svg.scss
Normal file
36
static/src/lib/weather-icons/sass/_weather-icons-svg.scss
Normal file
@@ -0,0 +1,36 @@
|
||||
@use "variables";
|
||||
|
||||
weather-icon,
|
||||
.wi-svg {
|
||||
display: flex;
|
||||
width: 3rem;
|
||||
|
||||
> svg {
|
||||
path {
|
||||
fill: gray;
|
||||
}
|
||||
@each $type, $color in variables.$weather-icons-colors {
|
||||
path[id="#{$type}"] {
|
||||
fill: $color;
|
||||
}
|
||||
g[id="#{$type}"] > path {
|
||||
fill: $color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user