mirror of
https://github.com/mivodev/mivodev.github.io.git
synced 2026-01-27 07:06:17 +07:00
Fix dependencies: Add flag-icons, tailwind directives, and postcss config
This commit is contained in:
33
node_modules/flag-icons/sass/_flag-icons-base.scss
generated
vendored
Normal file
33
node_modules/flag-icons/sass/_flag-icons-base.scss
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
@use "variables";
|
||||
|
||||
.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(#{variables.$flag-icons-path}#{variables.$flag-icons-rect-path}/#{$country}.svg);
|
||||
|
||||
@if variables.$flag-icons-use-square {
|
||||
&.fis {
|
||||
background-image: url(#{variables.$flag-icons-path}#{variables.$flag-icons-square-path}/#{$country}.svg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user