modernizr-mixin 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/modernizr-mixin.rb +2 -2
- data/stylesheets/_modernizr.scss +23 -47
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d449ebc2d1a1271b7030f9ab7e3bfda93750bf4
|
4
|
+
data.tar.gz: d89105065abb13e0d17832b647e9940d16b8abbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5da2074073818fc259f0143d91e9835427ebd044f78f342c8e723aeed280e48443cd87cf63e1de509623b4559a7fa3ff92c194ce86cdaebcb0a13ff6a01703db
|
7
|
+
data.tar.gz: 17e2ec6d1ba88a273e3002d4833eee063b4a7085353ffbd45a38e3edb35c43644d3066254362a9309688acd108d65a6537600f9e1643789b85e863c452e1ea50
|
data/lib/modernizr-mixin.rb
CHANGED
data/stylesheets/_modernizr.scss
CHANGED
@@ -5,18 +5,10 @@
|
|
5
5
|
// -----------------------------------------------------------------------------
|
6
6
|
// Modernizr
|
7
7
|
// -----------------------------------------------------------------------------
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
* @access private
|
13
|
-
*
|
14
|
-
* @param {Bool} $supports - Whether to check for supported features or not
|
15
|
-
* @param {ArgList} $features - List of features
|
16
|
-
*
|
17
|
-
* @throws `Modernizr mixin should be called within a selector.`
|
18
|
-
* @throws `$feature` is not a `string` for `modernizr.`
|
19
|
-
*/
|
8
|
+
/// Prints classes for supported or unsupported features
|
9
|
+
/// @access private
|
10
|
+
/// @param {Bool} $supports - Whether to check for supported features or not
|
11
|
+
/// @param {ArgList} $features - List of features
|
20
12
|
|
21
13
|
@mixin _modernizr($supports, $features...) {
|
22
14
|
|
@@ -68,23 +60,15 @@
|
|
68
60
|
// -----------------------------------------------------------------------------
|
69
61
|
// Yep mixin
|
70
62
|
// -----------------------------------------------------------------------------
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
*
|
81
|
-
* @example scss
|
82
|
-
* .my-selector {
|
83
|
-
* @include yep(opacity, csstransforms) {
|
84
|
-
* // ...
|
85
|
-
* }
|
86
|
-
* }
|
87
|
-
*/
|
63
|
+
/// Prints classes for supported features
|
64
|
+
/// @access public
|
65
|
+
/// @param {ArgList} $features - List of features
|
66
|
+
/// @example scss
|
67
|
+
/// .my-selector {
|
68
|
+
/// @include yep(opacity, csstransforms) {
|
69
|
+
/// // ...
|
70
|
+
/// }
|
71
|
+
/// }
|
88
72
|
|
89
73
|
@mixin yep($features...) {
|
90
74
|
@include _modernizr(true, $features...) {
|
@@ -92,27 +76,19 @@
|
|
92
76
|
}
|
93
77
|
}
|
94
78
|
|
79
|
+
|
95
80
|
// -----------------------------------------------------------------------------
|
96
81
|
// Nope mixin
|
97
82
|
// -----------------------------------------------------------------------------
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
* @param {ArgList} $features - List of features
|
108
|
-
*
|
109
|
-
* @example scss
|
110
|
-
* .my-selector {
|
111
|
-
* @include nope(opacity, csstransforms) {
|
112
|
-
* // ...
|
113
|
-
* }
|
114
|
-
* }
|
115
|
-
*/
|
83
|
+
/// Prints classes for unsupported features and lack of JS
|
84
|
+
/// @access public
|
85
|
+
/// @param {ArgList} $features - List of features
|
86
|
+
/// @example scss
|
87
|
+
/// .my-selector {
|
88
|
+
/// @include nope(opacity, csstransforms) {
|
89
|
+
/// // ...
|
90
|
+
/// }
|
91
|
+
/// }
|
116
92
|
|
117
93
|
@mixin nope($features...) {
|
118
94
|
@include _modernizr(false, $features...) {
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
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.4
|
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-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.4'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.4'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: compass
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 1.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.0.0
|
41
41
|
description: A simple way for DRYier, faster and cleaner Modernizr tests in Sass.
|
@@ -58,17 +58,17 @@ require_paths:
|
|
58
58
|
- lib
|
59
59
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 1.3.6
|
69
69
|
requirements: []
|
70
70
|
rubyforge_project: modernizr-mixin
|
71
|
-
rubygems_version: 2.
|
71
|
+
rubygems_version: 2.2.2
|
72
72
|
signing_key:
|
73
73
|
specification_version: 4
|
74
74
|
summary: Simple and comprehensive mixin for Modernizr tests in Sass
|