0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-24 19:36:55 +01:00
flags/less/flag-icons-base.less
2021-12-28 15:09:09 +02:00

29 lines
525 B
Plaintext

.fib {
background-size: contain;
background-position: 50%;
background-repeat: no-repeat;
}
.fi {
.fib;
position: relative;
display: inline-block;
width: unit((4 / 3), em);
line-height: 1em;
&:before {
content: '\00a0';
}
&.fis {
width: 1em;
}
}
.flag-icon(@country) {
.fi-@{country} {
background-image: ~'url(@{flag-icons-path}@{flag-icons-rect-path}/@{country}.svg)';
&.fis {
background-image: ~'url(@{flag-icons-path}@{flag-icons-square-path}/@{country}.svg)';
}
}
}