0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-22 11:27:29 +01:00
flags/sass/_flag-icons-base.scss
2021-11-25 12:16:12 +02:00

29 lines
613 B
SCSS

.flag-icon-background {
background-size: contain;
background-position: 50%;
background-repeat: no-repeat;
}
.flag-icon {
@extend .flag-icon-background;
position: relative;
display: inline-block;
width: 1.333333 * 1em;
line-height: 1em;
&:before {
content: '\00a0';
}
&.flag-icon-squared {
width: 1em;
}
}
@mixin flag-icon($country) {
.flag-icon-#{$country} {
background-image: url(#{$flag-icons-path}#{$flag-icons-rect-path}/#{$country}.svg);
&.flag-icon-squared {
background-image: url(#{$flag-icons-path}#{$flag-icons-square-path}/#{$country}.svg);
}
}
}