0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-22 11:27:29 +01:00
flags/less/country-flag-icons-base.less
Panayiotis Lipiridis eb0e0fadcd Fixed line height
2013-09-25 22:19:30 +02:00

29 lines
575 B
Plaintext

.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(@{country-flag-icons-path}/4x3/@{country}.svg)";
&.flag-icon-squared {
background-image: ~"url(@{country-flag-icons-path}/1x1/@{country}.svg)";
}
}
}