Skip to content

Commit 87f78a2

Browse files
author
Mark Hayes
committedDec 19, 2011
bumped to version 2.1.4 which includes source ordering, video embed scaling, nav bar stuff and general fixes
1 parent d7798e5 commit 87f78a2

18 files changed

+131
-41
lines changed
 

‎lib/foundation/version.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module Foundation
2-
COMMIT = "65920cc5c72c1dc82902e29afd9fa97ab5982535"
3-
VERSION = "2.1.3.1"
2+
COMMIT = "46e71bf06a61fdb8adf3d41aa754a93c61757c59"
3+
VERSION = "2.1.4"
44
end
Loading
Loading
Loading
-40 Bytes
Loading
Loading
Loading
-157 Bytes
Loading
-179 Bytes
Loading
Loading
Loading
Loading
Loading

‎vendor/assets/javascripts/foundation/app.js

+31-22
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ $(document).ready(function () {
2929
if (window.location.hash) {
3030
activateTab($('a[href="' + window.location.hash + '"]'));
3131
}
32-
32+
3333
/* ALERT BOXES ------------ */
34-
$(".alert-box").delegate("a.close", "click", function() {
35-
$(this).closest(".alert-box").fadeOut(function(){
34+
$(".alert-box").delegate("a.close", "click", function(event) {
35+
event.preventDefault();
36+
$(this).closest(".alert-box").fadeOut(function(event){
3637
$(this).remove();
3738
});
3839
});
@@ -43,40 +44,48 @@ $(document).ready(function () {
4344

4445
$('input, textarea').placeholder();
4546

47+
48+
49+
/* UNCOMMENT THE LINE YOU WANT BELOW IF YOU WANT IE6/7/8 SUPPORT AND ARE USING .block-grids */
50+
// $('.block-grid.two-up>li:nth-child(2n+1)').css({clear: 'left'});
51+
// $('.block-grid.three-up>li:nth-child(3n+1)').css({clear: 'left'});
52+
// $('.block-grid.four-up>li:nth-child(4n+1)').css({clear: 'left'});
53+
// $('.block-grid.five-up>li:nth-child(5n+1)').css({clear: 'left'});
54+
55+
56+
4657
/* DROPDOWN NAV ------------- */
47-
/*
58+
59+
var currentFoundationDropdown = null;
4860
$('.nav-bar li a, .nav-bar li a:after').each(function() {
4961
$(this).data('clicks', 0);
5062
});
51-
$('.nav-bar li a, .nav-bar li a:after').bind('touchend click', function(e){
52-
e.stopPropagation();
63+
$('.nav-bar li a, .nav-bar li a:after').live('click', function(e) {
5364
e.preventDefault();
54-
var f = $(this).siblings('.flyout');
65+
if (currentFoundationDropdown !== $(this).index() || currentFoundationDropdown === null) {
66+
$(this).data('clicks', 0);
67+
currentFoundationDropdown = $(this).index();
68+
}
5569
$(this).data('clicks', ($(this).data('clicks') + 1));
56-
if (!f.is(':visible') && f.length > 0) {
70+
var f = $(this).siblings('.flyout');
71+
if (!f.is(':visible') && $(this).parent('.has-flyout').length > 1) {
5772
$('.nav-bar li .flyout').hide();
5873
f.show();
59-
}
60-
});
61-
$('.nav-bar li a, .nav-bar li a:after').bind(' touchend click', function(e) {
62-
e.stopPropagation();
63-
e.preventDefault();
64-
if ($(this).data('clicks') > 1) {
74+
} else if (($(this).data('clicks') > 1) || ($(this).parent('.has-flyout').length < 1)) {
6575
window.location = $(this).attr('href');
6676
}
6777
});
68-
$('.nav-bar').bind('touchend click', function(e) {
78+
$('.nav-bar').live('click', function(e) {
6979
e.stopPropagation();
70-
if (!$(e.target).parents('.nav-bar li .flyout') || $(e.target) != $('.nav-bar li .flyout')) {
80+
if ($(e.target).parents().is('.flyout') || $(e.target).is('.flyout')) {
7181
e.preventDefault();
7282
}
7383
});
74-
$('body').bind('touchend', function(e) {
75-
if (!$(e.target).parents('.nav-bar li .flyout') || $(e.target) != $('.nav-bar li .flyout')) {
76-
$('.nav-bar li .flyout').hide();
77-
}
78-
});
79-
*/
84+
// $('body').bind('touchend', function(e) {
85+
// if (!$(e.target).parents().is('.nav-bar') || !$(e.target).is('.nav-bar')) {
86+
// $('.nav-bar li .flyout').is(':visible').hide();
87+
// }
88+
// });
8089

8190
/* DISABLED BUTTONS ------------- */
8291
/* Gives elements with a class of 'disabled' a return: false; */

‎vendor/assets/stylesheets/foundation/grid.css.scss

+32
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,29 @@
5555
.row .offset-by-ten:first-child { margin-left: 87%; }
5656
.row .offset-by-eleven:first-child { margin-left: 95.7%; }
5757

58+
/* Source Ordering */
59+
.push-two { left: 17.4% }
60+
.push-three { left: 26.1%; }
61+
.push-four { left: 34.8%; }
62+
.push-five { left: 43.5%; }
63+
.push-six { left: 52.2%; }
64+
.push-seven { left: 60.9%; }
65+
.push-eight { left: 69.6%; }
66+
.push-nine { left: 78.3%; }
67+
.push-ten { left: 87%; }
68+
69+
.pull-two { right: 17.4% }
70+
.pull-three { right: 26.1%; }
71+
.pull-four { right: 34.8%; }
72+
.pull-five { right: 43.5%; }
73+
.pull-six { right: 52.2%; }
74+
.pull-seven { right: 60.9%; }
75+
.pull-eight { right: 69.6%; }
76+
.pull-nine { right: 78.3%; }
77+
.pull-ten { right: 87%; }
78+
79+
80+
5881
img, object, embed { max-width: 100%; height: auto; }
5982
img { -ms-interpolation-mode: bicubic; }
6083

@@ -73,22 +96,31 @@
7396
for repeating blocks of content. Add 'mobile' to
7497
them to switch them just like the layout grid
7598
(one item per line) on phones
99+
100+
For IE7/8 compatibility block-grid items need to be
101+
the same height. You can optionally uncomment the
102+
lines below to support arbitrary height, but know
103+
that IE7/8 do not support :nth-child.
76104
-------------------------------------------------- */
77105

78106
.block-grid { display: block; overflow: hidden; }
79107
.block-grid>li { display: block; height: auto; float: left; }
80108

81109
.block-grid.two-up { margin-left: -4% }
82110
.block-grid.two-up>li { margin-left: 4%; width: 46%; }
111+
/* .block-grid.two-up>li:nth-child(2n+1) {clear: left;} */
83112

84113
.block-grid.three-up { margin-left: -2% }
85114
.block-grid.three-up>li { margin-left: 2%; width: 31.3%; }
115+
/* .block-grid.three-up>li:nth-child(3n+1) {clear: left;} */
86116

87117
.block-grid.four-up { margin-left: -2% }
88118
.block-grid.four-up>li { margin-left: 2%; width: 23%; }
119+
/* .block-grid.four-up>li:nth-child(4n+1) {clear: left;} */
89120

90121
.block-grid.five-up { margin-left: -1.5% }
91122
.block-grid.five-up>li { margin-left: 1.5%; width: 18.5%; }
123+
/* .block-grid.five-up>li:nth-child(5n+1) {clear: left;} */
92124

93125

94126

‎vendor/assets/stylesheets/foundation/mobile.css.scss

+21-4
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,30 @@
3131
.row .row .column, .row .row .columns { padding: 0; }
3232
.column, .columns { width: auto !important; float: none; margin-left: 0; margin-right: 0; }
3333
.column:last-child, .columns:last-child { margin-right: 0; }
34+
3435
.offset-by-one, .offset-by-two, .offset-by-three, .offset-by-four, .offset-by-five, .offset-by-six, .offset-by-seven, .offset-by-eight, .offset-by-nine, .offset-by-ten, .offset-by-eleven, .centered { margin-left: 0 !important; }
3536

37+
.push-two, .push-three, .push-four, .push-five, .push-six, .push-seven, .push-eight, .push-nine, .push-ten { left: auto; }
38+
.pull-two, .pull-three, .pull-four, .pull-five, .pull-six, .pull-seven, .pull-eight, .pull-nine, .pull-ten { right: auto; }
3639

3740
/* Mobile 4-column Grid */
3841
.row .phone-one.column:first-child, .row .phone-two.column:first-child, .row .phone-three.column:first-child, .row .phone-four.column:first-child, .row .phone-one.columns:first-child, .row .phone-two.columns:first-child, .row .phone-three.columns:first-child, .row .phone-four.columns:first-child { margin-left: 0; }
3942

4043
.row .phone-one.column, .row .phone-two.column, .row .phone-three.column, .row .phone-four.column,
4144
.row .phone-one.columns, .row .phone-two.columns, .row .phone-three.columns, .row .phone-four.columns { margin-left: 4.4%; float: left; min-height: 1px; position: relative; padding: 0; }
4245

43-
.row .phone-one.columns { width: 21.68% !important; }
44-
.row .phone-two.columns { width: 47.8% !important; }
45-
.row .phone-three.columns { width: 73.9% !important; }
46-
.row .phone-four.columns { width: 100% !important; }
46+
.row .phone-one.columns { width: 21.68% !important; }
47+
.row .phone-two.columns { width: 47.8% !important; }
48+
.row .phone-three.columns { width: 73.9% !important; }
49+
.row .phone-four.columns { width: 100% !important; }
50+
51+
.row .columns.push-one-phone { left: 26.08%; }
52+
.row .columns.push-two-phone { left: 52.2% }
53+
.row .columns.push-three-phone { left: 78.3% }
54+
55+
.row .columns.pull-one-phone { right: 26.08% }
56+
.row .columns.pull-two-phone { right: 52.2% }
57+
.row .columns.pull-three-phone { right: 78.3%; }
4758

4859

4960
}
@@ -178,5 +189,11 @@
178189
.flyout.small, .flyout.large { width: auto; }
179190
.flyout p:last-child { margin-bottom: 18px; }
180191
}
192+
193+
/* Nav Bar */
194+
195+
@media only screen and (max-device-width: 800px), only screen and (device-width: 1024px) and (device-height: 600px), only screen and (width: 1280px) and (orientation: landscape), only screen and (device-width: 800px), only screen and (max-width: 767px) {
196+
.video { padding-top: 0; }
197+
}
181198

182199

‎vendor/assets/stylesheets/foundation/typography.css.scss

+16-13
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
h1 small, h2 small, h3 small, h4 small, h5 small { color: #777; }
2626

27-
/* Blockquotes */
27+
/* Blockquotes */
2828
blockquote, blockquote p { line-height: 20px; color: #777; }
2929
blockquote { margin: 0 0 18px; padding: 9px 20px 0 19px; border-left: 1px solid #ddd; }
3030
blockquote cite { display: block; font-size: 12px; font-size: 1.2rem; color: #555; }
@@ -42,19 +42,22 @@
4242
* Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
4343
* Credit to Paul Irish and HTML5 Boilerplate (html5boilerplate.com)
4444
*/
45+
.print-only { display: none !important; }
4546
@media print {
46-
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
47-
-ms-filter: none !important; } /* Black prints faster: sanbeiji.com/archives/953 */
48-
p a, p a:visited { color: #444 !important; text-decoration: underline; }
49-
p a[href]:after { content: " (" attr(href) ")"; }
50-
abbr[title]:after { content: " (" attr(title) ")"; }
51-
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
52-
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
53-
thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
54-
tr, img { page-break-inside: avoid; }
55-
@page { margin: 0.5cm; }
56-
p, h2, h3 { orphans: 3; widows: 3; }
57-
h2, h3{ page-break-after: avoid; }
47+
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
48+
-ms-filter: none !important; } /* Black prints faster: sanbeiji.com/archives/953 */
49+
p a, p a:visited { color: #444 !important; text-decoration: underline; }
50+
p a[href]:after { content: " (" attr(href) ")"; }
51+
abbr[title]:after { content: " (" attr(title) ")"; }
52+
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } /* Don't show links for images, or javascript/internal links */
53+
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
54+
thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
55+
tr, img { page-break-inside: avoid; }
56+
@page { margin: 0.5cm; }
57+
p, h2, h3 { orphans: 3; widows: 3; }
58+
h2, h3{ page-break-after: avoid; }
59+
.hide-on-print { display: none !important; }
60+
.print-only { display: block !important; }
5861
}
5962

6063

‎vendor/assets/stylesheets/foundation/ui.css.scss

+29
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
:: Lists
1414
:: Panels
1515
:: Nav
16+
:: Video
1617
:: Microformats
1718
*/
1819

@@ -216,6 +217,34 @@
216217
.nav-bar>li:hover .flyout { display: block; }
217218

218219

220+
/* --------------------------------------------------
221+
Video
222+
Mad props to http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
223+
-------------------------------------------------- */
224+
225+
.flex-video {
226+
position: relative;
227+
padding-top: 25px;
228+
padding-bottom: 67.5%;
229+
height: 0;
230+
margin-bottom: 16px;
231+
overflow: hidden;
232+
}
233+
234+
.flex-video.widescreen { padding-bottom: 57.25%; }
235+
.flex-video.vimeo { padding-top: 0; }
236+
237+
.flex-video iframe,
238+
.flex-video object,
239+
.flex-video embed {
240+
position: absolute;
241+
top: 0;
242+
left: 0;
243+
width: 100%;
244+
height: 100%;
245+
}
246+
247+
219248

220249
/* --------------------------------------------------
221250
Microformats

0 commit comments

Comments
 (0)
Failed to load comments.