mirror of
https://github.com/lipis/flag-icons.git
synced 2024-11-22 11:27:29 +01:00
5557640da0
* Variable adjustments * Update sass/_flag-icons-base.scss * Update sass/_variables.scss * Update sass/_flag-icons-base.scss * Update sass/_flag-icons-base.scss Co-authored-by: Robin Stark <robin.stark@consid.se> Co-authored-by: Lipis <lipiridis@gmail.com>
32 lines
583 B
SCSS
32 lines
583 B
SCSS
.fib {
|
|
background-size: contain;
|
|
background-position: 50%;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.fi {
|
|
@extend .fib;
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 1.333333 * 1em;
|
|
line-height: 1em;
|
|
&:before {
|
|
content: '\00a0';
|
|
}
|
|
&.fis {
|
|
width: 1em;
|
|
}
|
|
}
|
|
|
|
@mixin flag-icon($country) {
|
|
.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);
|
|
}
|
|
}
|
|
}
|
|
}
|