You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
603 B

6 years ago
.flag-icon {
position: relative;
display: inline-block;
width: unit(4 / 3, em);
line-height: 1em;
.flag-icon-background;
&:before {
content: "\00a0";
}
&.flag-icon-squared {
width: 1em;
}
}
.flag-icon-background {
background-size: contain;
background-position: 50%;
background-repeat: no-repeat;
}
.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)";
}
}
}