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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d449ebc2d1a1271b7030f9ab7e3bfda93750bf4
4
- data.tar.gz: d89105065abb13e0d17832b647e9940d16b8abbd
3
+ metadata.gz: 854971f73ee0c74efbb45b7389cb1341c314cab5
4
+ data.tar.gz: 278b445410b698238cb6ca2584177d05f2e30385
5
5
  SHA512:
6
- metadata.gz: 5da2074073818fc259f0143d91e9835427ebd044f78f342c8e723aeed280e48443cd87cf63e1de509623b4559a7fa3ff92c194ce86cdaebcb0a13ff6a01703db
7
- data.tar.gz: 17e2ec6d1ba88a273e3002d4833eee063b4a7085353ffbd45a38e3edb35c43644d3066254362a9309688acd108d65a6537600f9e1643789b85e863c452e1ea50
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
@@ -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.4"
7
- DATE = "2015-03-15"
6
+ VERSION = "3.0.5-beta.1"
7
+ DATE = "2015-04-30"
8
8
  end
@@ -46,12 +46,33 @@
46
46
  }
47
47
  }
48
48
 
49
- // Generate selector nesting features classes and the parent selector
50
- $selector: selector-nest($selector, &);
49
+ // Generate selector and print content
50
+ // @todo remove workaround once Libsass supports selector functions.
51
51
 
52
- // Define feature selector(s) and print @content
53
- @at-root #{$selector} {
54
- @content;
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
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-03-15 00:00:00.000000000 Z
11
+ date: 2015-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass