AutorÃa | Ultima modificación | Ver Log |
@function retina-size($value) {
@return floor($value / 2);
}
@mixin retina-bg-size($spriteWidth, $spriteHeight) {
background-size: floor($spriteWidth / 2) floor($spriteHeight / 2);
}
.iti__flag {
$item-width-maps: ({{#items}}{{strings.name}}: {{px.width}}, {{/items}});
$standard-country: 'ac';
width: map-get($item-width-maps, $standard-country);
@each $key, $width in $item-width-maps {
@if $width != map-get($item-width-maps, $standard-country) {
&.iti__#{$key} {
width: $width;
}
}
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
background-size: {{spritesheet.px.width}} {{spritesheet.px.height}};
}
{{#items}}
&.iti__{{strings.name}} {
height: {{px.height}};
background-position: {{px.offset_x}} {{px.offset_y}};
}
{{/items}}
}