modernizr-mixin 3.0.4 → 3.0.5.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -3
- data/lib/modernizr-mixin.rb +2 -2
- data/stylesheets/_modernizr.scss +26 -5
- 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: 854971f73ee0c74efbb45b7389cb1341c314cab5
|
4
|
+
data.tar.gz: 278b445410b698238cb6ca2584177d05f2e30385
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44a1b8e752717fe34583c4223e718ac6098c38b211b2c3b140f1c4a14c722e57513c5d176a40587c2d430068a5ede467b859f4df62b5f4986d5dc6f4cee022e4
|
7
|
+
data.tar.gz: d35f6810cd510aff9d5417d2e0607b7a78bce8a38aa0e2c81f9a47d35d87574dd5b16fc7d6826e29019ca739584ff5cb878dcbef6f76e358c64ae05962a397c4
|
data/README.md
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
# Modernizr mixin
|
1
|
+
# Modernizr mixin [![Build Status](https://travis-ci.org/danielguillan/modernizr-mixin.svg?branch=master)](https://travis-ci.org/danielguillan/modernizr-mixin)
|
2
2
|
|
3
3
|
A simple way for DRYier, faster and cleaner Modernizr tests in Sass.
|
4
4
|
|
5
|
-
[![Build Status](https://travis-ci.org/danielguillan/modernizr-mixin.svg?branch=master)](https://travis-ci.org/danielguillan/modernizr-mixin)
|
6
|
-
|
7
5
|
## Install
|
8
6
|
|
9
7
|
Requires Sass 3.4
|
data/lib/modernizr-mixin.rb
CHANGED
@@ -3,6 +3,6 @@ extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
|
3
3
|
Compass::Frameworks.register('modernizr-mixin', :path => extension_path)
|
4
4
|
|
5
5
|
module ModernizrMixin
|
6
|
-
VERSION = "3.0.
|
7
|
-
DATE = "2015-
|
6
|
+
VERSION = "3.0.5-beta.1"
|
7
|
+
DATE = "2015-04-30"
|
8
8
|
end
|
data/stylesheets/_modernizr.scss
CHANGED
@@ -46,12 +46,33 @@
|
|
46
46
|
}
|
47
47
|
}
|
48
48
|
|
49
|
-
// Generate selector
|
50
|
-
|
49
|
+
// Generate selector and print content
|
50
|
+
// @todo remove workaround once Libsass supports selector functions.
|
51
51
|
|
52
|
-
//
|
53
|
-
@
|
54
|
-
|
52
|
+
// RubySass 3.4+
|
53
|
+
@if function-exists('selector-nest') {
|
54
|
+
|
55
|
+
// Generate selector by nesting features classes and the parent selector
|
56
|
+
$selector: selector-nest($selector, &);
|
57
|
+
|
58
|
+
@at-root #{$selector} {
|
59
|
+
@content;
|
60
|
+
}
|
61
|
+
|
62
|
+
} @else {
|
63
|
+
|
64
|
+
// Libsass 3.2 workaround using Modernizr Mixin v1.0' placeholder technique
|
65
|
+
// with a randomly generated placeholder name.
|
66
|
+
$placeholder: '%' + rand + random(100000000);
|
67
|
+
|
68
|
+
// Use placeholder technique generating a new placeholder each time.
|
69
|
+
#{$placeholder} & {
|
70
|
+
@content;
|
71
|
+
}
|
72
|
+
|
73
|
+
@at-root #{$selector} {
|
74
|
+
@extend #{$placeholder};
|
75
|
+
}
|
55
76
|
}
|
56
77
|
|
57
78
|
}
|
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.5.pre.beta.1
|
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-
|
11
|
+
date: 2015-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|