fortitude-sass 0.7.0 → 0.7.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: 01804f33d10f467bd2636d4f0482780331b7a28c
4
- data.tar.gz: f2e1c193938b2152ccccd5e6026682cfc30c730d
3
+ metadata.gz: 1037876a9a31833b9efd04ed2453a110053a2979
4
+ data.tar.gz: 271a0080a9282655843f65d19f38a7f072a5b681
5
5
  SHA512:
6
- metadata.gz: e39500c34d590970983008cdb3877f706f2648744431705e01951ad9442536da2d87b59c463f5bdc6ded181a38e87941d5374d76a775da14b6df18d0ab63aa59
7
- data.tar.gz: 2e5f23ff6a2e98b591f499537145a64bffd0e2a3d9afdd469b44642ced9c69bef706095eb7f8097a1998e7b05d7e58f6c16f0925decf5001a3e5bcf44da8c961
6
+ metadata.gz: 2780be8c04feacf0e5520b3774d341eb95c35b63c52906f1bbacc46f4c7269ba6924a01f9d2e6dce44bcb6c905fef175b532bd8bfc8a3b580fc58824549f5bfb
7
+ data.tar.gz: dee1950c7a122783264cd0a4e708036012c0826e3b4f44cc8e452e6c2e0c68018c9c9d9059edb5097999c391b55e74872a7ba01240eee46374990d85142df075
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fortitude-sass (0.6.5)
4
+ fortitude-sass (0.7.1)
5
5
  autoprefixer-rails
6
6
  execjs
7
7
  sass (~> 3.3)
@@ -4,18 +4,14 @@
4
4
  // zoom fix on input elements
5
5
  $(document).on('focus blur', ':input', function(event) {
6
6
  var $viewport = $('meta[name="viewport"]'),
7
- scale = 1;
8
-
7
+ content = 'width=device-width, initial-scale=1.0';
8
+
9
9
  if(event.type === 'focusout' ||
10
10
  event.type === 'blur'){
11
-
12
- scale = 5;
11
+
12
+ content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0';
13
13
  }
14
-
15
- $viewport.attr('content',
16
- 'width=device-width,' +
17
- 'initial-scale=1,' +
18
- 'maximum-scale=' + scale
19
- );
14
+
15
+ $viewport.attr('content', content);
20
16
  });
21
- })(jQuery);
17
+ })(jQuery);
data/bower.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fortitude-sass",
3
3
  "homepage": "http://fortitude.io/",
4
- "version": "0.7.0",
4
+ "version": "0.7.1",
5
5
  "main": [
6
6
  "app/assets/stylesheets/fortitude/tools/_functions.scss",
7
7
  "app/assets/stylesheets/fortitude/tools/_mixins.scss",
@@ -2,31 +2,28 @@
2
2
  'use strict';
3
3
 
4
4
  describe('the input zoom fix', function(){
5
- var contentVal = 'width=device-width,' +
6
- 'initial-scale=1,' +
7
- 'maximum-scale=',
8
- $viewport, $input;
9
-
5
+ var $viewport, $input;
6
+
10
7
  beforeEach(function(){
11
8
  loadFixtures('viewportFixture.html');
12
9
  $viewport = $('meta[name=viewport]');
13
10
  $input = $('input');
14
11
  });
15
-
12
+
16
13
  it('fixes the zoom when input focused', function(){
17
14
  $input.trigger('focus');
18
- expect($viewport.attr('content')).toEqual(contentVal + '1');
15
+ expect($viewport.attr('content')).toEqual('width=device-width, initial-scale=1.0');
19
16
  });
20
17
 
21
18
  it('returns zoom to normal when input focused out', function(){
22
19
  $input.trigger('focusout');
23
- expect($viewport.attr('content')).toEqual(contentVal + '5');
20
+ expect($viewport.attr('content')).toEqual('width=device-width, initial-scale=1.0, maximum-scale=1.0');
24
21
  });
25
22
 
26
23
  it('returns zoom to normal when input blurred', function(){
27
24
  $input.trigger('blur');
28
- expect($viewport.attr('content')).toEqual(contentVal + '5');
25
+ expect($viewport.attr('content')).toEqual('width=device-width, initial-scale=1.0, maximum-scale=1.0');
29
26
  });
30
27
  });
31
28
 
32
- })(jQuery);
29
+ })(jQuery);
@@ -1,3 +1,3 @@
1
1
  module Fortitude
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fortitude-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Reisman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-27 00:00:00.000000000 Z
11
+ date: 2015-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass