sass_inline_svg 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +5 -3
- data/lib/sass_inline_svg.rb +1 -1
- data/lib/sass_inline_svg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTk0YTQ2MzliYmUwZDRjNTBhZDg1MjZkMjAxNGRiMDIwMDI2ZDA2YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2MxNDEzY2E5MTM4NjUzOWUyNGIyZDdjMjc1YjgzZDYwNmUzNDZjMQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzI3NmY5YzI4NmQ1NTcwOGNmOTAzM2E3ZjlmNzY3YzE5NzA1NGUxMWJlZDVk
|
10
|
+
YTA4NmVmYmI2Yjg0ZDQ1M2Y0MzZjNTJmNWFiMGFiNjA4ZTllMDRjNzM3ZTBk
|
11
|
+
OTE5MzQ5ZDNjZTRhYmEyZTBiNmRiMDg3YWEwYzBjYTdmY2ExNTc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzE4ODJkY2M0NWQwMjllOTZjM2EzNWFhNzExMGJhMWRlN2M3YmMyYTcwZmZk
|
14
|
+
MjZjY2M3OGMwZGIwN2M5MDU4OGMwNzNlNmNlYWQzZDJlZTkxNTcyZTQyZDZi
|
15
|
+
MWZiOGE2MDc4ZDk2ZTViNTAyOWY1MWVhMjlmMjJiYjZlN2M5NGE=
|
data/README.md
CHANGED
@@ -27,15 +27,17 @@ Sass-inline-svg adds a `inline-svg` function you can use with Sass. It url-encod
|
|
27
27
|
|
28
28
|
When working with plain Sass, you'll have to use the full path to the svg file, when using Rails the path will be resolved by the Rails asset pipeline.
|
29
29
|
|
30
|
+
The `svg-inline()` function as it was named in earlier versions is now aliased to `inline-svg()` so either of both can be used.
|
31
|
+
|
30
32
|
###Replace Variable Strings
|
31
33
|
|
32
34
|
Replacing variable strings in SVG when inlining them with Sass makes sense e.g. if you need multiple variants of the same graphic with different fill colors.
|
33
35
|
|
34
36
|
With Sass-Inline-Svg you only need __one__ source svg file with a variable string for `fill`:
|
35
37
|
|
36
|
-
|
37
|
-
|
38
|
-
|
38
|
+
…
|
39
|
+
<polygon fill="fillcolor" points="29.43 25.19 20.24 16 29.43 6.81 25.19 2.57 16 11.76 6.81 2.57 2.57 6.81 11.76 16 2.57 25.19 6.81 29.44 16 20.24 25.19 29.44 "/>
|
40
|
+
…
|
39
41
|
|
40
42
|
The variants needed can be created during inlinig with Sass. Pass a Sass map of replacements as a second parameter:
|
41
43
|
|
data/lib/sass_inline_svg.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass_inline_svg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franz Heidl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|