modernizr-mixin 3.0.6 → 3.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/modernizr-mixin.rb +2 -2
- data/stylesheets/_modernizr.scss +20 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c961595a3ae41658ab8a899bec1751bf23b29c8
|
4
|
+
data.tar.gz: 3870deade6ea41733b54dd1407687088c664689b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82e239904004eed1d680aa3454bd5ce194da378c8e39d1e9984e0039fcf64b0974e19f994c17ca5ce4b257cbcbc33ab8a07aeb3929e9bc71528817608913be55
|
7
|
+
data.tar.gz: 69faffa12d984d276b3422975a5450f5f2c94c24d80e6705d2de03b56750d3e77d9dd5e9eac8e19402df55a6490cccb4c3bd8478bf4f294a6b7cfba9a2c3cb93
|
data/README.md
CHANGED
@@ -6,6 +6,8 @@ A simple way for DRYier, faster and cleaner Modernizr tests in Sass.
|
|
6
6
|
|
7
7
|
Requires Ruby Sass 3.4 or LibSass 3.2
|
8
8
|
|
9
|
+
**LIBSASS WARNING: There is a known bug in Libsass 3.2.3 and 3.2.4 that makes Modernizr mixin output incorrect selectors. The only workaround until the bug is patched is to stick to Libsass 3.2.2. https://github.com/sass/libsass/issues/1210**
|
10
|
+
|
9
11
|
There are 4 ways of installing the Modernizr mixin:
|
10
12
|
|
11
13
|
### Download
|
data/lib/modernizr-mixin.rb
CHANGED
data/stylesheets/_modernizr.scss
CHANGED
@@ -116,3 +116,23 @@
|
|
116
116
|
@content;
|
117
117
|
}
|
118
118
|
}
|
119
|
+
|
120
|
+
|
121
|
+
// -----------------------------------------------------------------------------
|
122
|
+
// Libsass error check
|
123
|
+
// -----------------------------------------------------------------------------
|
124
|
+
/// There is a known bug in Libsass 3.2.3 / 3.2.4 that makes Modernizr mixin
|
125
|
+
/// output incorrect selectors. This test throws an error for versions of Libsass
|
126
|
+
/// that contain said bug.
|
127
|
+
/// @todo Remove once the Libsass bug is patched
|
128
|
+
|
129
|
+
%_modernizr-libsass-bug-test {
|
130
|
+
$a: '%foo#{&}';
|
131
|
+
|
132
|
+
@at-root #{$a} {
|
133
|
+
$b: #{&};
|
134
|
+
@if $b == '%_modernizr-libsass-bug-test %foo%_modernizr-libsass-bug-test' {
|
135
|
+
@error '[Modernizr mixin]: There is a known bug in Libsass 3.2.3 / 3.2.4 that makes Modernizr mixin output incorrect selectors. If you want to keep using the Modernizr Mixin you need to stick to Libsass 3.2.2 until the bug is patched, hopefully in 3.2.5. Learn more at https://github.com/danielguillan/modernizr-mixin/issues/24';
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: modernizr-mixin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Guillan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|