-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from SpiriitLabs/dev
Version 2.3.0
- Loading branch information
Showing
65 changed files
with
9,374 additions
and
7,009 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ coverage | |
.svelte-kit | ||
demo/server/public | ||
.nitro | ||
test/fixtures/basic/styles/* | ||
!test/fixtures/basic/styles/.gitkeep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* Generated by vite-plugin-svg-spritemap */ | ||
|
||
$flags-prefix: 'flag-'; | ||
$flags: ( | ||
'CH': ( | ||
uri: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 85.333 513 342'%3e%3cpath fill='red' d='M0 85.337h513v342H0z'/%3e%3cpath fill='white' d='M356.174 222.609h-66.783v-66.783h-66.782v66.783h-66.783v66.782h66.783v66.783h66.782v-66.783h66.783z'/%3e%3c/svg%3e", | ||
width: 513px, | ||
height: 342px | ||
), | ||
'FR': ( | ||
uri: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 513 342'%3e%3cpath fill='white' d='M0 0h513v342H0z'/%3e%3cpath fill='%230052B4' d='M0 0h171v342H0z'/%3e%3cpath fill='%23D80027' d='M342 0h171v342H342z'/%3e%3c/svg%3e", | ||
width: 513px, | ||
height: 342px | ||
), | ||
'JP': ( | ||
uri: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 513 342'%3e%3cpath fill='white' d='M0 0h512v342H0z'/%3e%3ccircle cx='256.5' cy='171' r='96' fill='%23D80027'/%3e%3c/svg%3e", | ||
width: 513px, | ||
height: 342px | ||
) | ||
); | ||
|
||
@mixin sprites-flags( | ||
$name, | ||
$include-size: false, | ||
$type: 'uri', | ||
$mode: 'background', | ||
$route: '__flags' | ||
) { | ||
$sprite: map-get($flags, $name); | ||
$url: false; | ||
|
||
@if $type == 'fragment' { | ||
$url: '/#{$route}##{$flags-prefix}#{$name}-view'; | ||
} @else if $type == 'uri' { | ||
$url: map-get($sprite, uri); | ||
} @else { | ||
@error 'sprite(): $type must be either "fragment" or "uri"'; | ||
} | ||
|
||
@if $url { | ||
#{$mode}: url($url) center no-repeat; | ||
|
||
@if $include-size { | ||
@if $include-size == true { | ||
#{$mode}-size: map-get($sprite, width) map-get($sprite, height); | ||
} @else if $include-size == 'box' { | ||
width: map-get($sprite, width); | ||
height: map-get($sprite, height); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.