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

29 lines
525 B
Plaintext
Raw Normal View History

2021-12-28 14:09:09 +01:00
.fib {
2015-03-02 15:46:58 +01:00
background-size: contain;
background-position: 50%;
background-repeat: no-repeat;
}
2021-12-28 14:09:09 +01:00
.fi {
.fib;
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 {
2022-06-21 10:00:43 +02:00
content: "\00a0";
2013-09-25 22:00:00 +02:00
}
2021-12-28 14:09:09 +01:00
&.fis {
2013-09-25 22:00:00 +02:00
width: 1em;
}
}
.flag-icon(@country) {
2021-12-28 14:09:09 +01:00
.fi-@{country} {
2022-06-21 10:00:43 +02:00
background-image: ~"url(@{flag-icons-path}@{flag-icons-rect-path}/@{country}.svg)";
2021-12-28 14:09:09 +01:00
&.fis {
2022-06-21 10:00:43 +02:00
background-image: ~"url(@{flag-icons-path}@{flag-icons-square-path}/@{country}.svg)";
2013-09-25 22:00:00 +02:00
}
}
}