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 +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/javascripts/fortitude/generic/viewport.js +7 -11
- data/bower.json +1 -1
- data/jasmine/specs/generic/viewportSpec.js +7 -10
- data/lib/fortitude-sass/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1037876a9a31833b9efd04ed2453a110053a2979
|
4
|
+
data.tar.gz: 271a0080a9282655843f65d19f38a7f072a5b681
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2780be8c04feacf0e5520b3774d341eb95c35b63c52906f1bbacc46f4c7269ba6924a01f9d2e6dce44bcb6c905fef175b532bd8bfc8a3b580fc58824549f5bfb
|
7
|
+
data.tar.gz: dee1950c7a122783264cd0a4e708036012c0826e3b4f44cc8e452e6c2e0c68018c9c9d9059edb5097999c391b55e74872a7ba01240eee46374990d85142df075
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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 =
|
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
@@ -2,31 +2,28 @@
|
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
describe('the input zoom fix', function(){
|
5
|
-
var
|
6
|
-
|
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(
|
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(
|
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(
|
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);
|
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.
|
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-
|
11
|
+
date: 2015-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|