0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-24 19:36:55 +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 {
content: '\00a0';
}
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
}
}
}