zurb-foundation 2.2.0.1 → 2.2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/foundation/version.rb +2 -2
- data/vendor/assets/javascripts/foundation/jquery.customforms.js +2 -1
- data/vendor/assets/javascripts/foundation/jquery.tooltips.js +11 -12
- data/vendor/assets/stylesheets/foundation/forms.css.scss +1 -0
- data/vendor/assets/stylesheets/foundation/globals.css.scss +8 -1
- data/vendor/assets/stylesheets/foundation/ui.css.scss +14 -39
- metadata +8 -8
data/lib/foundation/version.rb
CHANGED
@@ -194,7 +194,7 @@ jQuery(document).ready(function ($) {
|
|
194
194
|
$select = $dropdown.prev();
|
195
195
|
|
196
196
|
event.preventDefault();
|
197
|
-
|
197
|
+
|
198
198
|
if (false == $select.is(':disabled')) {
|
199
199
|
$dropdown.toggleClass('open');
|
200
200
|
|
@@ -206,6 +206,7 @@ jQuery(document).ready(function ($) {
|
|
206
206
|
} else {
|
207
207
|
$(document).unbind('.customdropdown');
|
208
208
|
}
|
209
|
+
return false;
|
209
210
|
}
|
210
211
|
});
|
211
212
|
|
@@ -13,9 +13,9 @@
|
|
13
13
|
};
|
14
14
|
|
15
15
|
var methods = {
|
16
|
-
init : function( options ) {
|
16
|
+
init : function( options ) {
|
17
17
|
|
18
|
-
return this.each(function() {
|
18
|
+
return this.each(function() {
|
19
19
|
var targets = $('.has-tip'),
|
20
20
|
tips = $('.tooltip'),
|
21
21
|
tipTemplate = function(target, content) {
|
@@ -50,7 +50,7 @@
|
|
50
50
|
});
|
51
51
|
methods.reposition(target, tip, classes);
|
52
52
|
});
|
53
|
-
|
53
|
+
|
54
54
|
});
|
55
55
|
|
56
56
|
if (Modernizr.touch) {
|
@@ -71,7 +71,7 @@
|
|
71
71
|
targets.attr('title', "");
|
72
72
|
}, function() {
|
73
73
|
$('span[data-id=' + $(this).data('id') + '].tooltip').fadeOut(150);
|
74
|
-
});
|
74
|
+
});
|
75
75
|
}
|
76
76
|
|
77
77
|
});
|
@@ -81,7 +81,7 @@
|
|
81
81
|
nub = tip.children('.nub'),
|
82
82
|
nubHeight = nub.outerHeight(),
|
83
83
|
nubWidth = nub.outerWidth();
|
84
|
-
|
84
|
+
|
85
85
|
function nubPos(nub, top, right, bottom, left) {
|
86
86
|
nub.css({
|
87
87
|
'top' : top,
|
@@ -104,23 +104,22 @@
|
|
104
104
|
nubPos(nub, -nubHeight, 'auto', 'auto', target.offset().left);
|
105
105
|
} else {
|
106
106
|
if (classes.indexOf('tip-top') > -1) {
|
107
|
-
var top = target.offset().top - tip.outerHeight() - nubHeight;
|
108
107
|
tip.css({
|
109
|
-
'top' : top,
|
108
|
+
'top' : target.offset().top - tip.outerHeight() - nubHeight,
|
110
109
|
'left' : target.offset().left,
|
111
110
|
'width' : width
|
112
111
|
}).removeClass('tip-override');
|
113
112
|
nubPos(nub, 'auto', 'auto', -nubHeight, 'auto');
|
114
113
|
} else if (classes.indexOf('tip-left') > -1) {
|
115
114
|
tip.css({
|
116
|
-
'top' : target.offset().top
|
115
|
+
'top' : target.offset().top + (target.outerHeight() / 2) - nubHeight,
|
117
116
|
'left' : target.offset().left - tip.outerWidth() - 10,
|
118
117
|
'width' : width
|
119
118
|
}).removeClass('tip-override');
|
120
119
|
nubPos(nub, (tip.outerHeight() / 2) - (nubHeight / 2), -nubHeight, 'auto', 'auto');
|
121
120
|
} else if (classes.indexOf('tip-right') > -1){
|
122
121
|
tip.css({
|
123
|
-
'top' : target.offset().top
|
122
|
+
'top' : target.offset().top + (target.outerHeight() / 2) - nubHeight,
|
124
123
|
'left' : target.offset().left + target.outerWidth() + 10,
|
125
124
|
'width' : width
|
126
125
|
}).removeClass('tip-override');
|
@@ -138,15 +137,15 @@
|
|
138
137
|
};
|
139
138
|
|
140
139
|
$.fn.tooltips = function( method ) {
|
141
|
-
|
140
|
+
|
142
141
|
if ( methods[method] ) {
|
143
142
|
return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 ));
|
144
143
|
} else if ( typeof method === 'object' || ! method ) {
|
145
144
|
return methods.init.apply( this, arguments );
|
146
145
|
} else {
|
147
146
|
$.error( 'Method ' + method + ' does not exist on jQuery.tooltips' );
|
148
|
-
}
|
149
|
-
|
147
|
+
}
|
148
|
+
|
150
149
|
};
|
151
150
|
})(jQuery);;
|
152
151
|
|
@@ -13,6 +13,7 @@
|
|
13
13
|
input.input-text, textarea { border-right: 1px solid #bbb; border-bottom: 1px solid #bbb; }
|
14
14
|
input.input-text, textarea, select { display: block; margin-bottom: 9px; }
|
15
15
|
label + input.input-text, label + textarea, label + select, label + div.dropdown, select + div.dropdown { margin-top: -9px; }
|
16
|
+
textarea { max-width: 100%; }
|
16
17
|
|
17
18
|
/* Text input and textarea font and padding */
|
18
19
|
input.input-text, textarea { font-size: 13px; padding: 4px 3px 2px; background: #fff; }
|
@@ -68,7 +68,8 @@
|
|
68
68
|
border-spacing: 0;
|
69
69
|
}
|
70
70
|
|
71
|
-
|
71
|
+
sub {vertical-align: sub;}
|
72
|
+
sup {vertical-align: super;}
|
72
73
|
|
73
74
|
body { background: #fff; font-family: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 13px; line-height: 18px; color: #555; position: relative; -webkit-font-smoothing: antialiased; }
|
74
75
|
|
@@ -129,4 +130,10 @@
|
|
129
130
|
.hide { display: none; }
|
130
131
|
.highlight { background: #ff0; }
|
131
132
|
|
133
|
+
#googlemap img, object, embed { max-width: none; }
|
134
|
+
|
135
|
+
#map_canvas embed { max-width: none; }
|
136
|
+
#map_canvas img { max-width: none; }
|
137
|
+
#map_canvas object { max-width: none; }
|
138
|
+
|
132
139
|
|
@@ -44,7 +44,7 @@
|
|
44
44
|
}
|
45
45
|
|
46
46
|
/* Don't use native buttons on iOS */
|
47
|
-
input[type=
|
47
|
+
input[type=submit].button, button.button { -webkit-appearance: none; }
|
48
48
|
|
49
49
|
/* Hide inner focus effect in Firefox */
|
50
50
|
button::-moz-focus-inner, input[type="reset"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner, input[type="submit"]::-moz-focus-inner, input[type="file"] > input[type="button"]::-moz-focus-inner {
|
@@ -133,11 +133,11 @@
|
|
133
133
|
|
134
134
|
/* Correct FF button padding */
|
135
135
|
@-moz-document url-prefix("http://") {
|
136
|
-
input[type=
|
137
|
-
input[type=
|
138
|
-
input[type=
|
139
|
-
input[type=
|
140
|
-
input[type=
|
136
|
+
input[type=submit].button::-moz-focus-inner, button.button::-moz-focus-inner { border: 0; padding: 0; }
|
137
|
+
input[type=submit].tiny.button { padding: 5px 14px 7px; }
|
138
|
+
input[type=submit].small.button { padding: 7px 20px 8px; }
|
139
|
+
input[type=submit].medium.button { padding: 8px 34px 9px; }
|
140
|
+
input[type=submit].large.button { padding: 9px 48px 10px; }
|
141
141
|
}
|
142
142
|
|
143
143
|
|
@@ -196,7 +196,8 @@
|
|
196
196
|
.nice.tabs.vertical dd:first-child a.active { margin: 0; }
|
197
197
|
|
198
198
|
ul.tabs-content { margin: 0; display: block; }
|
199
|
-
ul.tabs-content>li { display:none; }
|
199
|
+
ul.tabs-content>li { display: none; }
|
200
|
+
.no-js ul.tabs-content>li { display: block; }
|
200
201
|
ul.tabs-content>li.active { display: block; }
|
201
202
|
|
202
203
|
dl.contained, dl.nice.contained { margin-bottom: 0; }
|
@@ -279,39 +280,13 @@
|
|
279
280
|
/* --------------------------------------------------
|
280
281
|
Sub Navs
|
281
282
|
http://www.zurb.com/article/292/how-to-create-simple-and-effective-sub-na
|
282
|
-
|
283
283
|
-------------------------------------------------- */
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
padding-top: 4px;
|
291
|
-
}
|
292
|
-
|
293
|
-
dl.sub-nav dt, dl.sub-nav dd {
|
294
|
-
float: left;
|
295
|
-
display: inline;
|
296
|
-
margin-left: 9px;
|
297
|
-
margin-bottom: 4px;
|
298
|
-
}
|
299
|
-
|
300
|
-
dl.sub-nav dt {
|
301
|
-
color: #999;
|
302
|
-
font-weight: normal;
|
303
|
-
}
|
304
|
-
|
305
|
-
dl.sub-nav dd a {
|
306
|
-
text-decoration: none;
|
307
|
-
-webkit-border-radius: 12px;
|
308
|
-
-moz-border-radius: 12px;
|
309
|
-
}
|
310
|
-
dl.sub-nav dd.active a {
|
311
|
-
background: #00A6FC;
|
312
|
-
color: #fff;
|
313
|
-
padding: 3px 9px;
|
314
|
-
}
|
284
|
+
|
285
|
+
dl.sub-nav { display: block; width: auto; overflow: hidden; margin: -4px 0 18px -9px; padding-top: 4px; }
|
286
|
+
dl.sub-nav dt, dl.sub-nav dd { float: left; display: inline; margin-left: 9px; margin-bottom: 4px; }
|
287
|
+
dl.sub-nav dt { color: #999; font-weight: normal; }
|
288
|
+
dl.sub-nav dd a { text-decoration: none; border-radius: 12px; }
|
289
|
+
dl.sub-nav dd.active a { background: #00A6FC; color: #fff; padding: 3px 9px; }
|
315
290
|
|
316
291
|
/* --------------------------------------------------
|
317
292
|
Video
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zurb-foundation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.0.
|
4
|
+
version: 2.2.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-03-05 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70290791276940 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70290791276940
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: jquery-rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &70290791276260 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '1.0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70290791276260
|
36
36
|
description: An easy to use, powerful, and flexible framework for building prototypes
|
37
37
|
and production code on any kind of device.
|
38
38
|
email:
|
@@ -105,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
segments:
|
107
107
|
- 0
|
108
|
-
hash: -
|
108
|
+
hash: -2580547679821653579
|
109
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
110
|
none: false
|
111
111
|
requirements:
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
version: '0'
|
115
115
|
segments:
|
116
116
|
- 0
|
117
|
-
hash: -
|
117
|
+
hash: -2580547679821653579
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project: foundation
|
120
120
|
rubygems_version: 1.8.10
|