flint-gs 1.6.4 → 1.6.5
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20b0ac111ab807d8eb76b531deaa0cdf2b63e576
|
4
|
+
data.tar.gz: 4d2b7b97bc1bbfe4d2b20e79095a933fc65b9f96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c82db0bef304ec23e6b4a96eb57249cefde32d14071d26ccfe6860455ddc877fd350e9c4bd9f4a616224dd0a4aa967960c06881a61320ff384b97c7f41f7223
|
7
|
+
data.tar.gz: bb7dd6765110ab39bac125be563a538e93164c9df8bb5b5d900e55d1fd50b96c9538aceb76e15ec19cc27ea0be26cc302f3010ea84246d286683fcbd45d4309b
|
data/README.md
CHANGED
@@ -862,9 +862,10 @@ function parses the selector string (for example, `.block__element__element`) li
|
|
862
862
|
|
863
863
|
@function support-syntax-bem($selectors) {
|
864
864
|
// Clean up selector, remove double underscores for spaces
|
865
|
-
|
865
|
+
// add psudeo character to differentiate selectors
|
866
|
+
$selectors: replace-substring($selectors, "__", "/");
|
866
867
|
// Parse string to list
|
867
|
-
$selectors: string-to-list($selectors);
|
868
|
+
$selectors: string-to-list($selectors, "/");
|
868
869
|
// Define top-most parent of selector
|
869
870
|
$parent: nth($selectors, 1);
|
870
871
|
// Create new list of parsed selectors
|
data/lib/flint.rb
CHANGED
@@ -5,7 +5,7 @@ Compass::Frameworks.register('flint', :path => extension_path)
|
|
5
5
|
# Version is a number. If a version contains alphas, it will be created as a prerelease version
|
6
6
|
# Date is in the form of YYYY-MM-DD
|
7
7
|
module Flint
|
8
|
-
VERSION = "1.6.
|
8
|
+
VERSION = "1.6.5"
|
9
9
|
DATE = "2014-07-08"
|
10
10
|
end
|
11
11
|
|
@@ -9,9 +9,9 @@
|
|
9
9
|
@function replace-substring($string, $substring, $new-substring: " ") {
|
10
10
|
// Loop through length of string
|
11
11
|
@for $i from 1 through str-length($string) {
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
// Get index and length of substring
|
13
|
+
$sub-index: str-index($string, $substring);
|
14
|
+
$sub-length: str-length($substring);
|
15
15
|
|
16
16
|
// If count is index of substring
|
17
17
|
@if $i == $sub-index {
|
@@ -6,9 +6,10 @@
|
|
6
6
|
|
7
7
|
@function support-syntax-bem($selectors) {
|
8
8
|
// Clean up selector, remove double underscores for spaces
|
9
|
-
|
9
|
+
// add psudeo character to differentiate selectors
|
10
|
+
$selectors: replace-substring($selectors, "__", "/");
|
10
11
|
// Parse string to list
|
11
|
-
$selectors: string-to-list($selectors);
|
12
|
+
$selectors: string-to-list($selectors, "/");
|
12
13
|
// Define top-most parent of selector
|
13
14
|
$parent: nth($selectors, 1);
|
14
15
|
// Create new list of parsed selectors
|