mirror of
https://github.com/lipis/flag-icons.git
synced 2024-11-22 11:27:29 +01:00
1e61c49262
The less option `strictMath` requires all mathematical expressions are wrapped in parenthesis. This will currently fail under that option. Adding this parenthesis around the expression fixes this
29 lines
605 B
Plaintext
29 lines
605 B
Plaintext
.flag-icon-background {
|
|
background-size: contain;
|
|
background-position: 50%;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.flag-icon {
|
|
.flag-icon-background;
|
|
position: relative;
|
|
display: inline-block;
|
|
width: unit((4 / 3), em);
|
|
line-height: 1em;
|
|
&:before {
|
|
content: "\00a0";
|
|
}
|
|
&.flag-icon-squared {
|
|
width: 1em;
|
|
}
|
|
}
|
|
|
|
.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)";
|
|
}
|
|
}
|
|
}
|