0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-30 19:50:41 +01:00
flags/sass/_flag-icons-base.scss

32 lines
583 B
SCSS
Raw Normal View History

2021-12-28 14:09:09 +01:00
.fib {
2015-03-02 18:23:52 +01:00
background-size: contain;
background-position: 50%;
background-repeat: no-repeat;
}
2021-12-28 14:09:09 +01:00
.fi {
@extend .fib;
2015-03-02 18:23:52 +01:00
position: relative;
display: inline-block;
2021-11-25 11:16:12 +01:00
width: 1.333333 * 1em;
2015-03-02 18:23:52 +01:00
line-height: 1em;
&:before {
2022-06-21 10:00:43 +02:00
content: "\00a0";
2015-03-02 18:23:52 +01:00
}
2021-12-28 14:09:09 +01:00
&.fis {
2015-03-02 18:23:52 +01:00
width: 1em;
}
}
@mixin flag-icon($country) {
2021-12-28 14:09:09 +01:00
.fi-#{$country} {
background-image: url(#{$flag-icons-path}#{$flag-icons-rect-path}/#{$country}.svg);
@if $flag-icons-use-square {
&.fis {
background-image: url(#{$flag-icons-path}#{$flag-icons-square-path}/#{$country}.svg);
}
2015-03-02 18:23:52 +01:00
}
}
}