2021-10-22 10:31:36 +02:00
|
|
|
@use 'sass:math';
|
|
|
|
|
2016-09-13 10:43:55 +02:00
|
|
|
.flag-icon-background {
|
2015-03-02 18:23:52 +01:00
|
|
|
background-size: contain;
|
|
|
|
background-position: 50%;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
|
|
|
.flag-icon {
|
2016-09-13 10:43:55 +02:00
|
|
|
@extend .flag-icon-background;
|
2015-03-02 18:23:52 +01:00
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
2021-10-22 10:31:36 +02:00
|
|
|
width: math.div(4, 3) * 1em;
|
2015-03-02 18:23:52 +01:00
|
|
|
line-height: 1em;
|
|
|
|
&:before {
|
|
|
|
content: '\00a0';
|
|
|
|
}
|
|
|
|
&.flag-icon-squared {
|
|
|
|
width: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin flag-icon($country) {
|
|
|
|
.flag-icon-#{$country} {
|
2021-10-24 21:45:01 +02:00
|
|
|
background-image: url(#{$flag-icons-path}#{$flag-icons-rect-path}/#{$country}.svg);
|
2015-03-02 18:23:52 +01:00
|
|
|
&.flag-icon-squared {
|
2021-10-24 21:45:01 +02:00
|
|
|
background-image: url(#{$flag-icons-path}#{$flag-icons-square-path}/#{$country}.svg);
|
2015-03-02 18:23:52 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|