illusion 0.2.2 → 0.3.0

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/sass/_ie.scss +42 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63ce8c3d1240b88e7a9a3ceac6ddda3b3aec65f1
4
- data.tar.gz: 4fa533874c1d9fdff441d2949b98d92a3cfeafe2
3
+ metadata.gz: 1accd2f1fc91acf6138e7191aed9ff6df59bc4ef
4
+ data.tar.gz: 5477298f8df0ca95e40c2f015d02a60f223d8502
5
5
  SHA512:
6
- metadata.gz: b16ec5e9bf54feec9dfd4a824898cf88575017e27cd93e4fb92664d424865685cedec16c1abe06a9e06110a4233188b9c69c2b0b00b32abbe634a729fd1de69f
7
- data.tar.gz: 5c9fda3559aa3538c14df91cd573451e78deceb28c153c85af6397875e1ef2653c2bb70db8f61f1fabe7de610b43b19b614a3155ecd0717c1882b19eeb884bfc
6
+ metadata.gz: a789b9ed43c264a8cec5d5d12f1d4405a3ee0c97b4e7e0d7cf7d067975633457ab3f04bfd61250ccd14c34b3d30d24004820e40bc35fcb5744a9295e6c5ae094
7
+ data.tar.gz: eb7bd7d25c3f95e739d5811dee0a8611e0c4ba13dbcb6d298f008010bbc7ef09d14dea2dd7fe11916125c3a412aed9853f0d8e4381cf50ff66500a97fc876a7a
@@ -16,7 +16,39 @@ $fix-mqs: false !default;
16
16
  }
17
17
  }
18
18
 
19
- // I also have a respond-max mixin, that does what you might expect
19
+ @mixin respond-max($width) {
20
+ // If we're outputting for a fixed media query set...
21
+ @if $fix-mqs {
22
+ // ...and if we should apply these rules...
23
+ @if $fix-mqs <= $width {
24
+ // ...output the content the user gave us.
25
+ @content;
26
+ }
27
+ }
28
+ @else {
29
+ // Otherwise, output it using a regular media query
30
+ @media screen and (max-width: $width) {
31
+ @content;
32
+ }
33
+ }
34
+ }
35
+
36
+ @mixin respond-min-max($minwidth, $maxwidth) {
37
+ // If we're outputting for a fixed media query set...
38
+ @if $fix-mqs {
39
+ // ...and if we should apply these rules...
40
+ @if $fix-mqs <= $maxwidth {
41
+ // ...output the content the user gave us.
42
+ @content;
43
+ }
44
+ }
45
+ @else {
46
+ // Otherwise, output it using a regular media query
47
+ @media screen and (min-width: $minwidth) and (max-width: $maxwidth) {
48
+ @content;
49
+ }
50
+ }
51
+ }
20
52
 
21
53
  $old-ie: false !default;
22
54
 
@@ -25,4 +57,13 @@ $old-ie: false !default;
25
57
  @if $old-ie {
26
58
  @content;
27
59
  }
60
+ }
61
+
62
+ $old-ie7: false !default;
63
+
64
+ @mixin old-ie7 {
65
+ // Only use this content if we're dealing with older IE
66
+ @if $old-ie7 {
67
+ @content;
68
+ }
28
69
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: illusion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Janssens
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-14 00:00:00.000000000 Z
11
+ date: 2014-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 2.2.2
116
+ rubygems_version: 2.3.0
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Sass mixins.