Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gulp-inline-svg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Toolchain
gulp-inline-svg
Commits
5b20b7d1
Commit
5b20b7d1
authored
8 years ago
by
Philipp Nowinski
Browse files
Options
Downloads
Patches
Plain Diff
[FEATURE] adapt test
parent
cf447ffe
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
template.mustache
+2
-2
2 additions, 2 deletions
template.mustache
test/expected/test.scss
+2
-2
2 additions, 2 deletions
test/expected/test.scss
with
4 additions
and
4 deletions
template.mustache
+
2
−
2
View file @
5b20b7d1
{{#
svgs
}}
$
{{{
name
}}}
:
'
{{{
inline
}}}
'
{{
width
}}
{{
height
}}
;
$
{{{
name
}}}
:
"
{{{
inline
}}}
"
{{
width
}}
{{
height
}}
;
{{/
svgs
}}
@mixin inline-svg($name) {
...
...
@@ -15,4 +15,4 @@ ${{{name}}}: '{{{inline}}}' {{width}} {{height}};
@function inline-svg-height($name) {
@return nth($name, 3);
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
test/expected/test.scss
+
2
−
2
View file @
5b20b7d1
$test
:
'
data:image/svg+xml,%3Csvg
%20
xmlns
%3D%22http%3A%2F%2F
www.w3.org
%2F
2000
%2Fsvg%22%20width%3D%22350.471%22%20height%3D%22
350.471
%22
%3E%3Cg
%20
stroke
%3D%22%23
#{
color1
}
%22%20stroke-width%3D%221.9%22%3E%3Cpath%20d%3D%22
M.95.95h234.286v225.714H.95z
%22%2F
%3E%3Cpath
%20d%3D%22
M349.52
%20
236.664c0
%20
62.33-50.526
%20
112.857-112.856
%20
112.857-62.33
%20
0-112.857-50.526-112.857-112.856
%20
0-62.33
%20
50.528-112.857
%20
112.857-112.857
%20
62.33
%200%20
112.857
%20
50.528
%20
112.857
%20
112.857z
%22%2F
%3E%3C
%2F
g%3E%3C
%2F
svg%3E
%0A'
350px
350px
;
$test
:
"
data:image/svg+xml,
data:image/svg+xml;charset=utf8,
%3Csvg
xmlns
='http://
www.w3.org
/
2000
/svg' width='350.471' height='
350.471
'
%3E%3Cg
stroke
='%230091d4' stroke-width='1.9'%3E%3Cpath d='
M.95.95h234.286v225.714H.95z
'/
%3E%3Cpath
d='
M349.52
236.664c0
62.33-50.526
112.857-112.856
112.857-62.33
0-112.857-50.526-112.857-112.856
0-62.33
50.528-112.857
112.857-112.857
62.33
0
112.857
50.528
112.857
112.857z
'/
%3E%3C
/
g%3E%3C
/
svg%3E
"
350px
350px
;
@mixin
inline-svg
(
$name
)
{
background
:
transparent
url(nth($name, 1)
)
no-repeat
50%
50%
;
...
...
@@ -13,4 +13,4 @@ $test: 'data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2F
@function
inline-svg-height
(
$name
)
{
@return
nth
(
$name
,
3
);
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment