graphite-sass 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/graphite.rb +1 -1
- data/stylesheets/_graphite.scss +14 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a729fce009bac9a9d3ba1958ee974348ee835a6
|
4
|
+
data.tar.gz: 0d14b138dc1fc26908ed8f6b9e98e3428c1b4895
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ac5f2adc48891ee67ff6ca97ea6be7b1b17227f1b1f0b8f3ea4580d228d519161569e7bd96dc57287b4fbc2a67ab07eb4639e6e4c10f642028d0ea53b30364c
|
7
|
+
data.tar.gz: 2da410c5f1a43a20c22a8c818019323d61701e2c2ad3951b36fb1991130c012deb543dcd4052e96f06e2aab5d3118a0f50c1505065c7b3fed8665053003aeee2
|
data/lib/graphite.rb
CHANGED
data/stylesheets/_graphite.scss
CHANGED
@@ -1,11 +1,21 @@
|
|
1
1
|
// Filename seperator
|
2
2
|
// ----
|
3
|
+
// @var [string] : used when rebuilding parsed filenames
|
4
|
+
// ----
|
3
5
|
$graphite_seperator: "-" !global;
|
4
6
|
|
5
7
|
// Prepend directory path
|
6
8
|
// ----
|
9
|
+
// @var [string] : prepends string to asset path in font-face output
|
10
|
+
// ----
|
7
11
|
$graphite_chdir: ".." !global;
|
8
12
|
|
13
|
+
// Relative asset paths
|
14
|
+
// ----
|
15
|
+
// @var [bool] : removes leading slash for asset path in font-face output
|
16
|
+
// ----
|
17
|
+
$graphite_relative_assets: false !global;
|
18
|
+
|
9
19
|
// Checks if item is map
|
10
20
|
// ----
|
11
21
|
// @param $n [literal] : item
|
@@ -81,6 +91,10 @@ $graphite_chdir: ".." !global;
|
|
81
91
|
@if $k == "path" {
|
82
92
|
// Define path to font directory
|
83
93
|
$path: $graphite_chdir + $path + "/" + $v;
|
94
|
+
|
95
|
+
@if $graphite_relative_assets {
|
96
|
+
$path: str-slice($path, 2, str-length($path));
|
97
|
+
}
|
84
98
|
}
|
85
99
|
|
86
100
|
// List of extensions found
|