jetpack-rails 0.6.3 → 0.6.4

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.
data/CHANGELOG CHANGED
@@ -1,4 +1,7 @@
1
1
  Changelog:
2
+ 0.6.4:
3
+ - Fixed an accidental regression in 0.6.3.
4
+ - Added `respond-to` mixin.
2
5
  0.6.3:
3
6
  - Adjusted fractionalize to use 'device' width instead of 'width' in media queries.
4
7
  0.6.2:
@@ -1,3 +1,3 @@
1
1
  module Jetpack
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
@@ -41,10 +41,19 @@ $tablet: 760px;
41
41
  $mobile: 280px;
42
42
  $margin: 20px;
43
43
 
44
+ @mixin respond-to($media) {
45
+ @if $media == tablet {
46
+ @media screen and (device-width: 768px), screen and (min-width: 768px) and (max-width: 1023px) { @content; }
47
+ }
48
+ @else if $media == mobile {
49
+ @media screen and (device-width: 480px), screen and (max-width: 767px) { @content; }
50
+ }
51
+ }
52
+
44
53
  @mixin container {
45
54
  width: $desktop;
46
- @media only screen and (min-device-width: 768px) and (max-device-width: 1023px) { width: $tablet; }
47
- @media only screen and (max-device-width: 767px) { width: $mobile; }
55
+ @media screen and (device-width: 768px), screen and (min-width: 768px) and (max-width: 1023px) { width: $tablet; }
56
+ @media screen and (device-width: 480px), screen and (max-width: 767px) { width: $mobile; }
48
57
  margin: 0 auto;
49
58
  clear: both;
50
59
  @include clearfix;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jetpack-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: