big-moving.ru/assets/vendor_components/flag-icon/sass/_flag-icon-base.scss

29 lines
616 B
SCSS
Raw Normal View History

2022-06-24 15:29:23 +05:00
.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: (4 / 3) * 1em;
line-height: 1em;
&:before {
content: '\00a0';
}
&.flag-icon-squared {
width: 1em;
}
}
@mixin flag-icon($country) {
.flag-icon-#{$country} {
background-image: url(#{$flag-icon-css-path}#{$flag-icon-rect-path}/#{$country}.svg);
&.flag-icon-squared {
background-image: url(#{$flag-icon-css-path}#{$flag-icon-square-path}/#{$country}.svg);
}
}
}