0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-25 13:29:24 +01:00
flags/less/flag-icon-base.less

29 lines
603 B
Plaintext
Raw Normal View History

2015-03-02 15:46:58 +01:00
.flag-icon-background {
background-size: contain;
background-position: 50%;
background-repeat: no-repeat;
}
2013-09-25 22:00:00 +02:00
.flag-icon {
2015-03-02 15:48:54 +01:00
.flag-icon-background;
2013-09-25 22:00:00 +02:00
position: relative;
display: inline-block;
width: unit(4 / 3, em);
2013-09-25 22:19:30 +02:00
line-height: 1em;
2013-09-25 22:00:00 +02:00
&: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)";
2013-09-25 22:00:00 +02:00
&.flag-icon-squared {
background-image: ~"url(@{flag-icon-css-path}@{flag-icon-square-path}/@{country}.svg)";
2013-09-25 22:00:00 +02:00
}
}
}