zurb-foundation 3.2.0.rc1 → 3.2.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -3,6 +3,32 @@ We'll keep you up to date with what we've released so you at least have a gist o
3
3
 
4
4
  ---
5
5
 
6
+ ### **3.2**- October 26, 2012
7
+ With this update we've revamped our documentation to be more organized and explain details regarding Scss, Compass and Javascripts.
8
+
9
+ The updates to Foundation itself are as follows:
10
+ * Added [Magellan](http://foundation.zurb.com/docs/magellan.php), a plugin for building design agnostic sticky navs that know where you are on the page.
11
+ * Added [Joyride](http://foundation.zurb.com/docs/joyride.php), our plugin for creating tours of your website or app.
12
+ * Added [Clearing](http://foundation.zurb.com/docs/clearing.php), our new responsive image gallery lightbox plugin.
13
+ * Cleaned up Orbit a bit. We now use opacity on each slide so you don't have stacking problems or different image size problems. You can now optionally stack slides on mobile. Orbit can now be swipable on mobile as well.
14
+ * Updated Reveal
15
+ * Updated index files to use defined header and footer structure
16
+ * Cleaned up some Compass included
17
+ * RTL for ui and navbar.
18
+ * Tabs can now use unordered lists or definition lists, replacing the definition title with an li.section-title.
19
+ * Added definition list styles.
20
+ * Added mobile-#-up classes to use in conjunction with regular block-grid classes for a different mobile grid.
21
+ * Updated block grids to be really flexible and customizable based on a variable.
22
+ * Added better responsive styling for tooltips.
23
+ * Separated all media queries into their own file for easy droppping.
24
+ * Updated modular scale to use new functions, doesn't effect end-users.
25
+ * Updated visibility classes to use inherit instead of block to accomodate for spans.
26
+ * Removed HTML5 Shiv from header since its included in modernizr.
27
+ * Added [pricing tables](http://foundation.zurb.com/docs/elements.php#pricing-tables) UI element
28
+ * Added many new Scss variables to control styling for things like: topbar, clearing, joyride, pricint tables, etc.
29
+ * Bug fixes for Topbar.
30
+ * Added 5 [HTML templates](http://foundation.zurb.com/templates.php) to the add-ons section.
31
+
6
32
  ### 3.1.1- September 19, 2012
7
33
  Updating Top Bar navigation implementation pattern to wrap `.contain-to-grid` and/or `.fixed` around the `nav` element to prevent horizontal scroll bars when using `.contain-to-grid`. Updated the topBar breakpoint option so users only need to update the Scss variable.
8
34
 
@@ -1,3 +1,3 @@
1
1
  module Foundation
2
- VERSION = "3.2.0.rc1"
2
+ VERSION = "3.2.0.rc2"
3
3
  end
@@ -201,6 +201,7 @@ $orbitSlideNumFontColor: #fff !default;
201
201
  $orbitSlideNumPadding: 5px !default;
202
202
 
203
203
  // Clearing Settings
204
+
204
205
  $clearingBg: rgba(0,0,0,0.8) !default;
205
206
  $clearingOldBrowserBg: rgb(0,0,0) !default;
206
207
  $clearingCaptionBg: rgba(0,0,0,0.7) !default;
@@ -209,14 +210,34 @@ $clearingCaptionFontColor: #fff !default;
209
210
  $clearingCloseColor: #fff !default;
210
211
  $clearingArrowColor: #fff !default;
211
212
  $clearingArrowSize: 16px !default;
212
- $clearingCarouselOldBrowserBg: rgb(0,0,0) !default;
213
213
  $clearingCarouselBg: rgba(0,0,0,0.75) !default;
214
+ $clearingCarouselOldBrowserBg: rgb(0,0,0) !default;
214
215
  $clearingCarouselHeight: 150px !default;
215
- $clearingCarouselThumbHeight: 150px !default;
216
- $clearingCarouselThumbWidth: 175px !default;
216
+ $clearingActiveImgHeight: 75% !default;
217
+ $clearingCarouselThumbWidth: 175px;
217
218
  $clearingCarouselThumbActiveBorder: 4px solid rgb(255,255,255) !default;
218
- $clearingImgOldBrowserBg: rgb(0,0,0) !default;
219
219
  $clearingImgBg: rgba(0,0,0,0.75) !default;
220
+ $clearingImgOldBrowserBg: rgb(0,0,0) !default;
221
+
222
+ // Joyride Settings
223
+
224
+ $tipBg: rgba(0,0,0,0.8) !default;
225
+ $tipBgIE8: #000 !default;
226
+ $tipFontColor: #fff !default;
227
+ $tipHeaderWeight: bold !default;
228
+ $tipDefaultWidth: 300px !default;
229
+ $tipBorderRadius: 4px !default;
230
+ $tipPadding: 18px 20px 24px !default;
231
+ $tipNubSize: 14px !default;
232
+ $tipFontSize: 14px !default;
233
+ $tipTimerWidth: 50px !default;
234
+ $tipTimerHeight: 3px !default;
235
+ $tipTimerBorder: solid 1px #555 !default;
236
+ $tipTimerColor: #666 !default;
237
+ $tipCloseColor: #777 !default;
238
+ $tipCloseSize: 20px !default;
239
+ $tipCloseWeight: normal !default;
240
+ $tipScreenFill: rgba(0,0,0,0.5) !default;
220
241
 
221
242
  // Off Canvas Width Settings
222
243
 
@@ -5,14 +5,14 @@
5
5
  .clearing-close { display: block; }
6
6
  }
7
7
 
8
- .clearing-container { margin: 3% 5%; height: 90%; overflow: hidden; }
8
+ .clearing-container { height: 100%; overflow: hidden; }
9
9
 
10
- .visible-img { height: 75%; position: relative;
10
+ .visible-img { height: $clearingActiveImgHeight; position: relative;
11
11
  img { position: absolute; left: 50%; top: 50%; margin-left: -50%; max-height: 100%; max-width: 100%; }
12
- p { margin-bottom: 0; text-align: center; position: absolute; bottom: 0; background: $clearingCaptionOldBrowserBg; background: $clearingCaptionBg; width: 100%; padding: 10px 100px; }
12
+ .clearing-caption { color: $clearingCaptionFontColor; margin-bottom: 0; text-align: center; position: absolute; bottom: 0; background: $clearingCaptionOldBrowserBg; background: $clearingCaptionBg; width: 100%; padding: 10px 100px; }
13
13
  }
14
14
 
15
- .clearing-close { position: absolute; top: 10px; right: 20px; font-size: 30px; line-height: 1; color: $clearingCloseColor; display: none;
15
+ .clearing-close { z-index: 99; position: absolute; top: 10px; right: 20px; font-size: 30px; line-height: 1; color: $clearingCloseColor; display: none;
16
16
  &:hover { color: #ccc; }
17
17
  }
18
18
  .clearing-main-left, .clearing-main-right { position: absolute; top: 50%; margin-top: -16px; }
@@ -21,25 +21,21 @@
21
21
  .clearing-main-left { left: 10px; @include cssTriangle($clearingArrowSize,$clearingArrowColor,right); }
22
22
  .clearing-main-right { right: 10px; @include cssTriangle($clearingArrowSize,$clearingArrowColor,left); }
23
23
 
24
- .clearing-caption { color: $clearingCaptionFontColor; }
24
+ .block-grid.three-up > li:nth-child(3n+1) { clear: none; }
25
25
 
26
- .clearing-opened { height: 20%; margin-bottom: 0;
27
- li { width: 20% !important; float: left;
28
- a { display: block; }
29
- }
26
+ ul[data-clearing] li { display: block;
27
+ &.clearing-feature ~ li { display: none; }
30
28
  }
31
29
 
32
- .block-grid.three-up > li:nth-child(3n+1) { clear: none; }
33
-
34
30
  .clearing-assembled .clearing-container {
35
31
  .carousel { background: $clearingCarouselOldBrowserBg; background: $clearingCarouselBg; height: $clearingCarouselHeight; margin-top: 5px; }
36
32
  .visible-img { background: $clearingImgOldBrowserBg; background: $clearingImgBg; overflow: hidden; }
37
- ul[data-clearing] { width: 200%; margin-left: 0; position: relative; left: 0;
38
- li { width: $clearingCarouselThumbWidth; height: $clearingCarouselThumbHeight; padding: 0; float: left; overflow: hidden; background: #222; margin-right: 1px; position: relative;
33
+ ul[data-clearing] { width: 200%; height: 100%; margin-left: 0; position: relative; left: 0;
34
+ li { display: block; width: $clearingCarouselThumbWidth; height: inherit; padding: 0; float: left; overflow: hidden; background: #222; margin-right: 1px; position: relative;
39
35
  &.fix-height {
40
- img { height: 100%; max-width: none; }
36
+ img { min-height: 100%; height: 100%; max-width: none; }
41
37
  }
42
- img { cursor: pointer !important; min-width: 100% !important; vertical-align: middle; }
38
+ img { cursor: pointer !important; min-width: 100% !important; }
43
39
  &.visible { border-top: $clearingCarouselThumbActiveBorder; }
44
40
  }
45
41
  }
@@ -1,224 +1,33 @@
1
- body {
2
- position: relative;
3
- }
4
-
5
1
  #joyRideTipContent { display: none; }
6
2
 
7
3
  /* Default styles for the container */
8
- .joyride-tip-guide {
9
- position: absolute;
10
- background: #000;
11
- background: rgba(0,0,0,0.8);
12
- display: none;
13
- color: #fff;
14
- width: 300px;
15
- z-index: 101;
16
- top: 0; /* keeps the page from scrolling when calculating position */
17
- left: 0;
18
- font-family: "HelveticaNeue", "Helvetica Neue", "Helvetica", Helvetica, Arial, Lucida, sans-serif;
19
- font-weight: normal;
20
- -moz-border-radius: 4px;
21
- -webkit-border-radius: 4px;
22
- border-radius: 4px;
23
- }
24
-
25
- .joyride-content-wrapper {
26
- padding: 10px 10px 15px 15px;
27
- }
28
-
29
- /* Mobile */
30
- @media only screen and (max-width: 767px) {
31
- .joyride-tip-guide {
32
- width: 95% !important;
33
- -moz-border-radius: 0;
34
- -webkit-border-radius: 0;
35
- border-radius: 0;
36
- left: 2.5% !important;
37
- }
38
- .joyride-tip-guide-wrapper {
39
- width: 100%;
40
- }
41
- }
42
-
4
+ .joyride-tip-guide { display: none; position: absolute; background: $tipBgIE8; background: $tipBg; color: $tipFontColor; width: $tipDefaultWidth; z-index: 101; top: 0; left: 0; font-family: inherit; font-weight: normal; @include border-radius($tipBorderRadius); }
5
+ .joyride-content-wrapper { padding: $tipPadding; }
43
6
 
44
7
  /* Add a little css triangle pip, older browser just miss out on the fanciness of it */
45
- .joyride-tip-guide span.joyride-nub {
46
- display: block;
47
- position: absolute;
48
- left: 22px;
49
- width: 0;
50
- height: 0;
51
- border: solid 14px;
52
- border: solid 14px;
53
- }
54
-
55
- .joyride-tip-guide span.joyride-nub.top {
56
- /*
57
- IE7/IE8 Don't support rgba so we set the fallback
58
- border color here. However, IE7/IE8 are also buggy
59
- in that the fallback color doesn't work for
60
- border-bottom-color so here we set the border-color
61
- and override the top,left,right colors below.
62
- */
63
- border-color: #000;
64
- border-color: rgba(0,0,0,0.8);
65
- border-top-color: transparent !important;
66
- border-left-color: transparent !important;
67
- border-right-color: transparent !important;
68
- top: -28px;
69
- bottom: none;
70
- }
71
-
72
- .joyride-tip-guide span.joyride-nub.bottom {
73
- /*
74
- IE7/IE8 Don't support rgba so we set the fallback
75
- border color here. However, IE7/IE8 are also buggy
76
- in that the fallback color doesn't work for
77
- border-top-color so here we set the border-color
78
- and override the bottom,left,right colors below.
79
- */
80
- border-color: #000;
81
- border-color: rgba(0,0,0,0.8) !important;
82
- border-bottom-color: transparent !important;
83
- border-left-color: transparent !important;
84
- border-right-color: transparent !important;
85
- bottom: -28px;
86
- bottom: none;
87
- }
88
-
89
- .joyride-tip-guide span.joyride-nub.right {
90
- border-color: #000;
91
- border-color: rgba(0,0,0,0.8) !important;
92
- border-top-color: transparent !important;
93
- border-right-color: transparent !important;
94
- border-bottom-color: transparent !important;
95
- top: 22px;
96
- bottom: none;
97
- left: auto;
98
- right: -28px;
99
- }
100
-
101
- .joyride-tip-guide span.joyride-nub.left {
102
- border-color: #000;
103
- border-color: rgba(0,0,0,0.8) !important;
104
- border-top-color: transparent !important;
105
- border-left-color: transparent !important;
106
- border-bottom-color: transparent !important;
107
- top: 22px;
108
- left: -28px;
109
- right: auto;
110
- bottom: none;
8
+ .joyride-tip-guide {
9
+ span.joyride-nub { display: block; position: absolute; left: 22px; width: 0; height: 0; border: solid $tipNubSize;
10
+ &.top { border-color: $tipBgIE8; border-color: $tipBg; border-top-color: transparent !important; border-left-color: transparent !important; border-right-color: transparent !important; top: -($tipNubSize*2); bottom: none; }
11
+ &.bottom { border-color: $tipBgIE8; border-color: $tipBg !important; border-bottom-color: transparent !important; border-left-color: transparent !important; border-right-color: transparent !important; bottom: -($tipNubSize*2); bottom: none; }
12
+ &.right { border-color: $tipBgIE8; border-color: $tipBg !important; border-top-color: transparent !important; border-right-color: transparent !important; border-bottom-color: transparent !important; top: 22px; bottom: none; left: auto; right: -($tipNubSize*2); }
13
+ &.left { border-color: $tipBgIE8; border-color: $tipBg !important; border-top-color: transparent !important; border-left-color: transparent !important; border-bottom-color: transparent !important; top: 22px; left: -($tipNubSize*2); right: auto; bottom: none; }
14
+ }
111
15
  }
112
16
 
113
17
  /* Typography */
114
- .joyride-tip-guide h1,.joyride-tip-guide h2,.joyride-tip-guide h3,.joyride-tip-guide h4,.joyride-tip-guide h5,.joyride-tip-guide h6 {
115
- line-height: 1.25;
116
- margin: 0;
117
- font-weight: bold;
118
- color: #fff;
119
- }
120
- .joyride-tip-guide h1 { font-size: 30px; }
121
- .joyride-tip-guide h2 { font-size: 26px; }
122
- .joyride-tip-guide h3 { font-size: 22px; }
123
- .joyride-tip-guide h4 { font-size: 18px; }
124
- .joyride-tip-guide h5 { font-size: 16px; }
125
- .joyride-tip-guide h6 { font-size: 14px; }
126
- .joyride-tip-guide p {
127
- margin: 0 0 18px 0;
128
- font-size: 14px;
129
- line-height: 18px;
130
- }
131
- .joyride-tip-guide a {
132
- color: rgb(255,255,255);
133
- text-decoration: none;
134
- border-bottom: dotted 1px rgba(255,255,255,0.6);
135
- }
136
- .joyride-tip-guide a:hover {
137
- color: rgba(255,255,255,0.8);
138
- border-bottom: none;
139
- }
18
+ .joyride-tip-guide h1,
19
+ .joyride-tip-guide h2,
20
+ .joyride-tip-guide h3,
21
+ .joyride-tip-guide h4,
22
+ .joyride-tip-guide h5,
23
+ .joyride-tip-guide h6 { line-height: 1.25; margin: 0; font-weight: $tipHeaderWeight; color: $tipFontColor }
24
+ .joyride-tip-guide p { margin: 0 0 18px 0; font-size: $tipFontSize; line-height: 1.3; }
140
25
 
141
- /* Button Style */
142
- .joyride-tip-guide .joyride-next-tip {
143
- width: auto;
144
- padding: 6px 18px 4px;
145
- font-size: 13px;
146
- text-decoration: none;
147
- color: rgb(255,255,255);
148
- border: solid 1px rgb(0,60,180);
149
- background: rgb(0,99,255);
150
- background: -moz-linear-gradient(top, rgb(0,99,255) 0%, rgb(0,85,214) 100%);
151
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(0,99,255)), color-stop(100%,rgb(0,85,214)));
152
- background: -webkit-linear-gradient(top, rgb(0,99,255) 0%,rgb(0,85,214) 100%);
153
- background: -o-linear-gradient(top, rgb(0,99,255) 0%,rgb(0,85,214) 100%);
154
- background: -ms-linear-gradient(top, rgb(0,99,255) 0%,rgb(0,85,214) 100%);
155
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0063ff', endColorstr='#0055d6',GradientType=0 );
156
- background: linear-gradient(top, rgb(0,99,255) 0%,rgb(0,85,214) 100%);
157
- text-shadow: 0 -1px 0 rgba(0,0,0,0.5);
158
- -webkit-border-radius: 2px;
159
- -moz-border-radius: 2px;
160
- border-radius: 2px;
161
- -webkit-box-shadow: 0px 1px 0px rgba(255,255,255,0.3) inset;
162
- -moz-box-shadow: 0px 1px 0px rgba(255,255,255,0.3) inset;
163
- box-shadow: 0px 1px 0px rgba(255,255,255,0.3) inset;
164
- }
26
+ .joyride-timer-indicator-wrap { width: $tipTimerWidth; height: $tipTimerHeight; border: $tipTimerBorder; position: absolute; right: 17px; bottom: 16px; }
27
+ .joyride-timer-indicator { display: block; width: 0; height: inherit; background: $tipTimerColor; }
165
28
 
166
- .joyride-next-tip:hover {
167
- color: rgb(255,255,255) !important;
168
- border: solid 1px rgb(0,60,180) !important;
169
- background: rgb(43,128,255);
170
- background: -moz-linear-gradient(top, rgb(43,128,255) 0%, rgb(29,102,211) 100%);
171
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(43,128,255)), color-stop(100%,rgb(29,102,211)));
172
- background: -webkit-linear-gradient(top, rgb(43,128,255) 0%,rgb(29,102,211) 100%);
173
- background: -o-linear-gradient(top, rgb(43,128,255) 0%,rgb(29,102,211) 100%);
174
- background: -ms-linear-gradient(top, rgb(43,128,255) 0%,rgb(29,102,211) 100%);
175
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2b80ff', endColorstr='#1d66d3',GradientType=0 );
176
- background: linear-gradient(top, rgb(43,128,255) 0%,rgb(29,102,211) 100%);
29
+ .joyride-close-tip { position: absolute; right: 10px; top: 10px; color: $tipCloseColor !important; text-decoration: none; font-size: $tipCloseSize; font-weight: $tipCloseWeight; line-height: .5 !important;
30
+ &:hover { color: #eee !important; }
177
31
  }
178
32
 
179
- .joyride-timer-indicator-wrap {
180
- width: 50px;
181
- height: 3px;
182
- border: solid 1px rgba(255,255,255,0.1);
183
- position: absolute;
184
- right: 17px;
185
- bottom: 16px;
186
- }
187
- .joyride-timer-indicator {
188
- display: block;
189
- width: 0;
190
- height: inherit;
191
- background: rgba(255,255,255,0.25);
192
- }
193
-
194
- .joyride-close-tip {
195
- position: absolute;
196
- right: 10px;
197
- top: 10px;
198
- color: rgba(255,255,255,0.4) !important;
199
- text-decoration: none;
200
- font-family: Verdana, sans-serif;
201
- font-size: 10px;
202
- font-weight: bold;
203
- border-bottom: none !important;
204
- }
205
-
206
- .joyride-close-tip:hover {
207
- color: rgba(255,255,255,0.9) !important;
208
- }
209
-
210
- .joyride-modal-bg {
211
- position: fixed;
212
- height: 100%;
213
- width: 100%;
214
- background: rgb(0,0,0);
215
- background: rgba(0,0,0, 0.5);
216
- -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
217
- filter: alpha(opacity=50);
218
- opacity: 0.5;
219
- z-index: 100;
220
- display: none;
221
- top: 0;
222
- left: 0;
223
- cursor: pointer;
224
- }
33
+ .joyride-modal-bg { position: fixed; height: 100%; width: 100%; background: $tipScreenFill; z-index: 100; display: none; top: 0; left: 0; cursor: pointer; }
@@ -154,12 +154,12 @@
154
154
  }
155
155
  .clearing-main-left {
156
156
  left: 0;
157
- &:before { left: 5px; @include cssTriangle(16px,#fff,right); }
157
+ &:before { left: 5px; @include cssTriangle($clearingArrowSize,$clearingArrowColor,right); }
158
158
  }
159
159
  .clearing-main-right {
160
160
  height: 100%;
161
161
  right: 0;
162
- &:before { @include cssTriangle(16px,#fff,left); }
162
+ &:before { @include cssTriangle($clearingArrowSize,$clearingArrowColor,left); }
163
163
  }
164
164
 
165
165
  }
@@ -308,6 +308,11 @@
308
308
  ul[data-clearing] { display: none; }
309
309
  }
310
310
 
311
+ /* Joyride --- */
312
+ /* */
313
+ .joyride-tip-guide { width: 95% !important; left: 2.5% !important; @include border-radius($tipBorderRadius); }
314
+ .joyride-tip-guide-wrapper { width: 100%; }
315
+
311
316
  /* Tabs --- */
312
317
  /* */
313
318
  .tabs.mobile { width: auto; margin: 20px -20px 40px; border-bottom: solid 1px #ccc; height: auto; margin: 20px -15px 0px -15px;
@@ -39,7 +39,7 @@
39
39
  &.expanded { height: inherit; }
40
40
 
41
41
  /* topbar global <ul> styles */
42
- ul { display: inline; height: $topBarHeight; line-height: $topBarHeight; list-style: none;
42
+ ul { margin-left: 0; display: inline; height: $topBarHeight; line-height: $topBarHeight; list-style: none;
43
43
 
44
44
  /* Main Navigation links style */
45
45
  &>li { float: left;
@@ -231,7 +231,7 @@
231
231
  table tfoot tr th,
232
232
  table tbody tr td,
233
233
  table tr td,
234
- table tfoot tr td { font-size: ms(0); line-height: 18px; text-align: #{$defaultFloat}; }
234
+ table tfoot tr td { display: table-cell; font-size: ms(0); line-height: 18px; text-align: #{$defaultFloat}; }
235
235
  table thead tr th,
236
236
  table tfoot tr td { padding: 8px 10px 9px; font-size: ms(0); font-weight: bold; color: #222; }
237
237
  table thead tr th:first-child, table tfoot tr td:first-child { border-#{$defaultFloat}: none; }
@@ -277,7 +277,7 @@
277
277
  }
278
278
 
279
279
  /* Pricing Tables ---------------------- */
280
- .pricing-table { border: $priceTableBorder; margin-left: 0;
280
+ .pricing-table { border: $priceTableBorder; margin-left: 0; margin-bottom: 20px;
281
281
  & * { list-style: none; line-height: 1; }
282
282
  .title { background-color: $priceTitleBgColor; padding: $priceTitlePadding; text-align: $priceTitleAlign; color: $priceTitleColor; font-weight: $priceTitleWeight; font-size: $priceTitleSize; }
283
283
  .price { background-color: $priceMoneyBgColor; padding: $priceMoneyPadding; text-align: $priceMoneyAlign; color: $priceMoneyColor; font-weight: $priceMoneyWeight; font-size: $priceMoneySize; }
@@ -192,13 +192,51 @@
192
192
  // $orbitSlideNumFontColor: #fff;
193
193
  // $orbitSlideNumPadding: 5px;
194
194
 
195
- // Off Canvas Width Settings
196
-
197
- // $mainWidth: 80%;
198
- // $complementaryWidth: 20%;
195
+ // Clearing Settings
196
+
197
+ // $clearingBg: rgba(0,0,0,0.8);
198
+ // $clearingOldBrowserBg: rgb(0,0,0);
199
+ // $clearingCaptionBg: rgba(0,0,0,0.7);
200
+ // $clearingCaptionOldBrowserBg: rgb(0,0,0);
201
+ // $clearingCaptionFontColor: #fff;
202
+ // $clearingCloseColor: #fff;
203
+ // $clearingArrowColor: #fff;
204
+ // $clearingArrowSize: 16px;
205
+ // $clearingCarouselBg: rgba(0,0,0,0.75);
206
+ // $clearingCarouselOldBrowserBg: rgb(0,0,0);
207
+ // $clearingCarouselHeight: 150px;
208
+ // $clearingActiveImgHeight: 75%;
209
+ // $clearingCarouselThumbWidth: 175px;
210
+ // $clearingCarouselThumbActiveBorder: 4px solid rgb(255,255,255);
211
+ // $clearingImgBg: rgba(0,0,0,0.75);
212
+ // $clearingImgOldBrowserBg: rgb(0,0,0);
213
+
214
+ // Joyride Settings
215
+
216
+ // $tipBg: rgba(0,0,0,0.8);
217
+ // $tipBgIE8: #000;
218
+ // $tipFontColor: #fff;
219
+ // $tipHeaderWeight: bold;
220
+ // $tipDefaultWidth: 300px;
221
+ // $tipBorderRadius: 4px;
222
+ // $tipPadding: 18px 20px 24px;
223
+ // $tipNubSize: 14px;
224
+ // $tipFontSize: 14px;
225
+ // $tipTimerWidth: 50px;
226
+ // $tipTimerHeight: 3px;
227
+ // $tipTimerBorder: solid 1px #555;
228
+ // $tipTimerColor: #666;
229
+ // $tipCloseColor: #777;
230
+ // $tipCloseSize: 20px;
231
+ // $tipCloseWeight: normal;
232
+ // $tipScreenFill: rgba(0,0,0,0.5);
199
233
 
200
234
  // Modular Scale Settings
201
235
 
202
236
  // $ratio: $golden; // THIS IS DEFAULT IN MODULAR-SCALE
203
237
  // $baseFontSize: 14px;
204
- // $importantModNum: 44px;
238
+ // $importantModNum: 44px;
239
+ // $base-size: $baseFontSize $importantModNum;
240
+ // Produced the following list of values: 14, 17, 23, 27, 37, 44, 59, 71, 95, 115;
241
+ // http://www.modularscale.com by Tim Brown
242
+ // https://github.com/scottkellum/modular-scale by scottkellum
data/test/elements.html CHANGED
@@ -33,6 +33,7 @@
33
33
  <dd><a href="#keystrokes">Keystrokes</a></dd>
34
34
  <dd><a href="#panels">Panels</a></dd>
35
35
  <dd><a href="#inline-list">Inline List</a></dd>
36
+ <dd><a href="#tables">Tables</a></dd>
36
37
  <dd><a href="#progress-bars">Progress Bars</a></dd>
37
38
  <dd><a href="#pricing-tables">Pricing Tables</a></dd>
38
39
  <dd><a href="#thumbs">Thumbs</a></dd>
@@ -279,6 +280,58 @@
279
280
  </div>
280
281
  </div>
281
282
 
283
+ <br><br>
284
+
285
+ <div class="row">
286
+ <div class="four columns">
287
+ <a name="tables"></a>
288
+ <h4>Tables</h4>
289
+ <p>Okay, they're not the sexiest things ever, but tables get the job done (for tabular data).</p>
290
+ </div>
291
+ <br>
292
+ <div class="eight columns">
293
+ <table>
294
+ <thead>
295
+ <tr>
296
+ <th>Table Header</th>
297
+ <th>Table Header</th>
298
+ <th>Table Header</th>
299
+ <th>Table Header</th>
300
+ </tr>
301
+ </thead>
302
+ <tbody>
303
+ <tr>
304
+ <td>Content</td>
305
+ <td>This is longer content</td>
306
+ <td>Content</td>
307
+ <td>Content</td>
308
+ </tr>
309
+ <tr>
310
+ <td>Content</td>
311
+ <td>This is longer content</td>
312
+ <td>Content</td>
313
+ <td>Content</td>
314
+ </tr>
315
+ <tr>
316
+ <td>Content</td>
317
+ <td>This is longer content</td>
318
+ <td>Content</td>
319
+ <td>Content</td>
320
+ </tr>
321
+ <tr>
322
+ <td>Content</td>
323
+ <td>This is longer content</td>
324
+ <td>Content</td>
325
+ <td>Content</td>
326
+ </tr>
327
+ </tbody>
328
+ </table>
329
+ </ul>
330
+ </div>
331
+ </div>
332
+
333
+
334
+
282
335
  <br><br>
283
336
 
284
337
  <div class="row">
data/test/joyride.html CHANGED
@@ -79,23 +79,23 @@
79
79
  <!-- Tip Content -->
80
80
  <ol id="joyRideTipContent">
81
81
  <li data-class="so-awesome" data-text="Next" class="custom">
82
- <h2>Stop #1</h2>
82
+ <h4>Stop #1</h4>
83
83
  <p>You can control all the details for you tour stop. Any valid HTML will work inside of Joyride.</p>
84
84
  </li>
85
85
  <li data-id="numero2" data-button="Next" data-options="tipLocation:top;tipAnimation:fade">
86
- <h2>Stop #2</h2>
86
+ <h4>Stop #2</h4>
87
87
  <p>Get the details right by styling Joyride with a custom stylesheet!</p>
88
88
  </li>
89
89
  <li data-id="numero3" data-button="Next" data-options="tipLocation:right">
90
- <h2>Stop #3</h2>
90
+ <h4>Stop #3</h4>
91
91
  <p>It works right aligned.</p>
92
92
  </li>
93
93
  <li data-button="Next">
94
- <h2>Stop #4</h2>
94
+ <h4>Stop #4</h4>
95
95
  <p>It works as a modal too!</p>
96
96
  </li>
97
97
  <li data-id="numero5" data-button="Close">
98
- <h2>Stop #5</h2>
98
+ <h4>Stop #5</h4>
99
99
  <p>Now what are you waiting for? Add this to your projects and get the most out of your apps!</p>
100
100
  </li>
101
101
  </ol>
@@ -113,6 +113,7 @@
113
113
  <script src="../vendor/assets/javascripts/foundation/jquery.foundation.navigation.js"></script>
114
114
  <script src="../vendor/assets/javascripts/foundation/jquery.foundation.reveal.js"></script>
115
115
  <script src="../vendor/assets/javascripts/foundation/jquery.foundation.orbit.js"></script>
116
+ <script src="../vendor/assets/javascripts/foundation/jquery.cookie.js"></script>
116
117
  <script src="../vendor/assets/javascripts/foundation/jquery.foundation.joyride.js"></script>
117
118
  <script src="../vendor/assets/javascripts/foundation/jquery.foundation.clearing.js"></script>
118
119
  <script src="../vendor/assets/javascripts/foundation/app.js"></script>
@@ -192,13 +192,51 @@
192
192
  // $orbitSlideNumFontColor: #fff;
193
193
  // $orbitSlideNumPadding: 5px;
194
194
 
195
- // Off Canvas Width Settings
196
-
197
- // $mainWidth: 80%;
198
- // $complementaryWidth: 20%;
195
+ // Clearing Settings
196
+
197
+ // $clearingBg: rgba(0,0,0,0.8);
198
+ // $clearingOldBrowserBg: rgb(0,0,0);
199
+ // $clearingCaptionBg: rgba(0,0,0,0.7);
200
+ // $clearingCaptionOldBrowserBg: rgb(0,0,0);
201
+ // $clearingCaptionFontColor: #fff;
202
+ // $clearingCloseColor: #fff;
203
+ // $clearingArrowColor: #fff;
204
+ // $clearingArrowSize: 16px;
205
+ // $clearingCarouselBg: rgba(0,0,0,0.75);
206
+ // $clearingCarouselOldBrowserBg: rgb(0,0,0);
207
+ // $clearingCarouselHeight: 150px;
208
+ // $clearingActiveImgHeight: 75%;
209
+ // $clearingCarouselThumbWidth: 175px;
210
+ // $clearingCarouselThumbActiveBorder: 4px solid rgb(255,255,255);
211
+ // $clearingImgBg: rgba(0,0,0,0.75);
212
+ // $clearingImgOldBrowserBg: rgb(0,0,0);
213
+
214
+ // Joyride Settings
215
+
216
+ // $tipBg: rgba(0,0,0,0.8);
217
+ // $tipBgIE8: #000;
218
+ // $tipFontColor: #fff;
219
+ // $tipHeaderWeight: bold;
220
+ // $tipDefaultWidth: 300px;
221
+ // $tipBorderRadius: 4px;
222
+ // $tipPadding: 18px 20px 24px;
223
+ // $tipNubSize: 14px;
224
+ // $tipFontSize: 14px;
225
+ // $tipTimerWidth: 50px;
226
+ // $tipTimerHeight: 3px;
227
+ // $tipTimerBorder: solid 1px #555;
228
+ // $tipTimerColor: #666;
229
+ // $tipCloseColor: #777;
230
+ // $tipCloseSize: 20px;
231
+ // $tipCloseWeight: normal;
232
+ // $tipScreenFill: rgba(0,0,0,0.5);
199
233
 
200
234
  // Modular Scale Settings
201
235
 
202
236
  // $ratio: $golden; // THIS IS DEFAULT IN MODULAR-SCALE
203
237
  // $baseFontSize: 14px;
204
- // $importantModNum: 44px;
238
+ // $importantModNum: 44px;
239
+ // $base-size: $baseFontSize $importantModNum;
240
+ // Produced the following list of values: 14, 17, 23, 27, 37, 44, 59, 71, 95, 115;
241
+ // http://www.modularscale.com by Tim Brown
242
+ // https://github.com/scottkellum/modular-scale by scottkellum
@@ -0,0 +1,72 @@
1
+ /*jshint eqnull:true */
2
+ /*!
3
+ * jQuery Cookie Plugin v1.2
4
+ * https://github.com/carhartl/jquery-cookie
5
+ *
6
+ * Copyright 2011, Klaus Hartl
7
+ * Dual licensed under the MIT or GPL Version 2 licenses.
8
+ * http://www.opensource.org/licenses/mit-license.php
9
+ * http://www.opensource.org/licenses/GPL-2.0
10
+ */
11
+ (function ($, document, undefined) {
12
+
13
+ var pluses = /\+/g;
14
+
15
+ function raw(s) {
16
+ return s;
17
+ }
18
+
19
+ function decoded(s) {
20
+ return decodeURIComponent(s.replace(pluses, ' '));
21
+ }
22
+
23
+ $.cookie = function (key, value, options) {
24
+
25
+ // key and at least value given, set cookie...
26
+ if (value !== undefined && !/Object/.test(Object.prototype.toString.call(value))) {
27
+ options = $.extend({}, $.cookie.defaults, options);
28
+
29
+ if (value === null) {
30
+ options.expires = -1;
31
+ }
32
+
33
+ if (typeof options.expires === 'number') {
34
+ var days = options.expires, t = options.expires = new Date();
35
+ t.setDate(t.getDate() + days);
36
+ }
37
+
38
+ value = String(value);
39
+
40
+ return (document.cookie = [
41
+ encodeURIComponent(key), '=', options.raw ? value : encodeURIComponent(value),
42
+ options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
43
+ options.path ? '; path=' + options.path : '',
44
+ options.domain ? '; domain=' + options.domain : '',
45
+ options.secure ? '; secure' : ''
46
+ ].join(''));
47
+ }
48
+
49
+ // key and possibly options given, get cookie...
50
+ options = value || $.cookie.defaults || {};
51
+ var decode = options.raw ? raw : decoded;
52
+ var cookies = document.cookie.split('; ');
53
+ for (var i = 0, parts; (parts = cookies[i] && cookies[i].split('=')); i++) {
54
+ if (decode(parts.shift()) === key) {
55
+ return decode(parts.join('='));
56
+ }
57
+ }
58
+
59
+ return null;
60
+ };
61
+
62
+ $.cookie.defaults = {};
63
+
64
+ $.removeCookie = function (key, options) {
65
+ if ($.cookie(key, options) !== null) {
66
+ $.cookie(key, null, options);
67
+ return true;
68
+ }
69
+ return false;
70
+ };
71
+
72
+ })(jQuery, document);
@@ -68,7 +68,7 @@
68
68
 
69
69
  if (image.length > 0) {
70
70
  methods.center(image);
71
- }
71
+ }
72
72
  });
73
73
 
74
74
  doc.on('click.fndtn.clearing', '.clearing-main-right', function (e) {
@@ -196,7 +196,7 @@
196
196
  var li = $(this),
197
197
  image = li.find('img');
198
198
 
199
- if (li.height() > image.height()) {
199
+ if (li.height() > image.outerHeight()) {
200
200
  li.addClass('fix-height');
201
201
  }
202
202
  });
@@ -34,7 +34,7 @@
34
34
  'timer' : '<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',
35
35
  'tip' : '<div class="joyride-tip-guide"><span class="joyride-nub"></span></div>',
36
36
  'wrapper' : '<div class="joyride-content-wrapper"></div>',
37
- 'button' : '<a href="#" class="joyride-next-tip"></a>'
37
+ 'button' : '<a href="#" class="small button joyride-next-tip"></a>'
38
38
  }
39
39
  },
40
40
 
@@ -47,79 +47,83 @@
47
47
  init : function (opts) {
48
48
  return this.each(function () {
49
49
 
50
- settings = $.extend(defaults, opts);
50
+ if ($.isEmptyObject(settings)) {
51
+ settings = $.extend(defaults, opts);
51
52
 
52
- // non configureable settings
53
- settings.document = window.document;
54
- settings.$document = $(settings.document);
55
- settings.$window = $(window);
56
- settings.$content_el = $(this);
57
- settings.body_offset = $(settings.tipContainer).position();
58
- settings.$tip_content = $('li', settings.$content_el);
59
- settings.paused = false;
60
- settings.attempts = 0;
53
+ // non configureable settings
54
+ settings.document = window.document;
55
+ settings.$document = $(settings.document);
56
+ settings.$window = $(window);
57
+ settings.$content_el = $(this);
58
+ settings.body_offset = $(settings.tipContainer).position();
59
+ settings.$tip_content = $('li', settings.$content_el);
60
+ settings.paused = false;
61
+ settings.attempts = 0;
61
62
 
62
- settings.tipLocationPatterns = {
63
- top: ['bottom'],
64
- bottom: [], // bottom should not need to be repositioned
65
- left: ['right', 'top', 'bottom'],
66
- right: ['left', 'top', 'bottom']
67
- };
63
+ settings.tipLocationPatterns = {
64
+ top: ['bottom'],
65
+ bottom: [], // bottom should not need to be repositioned
66
+ left: ['right', 'top', 'bottom'],
67
+ right: ['left', 'top', 'bottom']
68
+ };
68
69
 
69
- // are we using jQuery 1.7+
70
- methods.jquery_check();
70
+ // are we using jQuery 1.7+
71
+ methods.jquery_check();
71
72
 
72
- // can we create cookies?
73
- if (!$.isFunction($.cookie)) {
74
- settings.cookieMonster = false;
75
- }
73
+ // can we create cookies?
74
+ if (!$.isFunction($.cookie)) {
75
+ settings.cookieMonster = false;
76
+ }
76
77
 
77
- // generate the tips and insert into dom.
78
- if (!settings.cookieMonster || !$.cookie(settings.cookieName)) {
78
+ // generate the tips and insert into dom.
79
+ if (!settings.cookieMonster || !$.cookie(settings.cookieName)) {
79
80
 
80
- settings.$tip_content.each(function (index) {
81
- methods.create({$li : $(this), index : index});
82
- });
81
+ settings.$tip_content.each(function (index) {
82
+ methods.create({$li : $(this), index : index});
83
+ });
83
84
 
84
- // show first tip
85
- if (!settings.startTimerOnClick && settings.timer > 0) {
86
- methods.show('init');
87
- methods.startTimer();
88
- } else {
89
- methods.show('init');
90
- }
85
+ // show first tip
86
+ if (!settings.startTimerOnClick && settings.timer > 0) {
87
+ methods.show('init');
88
+ methods.startTimer();
89
+ } else {
90
+ methods.show('init');
91
+ }
91
92
 
92
- }
93
+ }
93
94
 
94
- settings.$document.on('click.joyride', '.joyride-next-tip, .joyride-modal-bg', function (e) {
95
- e.preventDefault();
95
+ settings.$document.on('click.joyride', '.joyride-next-tip, .joyride-modal-bg', function (e) {
96
+ e.preventDefault();
96
97
 
97
- if (settings.$li.next().length < 1) {
98
- methods.end();
99
- } else if (settings.timer > 0) {
100
- clearTimeout(settings.automate);
101
- methods.hide();
102
- methods.show();
103
- methods.startTimer();
104
- } else {
105
- methods.hide();
106
- methods.show();
107
- }
98
+ if (settings.$li.next().length < 1) {
99
+ methods.end();
100
+ } else if (settings.timer > 0) {
101
+ clearTimeout(settings.automate);
102
+ methods.hide();
103
+ methods.show();
104
+ methods.startTimer();
105
+ } else {
106
+ methods.hide();
107
+ methods.show();
108
+ }
108
109
 
109
- });
110
+ });
110
111
 
111
- $('.joyride-close-tip').on('click.joyride', function (e) {
112
- e.preventDefault();
113
- methods.end();
114
- });
112
+ $('.joyride-close-tip').on('click.joyride', function (e) {
113
+ e.preventDefault();
114
+ methods.end();
115
+ });
115
116
 
116
- settings.$window.on('resize.joyride', function (e) {
117
- if (methods.is_phone()) {
118
- methods.pos_phone();
119
- } else {
120
- methods.pos_default();
121
- }
122
- });
117
+ settings.$window.on('resize.joyride', function (e) {
118
+ if (methods.is_phone()) {
119
+ methods.pos_phone();
120
+ } else {
121
+ methods.pos_default();
122
+ }
123
+ });
124
+ } else {
125
+ methods.restart();
126
+ }
123
127
 
124
128
  });
125
129
  },
@@ -359,6 +363,7 @@
359
363
  $(window).off('.joyride');
360
364
  $('.joyride-close-tip, .joyride-next-tip, .joyride-modal-bg').off('.joyride');
361
365
  $('.joyride-tip-guide, .joyride-modal-bg').remove();
366
+ clearTimeout(settings.automate);
362
367
  settings = {};
363
368
  },
364
369
 
@@ -409,7 +414,7 @@
409
414
  } else if (methods.left()) {
410
415
 
411
416
  settings.$next_tip.css({
412
- top: settings.$target.offset().top - settings.$target.outerHeight(),
417
+ top: settings.$target.offset().top,
413
418
  left: (settings.$target.offset().left - settings.$next_tip.outerWidth() - nub_height)});
414
419
 
415
420
  methods.nub_position($nub, settings.tipSettings.nubPosition, 'right');
@@ -492,7 +497,6 @@
492
497
  methods.center();
493
498
  $nub.hide();
494
499
 
495
- // bg issues on some mobile devices
496
500
  if ($('.joyride-modal-bg').length < 1) {
497
501
  $('body').append('<div class="joyride-modal-bg">').show();
498
502
  }
@@ -36,7 +36,7 @@
36
36
  }
37
37
 
38
38
  if (settings.$topbar.parent().hasClass('fixed')) {
39
- $('body').css('margin-top',settings.$topbar.outerHeight())
39
+ $('body').css('padding-top',settings.$topbar.outerHeight())
40
40
  }
41
41
 
42
42
  $('.top-bar .toggle-topbar').die('click.fndtn').live('click.fndtn', function (e) {
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: 3.2.0.rc1
4
+ version: 3.2.0.rc2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -178,6 +178,7 @@ files:
178
178
  - vendor/assets/images/foundation/orbit/timer-black.png
179
179
  - vendor/assets/javascripts/foundation/app.js
180
180
  - vendor/assets/javascripts/foundation/index.js
181
+ - vendor/assets/javascripts/foundation/jquery.cookie.js
181
182
  - vendor/assets/javascripts/foundation/jquery.event.move.js
182
183
  - vendor/assets/javascripts/foundation/jquery.event.swipe.js
183
184
  - vendor/assets/javascripts/foundation/jquery.foundation.accordion.js
@@ -212,7 +213,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
212
213
  version: '0'
213
214
  segments:
214
215
  - 0
215
- hash: -833065823339611627
216
+ hash: 1961324652888388162
216
217
  required_rubygems_version: !ruby/object:Gem::Requirement
217
218
  none: false
218
219
  requirements: