zurb-foundation 3.0.9 → 3.1.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/foundation/version.rb +1 -1
- data/scss/foundation/_settings.scss +40 -1
- data/scss/foundation/common/_forms.scss +15 -15
- data/scss/foundation/common/_globals.scss +6 -2
- data/scss/foundation/common/_typography.scss +7 -5
- data/scss/foundation/components/_grid.scss +20 -20
- data/scss/foundation/components/modules/_all.scss +1 -0
- data/scss/foundation/components/modules/_buttons.scss +33 -33
- data/scss/foundation/components/modules/_navbar.scss +26 -23
- data/scss/foundation/components/modules/_orbit.scss +24 -24
- data/scss/foundation/components/modules/_reveal.scss +10 -10
- data/scss/foundation/components/modules/_tabs.scss +16 -13
- data/scss/foundation/components/modules/_topbar.scss +246 -0
- data/scss/foundation/components/modules/_ui.scss +57 -29
- data/scss/foundation/mixins/_css-triangle.scss +1 -1
- data/templates/project/scss/_settings.scss +32 -2
- data/templates/project/scss/app.scss +1 -0
- data/test/buttons.html +18 -8
- data/test/elements.html +62 -18
- data/test/forms.html +25 -49
- data/test/index.html +1 -0
- data/test/navigation.html +1 -1
- data/test/reveal.html +24 -7
- data/test/scss/_settings.scss +142 -74
- data/test/tabs.html +1 -1
- data/test/topbar.html +188 -0
- data/vendor/assets/javascripts/foundation/app.js +33 -21
- data/vendor/assets/javascripts/foundation/jquery.foundation.accordion.js +6 -4
- data/vendor/assets/javascripts/foundation/jquery.foundation.alerts.js +6 -5
- data/vendor/assets/javascripts/foundation/jquery.foundation.buttons.js +13 -7
- data/vendor/assets/javascripts/foundation/jquery.foundation.forms.js +5 -4
- data/vendor/assets/javascripts/foundation/jquery.foundation.mediaQueryToggle.js +8 -6
- data/vendor/assets/javascripts/foundation/jquery.foundation.navigation.js +3 -2
- data/vendor/assets/javascripts/foundation/jquery.foundation.orbit.js +208 -6
- data/vendor/assets/javascripts/foundation/jquery.foundation.reveal.js +5 -6
- data/vendor/assets/javascripts/foundation/jquery.foundation.tabs.js +3 -2
- data/vendor/assets/javascripts/foundation/jquery.foundation.tooltips.js +13 -7
- data/vendor/assets/javascripts/foundation/jquery.foundation.topbar.js +139 -0
- data/vendor/assets/javascripts/foundation/jquery.js +3416 -3519
- data/vendor/assets/javascripts/foundation/jquery.offcanvas.js +2 -2
- metadata +10 -9
@@ -16,14 +16,16 @@
|
|
16
16
|
:: Lists
|
17
17
|
:: Link Lists
|
18
18
|
:: Keystroke Chars
|
19
|
+
:: Image Thumbnails
|
19
20
|
:: Video
|
20
21
|
:: Tables
|
21
22
|
:: Microformats
|
23
|
+
:: Progress Bars
|
22
24
|
|
23
25
|
*/
|
24
26
|
|
25
27
|
/* Visibility Classes ---------------------- */
|
26
|
-
|
28
|
+
|
27
29
|
/* Standard (large) display targeting */
|
28
30
|
.show-for-small,
|
29
31
|
.show-for-medium,
|
@@ -145,7 +147,7 @@
|
|
145
147
|
&.alert { background-color: $alertColor; color: #fff; text-shadow: 0 -1px rgba(#000,.3); }
|
146
148
|
&.secondary { background-color: $secondaryColor; color: darken($secondaryColor, 60%); text-shadow: 0 1px rgba(#fff,.3); }
|
147
149
|
|
148
|
-
a.close { color: #333; position: absolute;
|
150
|
+
a.close { color: #333; position: absolute; #{$defaultOpposite}: 4px; top: -1px; font-size: ms(1); opacity: 0.2; padding: 4px; }
|
149
151
|
a.close:hover, a.close:focus { opacity: 0.4; }
|
150
152
|
|
151
153
|
}
|
@@ -175,7 +177,7 @@
|
|
175
177
|
|
176
178
|
.tooltip { display: none; background: $tooltipBackgroundColor; background: rgba($tooltipBackgroundColor,$tooltipBackgroundOpacity); position: absolute; color: $tooltipFontColor; font-weight: $tooltipFontWeight; @include font-size($tooltipFontSize); padding: 5px; z-index: 999; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; line-height: normal;
|
177
179
|
|
178
|
-
&>.nub { display: block; width: 0; height: 0; border: solid 5px; border-color: transparent transparent $tooltipBackgroundColor transparent; border-color: transparent transparent rgba($tooltipBackgroundColor,$tooltipBackgroundOpacity) transparent; position: absolute; top: -10px;
|
180
|
+
&>.nub { display: block; width: 0; height: 0; border: solid 5px; border-color: transparent transparent $tooltipBackgroundColor transparent; border-color: transparent transparent rgba($tooltipBackgroundColor,$tooltipBackgroundOpacity) transparent; position: absolute; top: -10px; #{$defaultFloat}: 10px; }
|
179
181
|
&.tip-override>.nub { border-color: transparent transparent $tooltipBackgroundColor transparent !important; border-color: transparent transparent rgba($tooltipBackgroundColor,$tooltipBackgroundOpacity) transparent !important; top: -10px !important; }
|
180
182
|
&.tip-top>.nub { border-color: $tooltipBackgroundColor transparent transparent transparent; border-color: rgba($tooltipBackgroundColor,$tooltipBackgroundOpacity) transparent transparent transparent; top: auto; bottom: -10px; }
|
181
183
|
|
@@ -223,33 +225,32 @@
|
|
223
225
|
&.radius { @include border-radius($buttonRadius); }
|
224
226
|
|
225
227
|
}
|
226
|
-
|
228
|
+
|
227
229
|
/* Accordion ---------------------- */
|
228
|
-
|
230
|
+
|
229
231
|
ul.accordion { margin: 0 0 22px 0; border-bottom: 1px solid $secondaryColor;
|
230
|
-
|
232
|
+
|
231
233
|
&>li { list-style: none; margin: 0; padding: 0; border-top: 1px solid $secondaryColor;
|
232
|
-
|
233
|
-
|
234
|
-
|
234
|
+
.title { cursor: pointer; background: lighten($secondaryColor, 5%); padding: 15px; margin: 0; position: relative; border-left: 1px solid $secondaryColor; border-#{$defaultOpposite}: 1px solid $secondaryColor; @include single-transition(0.15s, background, linear);
|
235
|
+
|
235
236
|
h1, h2, h3, h4, h5 { margin: 0; }
|
236
|
-
&:after { @include cssTriangle(6px, darken($secondaryColor, 30%),
|
237
|
+
&:after { @include cssTriangle(6px, darken($secondaryColor, 30%), $defaultOpposite); position: absolute; #{$defaultOpposite}: 15px; top: 21px; }
|
237
238
|
}
|
238
|
-
|
239
|
+
|
239
240
|
.content { display: none; padding: 15px; }
|
240
|
-
|
241
|
+
|
241
242
|
&.active { border-top: 3px solid $mainColor;
|
242
|
-
|
243
|
+
|
243
244
|
.title { background: $white; padding-top: 13px;
|
244
|
-
|
245
|
+
|
245
246
|
&:after { @include cssTriangle(6px, darken($secondaryColor, 30%), top); }
|
246
247
|
}
|
247
|
-
.content { background: $white; display: block; border
|
248
|
+
.content { background: $white; display: block; border-#{$defaultFloat}: 1px solid $secondaryColor; border-#{$defaultOpposite}: 1px solid $secondaryColor; }
|
248
249
|
}
|
249
250
|
}
|
250
251
|
}
|
251
|
-
|
252
|
-
|
252
|
+
|
253
|
+
|
253
254
|
|
254
255
|
/* Side Nav ---------------------- */
|
255
256
|
|
@@ -265,9 +266,9 @@
|
|
265
266
|
|
266
267
|
/* Sub Navs http://www.zurb.com/article/292/how-to-create-simple-and-effective-sub-na ---------------------- */
|
267
268
|
|
268
|
-
dl.sub-nav { display: block; width: auto; overflow: hidden; margin: -4px 0 18px -9px; padding-top: 4px;
|
269
|
+
dl.sub-nav { display: block; width: auto; overflow: hidden; margin: -4px 0 18px; margin-#{$defaultOpposite}: 0; margin-#{$defaultFloat}: -9px; padding-top: 4px;
|
269
270
|
|
270
|
-
dt, dd { float:
|
271
|
+
dt, dd { float: $defaultFloat; display: inline; margin-#{$defaultFloat}: 9px; margin-bottom: 10px; }
|
271
272
|
dt { color: #999; font-weight: $bodyFontWeight; }
|
272
273
|
dd a { text-decoration: none; @include border-radius(1000px); }
|
273
274
|
dd.active a { font-weight: bold; background: $mainColor; color: #fff; padding: 3px 9px; cursor: default; }
|
@@ -276,9 +277,9 @@
|
|
276
277
|
|
277
278
|
/* Pagination ---------------------- */
|
278
279
|
|
279
|
-
ul.pagination { display: block; height: 24px; margin
|
280
|
+
ul.pagination { display: block; height: 24px; margin-#{$defaultFloat}: -5px;
|
280
281
|
|
281
|
-
li { float:
|
282
|
+
li { float: $defaultFloat; display: block; height: 24px; color: #999; font-size: ms(0); margin-#{$defaultFloat}: 5px;
|
282
283
|
|
283
284
|
a { display: block; padding: 1px 7px 1px; color: #555; }
|
284
285
|
&:hover a, a:focus { background: darken($white, 10%); }
|
@@ -295,10 +296,10 @@
|
|
295
296
|
|
296
297
|
ul.breadcrumbs { display: block; background: lighten($secondaryColor, 5%); padding: 6px 10px 7px; border: 1px solid $secondaryColor; @include border-radius(2px); overflow: hidden;
|
297
298
|
|
298
|
-
li { margin: 0; padding: 0 12px 0 0; float:
|
299
|
+
li { margin: 0; padding: 0 12px 0 0; float: $defaultFloat; list-style: none;
|
299
300
|
|
300
|
-
a, span { text-transform: uppercase; @include font-size(11); padding
|
301
|
-
&:first-child a, &:first-child span { padding
|
301
|
+
a, span { text-transform: uppercase; @include font-size(11); padding-#{$defaultFloat}: 12px; }
|
302
|
+
&:first-child a, &:first-child span { padding-#{$defaultFloat}: 0; }
|
302
303
|
}
|
303
304
|
|
304
305
|
li:before { content: "/"; color: #aaa; }
|
@@ -316,7 +317,7 @@
|
|
316
317
|
/* Link List */
|
317
318
|
ul.link-list { margin: 0 0 ms(1) -22px; padding: 0; list-style: none; overflow: hidden;
|
318
319
|
|
319
|
-
li { list-style: none; float:
|
320
|
+
li { list-style: none; float: $defaultFloat; margin-#{$defaultFloat}: 22px; display: block;
|
320
321
|
|
321
322
|
a { display: block; }
|
322
323
|
}
|
@@ -326,6 +327,13 @@
|
|
326
327
|
|
327
328
|
.keystroke, kbd { font-family: "Consolas", "Menlo", "Courier", monospace; font-size: ms(0) - 1; padding: 2px 4px 0px; margin: 0; background: darken($white, 7%); border: solid 1px darken($white, 14%); @include border-radius($buttonRadius); }
|
328
329
|
|
330
|
+
/* Image Thumbnails ---------------------- */
|
331
|
+
.th { display: block;
|
332
|
+
img { display: block; border: solid 4px #fff; @include box-shadow(0 0 0 1px rgba(#000,.2)); @include border-radius($thumbRadius); @include transition-property(border, box-shadow); @include transition-duration(300ms); }
|
333
|
+
&:hover {
|
334
|
+
img { @include box-shadow(0 0 6px 1px rgba($mainColor,.5)); }
|
335
|
+
}
|
336
|
+
}
|
329
337
|
|
330
338
|
/* Video - Mad props to http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ ---------------------- */
|
331
339
|
|
@@ -340,7 +348,7 @@
|
|
340
348
|
&.widescreen { padding-bottom: 57.25%; }
|
341
349
|
&.vimeo { padding-top: 0; }
|
342
350
|
|
343
|
-
iframe, object, embed, video { position: absolute; top: 0;
|
351
|
+
iframe, object, embed, video { position: absolute; top: 0; #{$defaultFloat}: 0; width: 100%; height: 100%; }
|
344
352
|
|
345
353
|
}
|
346
354
|
|
@@ -357,11 +365,11 @@
|
|
357
365
|
table tfoot tr th,
|
358
366
|
table tbody tr td,
|
359
367
|
table tr td,
|
360
|
-
table tfoot tr td { font-size: ms(0); line-height: 18px; text-align:
|
368
|
+
table tfoot tr td { font-size: ms(0); line-height: 18px; text-align: #{$defaultFloat}; }
|
361
369
|
table thead tr th,
|
362
370
|
table tfoot tr td { padding: 8px 10px 9px; font-size: ms(0) + 2; font-weight: bold; color: #222; }
|
363
|
-
table thead tr th:first-child, table tfoot tr td:first-child { border
|
364
|
-
table thead tr th:last-child, table tfoot tr td:last-child { border
|
371
|
+
table thead tr th:first-child, table tfoot tr td:first-child { border-#{$defaultFloat}: none; }
|
372
|
+
table thead tr th:last-child, table tfoot tr td:last-child { border-#{$defaultOpposite}: none; }
|
365
373
|
|
366
374
|
table tbody tr.even,
|
367
375
|
table tbody tr.alt { background: #f9f9f9; }
|
@@ -382,3 +390,23 @@
|
|
382
390
|
abbr { cursor: default; text-decoration: none; font-weight: bold; border: none; padding: 0 1px; }
|
383
391
|
}
|
384
392
|
|
393
|
+
/* Progress Bar ---------------------- */
|
394
|
+
|
395
|
+
div.progress { padding: $progBarPad; margin-bottom: 10px; border: $progBarBorderSize solid $progBarBorderColor; height: $progBarHeight;
|
396
|
+
|
397
|
+
/* meter */
|
398
|
+
.meter { background: $mainColor; height: 100%; display: block; width:50%; }
|
399
|
+
&.secondary .meter { background: $secondaryColor;}
|
400
|
+
&.success .meter { background: $successColor;}
|
401
|
+
&.alert .meter { background: $alertColor;}
|
402
|
+
|
403
|
+
/* border radii */
|
404
|
+
&.radius { @include border-radius($buttonRadius);
|
405
|
+
.meter { @include border-radius(2px); }
|
406
|
+
}
|
407
|
+
&.round { @include border-radius(1000px);
|
408
|
+
.meter { @include border-radius(1000px); }
|
409
|
+
}
|
410
|
+
|
411
|
+
}
|
412
|
+
|
@@ -9,6 +9,10 @@
|
|
9
9
|
// $totalColumns: 12;
|
10
10
|
// $mobileTotalColumns: 4;
|
11
11
|
|
12
|
+
// Text Direction Settings
|
13
|
+
|
14
|
+
// $textDirection: ltr; // Controls default global text direction, 'rtl' or 'ltr'
|
15
|
+
|
12
16
|
// Colors Settings
|
13
17
|
|
14
18
|
// $mainColor: #2ba6cb;
|
@@ -29,7 +33,7 @@
|
|
29
33
|
// $headerFontColor: #222;
|
30
34
|
// $bodyFontFamily: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
|
31
35
|
// $bodyFontWeight: normal;
|
32
|
-
// $bodyFontColor:
|
36
|
+
// $bodyFontColor: $txtColor;
|
33
37
|
|
34
38
|
// Button Settings
|
35
39
|
|
@@ -53,12 +57,23 @@
|
|
53
57
|
// $navBarHeight: 40px;
|
54
58
|
// $navFlyoutBaseWidth: 250px;
|
55
59
|
|
60
|
+
// UI Settings
|
61
|
+
|
62
|
+
// $thumbRadius: 3px;
|
63
|
+
|
64
|
+
// $progBarHeight: 25px;
|
65
|
+
// $progBarBorderColor: darken($white, 20%);
|
66
|
+
// $progBarBorderSize: 1px;
|
67
|
+
// $progBarPad: 2px;
|
68
|
+
|
56
69
|
// Modular Scale
|
70
|
+
|
57
71
|
// $ratio: $golden;
|
58
72
|
// $baseFontSize: 14px;
|
59
73
|
// $importantModNum: 44px;
|
60
74
|
|
61
75
|
// Tooltip Settings
|
76
|
+
|
62
77
|
// $hasTipBorderBottom: dotted 1px #ccc;
|
63
78
|
// $hasTipFontWeight: bold;
|
64
79
|
// $hasTipFontColor: #333;
|
@@ -73,4 +88,19 @@
|
|
73
88
|
// $tapToCloseFontWeight: normal;
|
74
89
|
// $tapToCloseFontColor: #888;
|
75
90
|
// $tooltipFontSizeScreenSmall: 14;
|
76
|
-
// $tooltipBackgroundOpacityScreenSmall: 0.85;
|
91
|
+
// $tooltipBackgroundOpacityScreenSmall: 0.85;
|
92
|
+
|
93
|
+
// Top Bar Settings
|
94
|
+
|
95
|
+
// $topBarBgColor: #222;
|
96
|
+
// $topBarHeight: 45px;
|
97
|
+
// $topBarBtmMargin: 30px;
|
98
|
+
// $topBarTitleWeight: bold;
|
99
|
+
// $topBarTitleSize: ms(1);
|
100
|
+
// $topBarLinkColor: $white;
|
101
|
+
// $topBarLinkWeight: bold;
|
102
|
+
// $topBarLinkSize: ms(0) - 1;
|
103
|
+
// $topBarDropToggleSize: 5px;
|
104
|
+
// $topBarSearchWidth: 200px;
|
105
|
+
// $topBarBreakPoint: 940px; // Change to 9999px for always mobile layout
|
106
|
+
// $topBarNavToggleSize: 8px;
|
@@ -39,6 +39,7 @@
|
|
39
39
|
// @import "foundation/components/modules/buttons";
|
40
40
|
// @import "foundation/components/modules/tabs";
|
41
41
|
// @import "foundation/components/modules/ui";
|
42
|
+
// @import "foundation/components/modules/topbar";
|
42
43
|
// @import "foundation/components/modules/navbar";
|
43
44
|
// @import "foundation/components/modules/orbit";
|
44
45
|
// @import "foundation/components/modules/reveal";
|
data/test/buttons.html
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
<!-- Included CSS Files -->
|
16
16
|
<link rel="stylesheet" href="stylesheets/styles.css">
|
17
|
-
|
17
|
+
|
18
18
|
<script src="../vendor/assets/javascripts/foundation/modernizr.foundation.js"></script>
|
19
19
|
|
20
20
|
<!-- IE Fix for HTML5 Tags -->
|
@@ -23,7 +23,7 @@
|
|
23
23
|
<![endif]-->
|
24
24
|
</head>
|
25
25
|
<body>
|
26
|
-
|
26
|
+
|
27
27
|
<div class="row">
|
28
28
|
<div class="twelve columns">
|
29
29
|
<p><a href="index.html">« Back</a></p>
|
@@ -37,11 +37,11 @@
|
|
37
37
|
</dl>
|
38
38
|
</div>
|
39
39
|
</div>
|
40
|
-
|
40
|
+
|
41
41
|
<!-- Test Foundation Components Here -->
|
42
42
|
<div class="row">
|
43
43
|
<div class="twelve columns">
|
44
|
-
|
44
|
+
|
45
45
|
<h3>Buttons</h3>
|
46
46
|
<h4 class="subheader">Buttons are a convenient tool when it comes to more traditional actions. To that end, Foundation includes a lot of easy to use button styles that you can customize or override.</h4>
|
47
47
|
<br>
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<a href="#" class="button">Regular Button »</a>
|
87
87
|
</div>
|
88
88
|
</div>
|
89
|
-
|
89
|
+
|
90
90
|
<br><br><br>
|
91
91
|
|
92
92
|
<div class="row">
|
@@ -122,7 +122,7 @@
|
|
122
122
|
</div>
|
123
123
|
</div>
|
124
124
|
</div>
|
125
|
-
|
125
|
+
|
126
126
|
<br><br>
|
127
127
|
|
128
128
|
<div class="row">
|
@@ -155,6 +155,16 @@
|
|
155
155
|
<li><a href="#">Last Item</a></li>
|
156
156
|
</ul>
|
157
157
|
</div>
|
158
|
+
<div href="#" class="large alert button split dropdown">
|
159
|
+
<a href="#">Split Button</a>
|
160
|
+
<span></span>
|
161
|
+
<ul>
|
162
|
+
<li><a href="#">Dropdown Item</a></li>
|
163
|
+
<li><a href="#">Another Dropdown Item</a></li>
|
164
|
+
<li class="divider"></li>
|
165
|
+
<li><a href="#">Last Item</a></li>
|
166
|
+
</ul>
|
167
|
+
</div>
|
158
168
|
</p>
|
159
169
|
<p>Notice that in a split button, the <code>span</code> is the dropdown affordance and the main anchor is the primary button action.</p>
|
160
170
|
</div>
|
@@ -162,7 +172,7 @@
|
|
162
172
|
|
163
173
|
</div>
|
164
174
|
</div>
|
165
|
-
|
175
|
+
|
166
176
|
<!-- Included JS Files -->
|
167
177
|
<script src="../vendor/assets/javascripts/foundation/jquery.js"></script>
|
168
178
|
<script src="../vendor/assets/javascripts/foundation/jquery.foundation.mediaQueryToggle.js"></script>
|
@@ -179,6 +189,6 @@
|
|
179
189
|
<script src="../vendor/assets/javascripts/foundation/app.js"></script>
|
180
190
|
<script type="text/javascript">
|
181
191
|
// Page-Specific JavaScript Goes Here
|
182
|
-
</script>
|
192
|
+
</script>
|
183
193
|
</body>
|
184
194
|
</html>
|
data/test/elements.html
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
<![endif]-->
|
24
24
|
</head>
|
25
25
|
<body>
|
26
|
-
|
26
|
+
|
27
27
|
<div class="row">
|
28
28
|
<div class="twelve columns">
|
29
29
|
<p><a href="index.html">« Back</a></p>
|
@@ -39,12 +39,14 @@
|
|
39
39
|
<dd><a href="#keystrokes">Keystrokes</a></dd>
|
40
40
|
<dd><a href="#panels">Panels</a></dd>
|
41
41
|
<dd><a href="#link-list">Link List</a></dd>
|
42
|
+
<dd><a href="#progress-bars">Progress Bars</a></dd>
|
43
|
+
<dd><a href="#thumbs">Thumbs</a></dd>
|
42
44
|
<dd><a href="#video">Video</a></dd>
|
43
|
-
|
45
|
+
|
44
46
|
</dl>
|
45
47
|
</div>
|
46
48
|
</div>
|
47
|
-
|
49
|
+
|
48
50
|
<!-- Test Foundation Components Here -->
|
49
51
|
<div class="row">
|
50
52
|
<div class="twelve columns">
|
@@ -95,7 +97,7 @@
|
|
95
97
|
<p>Easily add the ability to show which media query you are currently viewing. To activate the viewer, make sure you have <strong>jquery.foundation.mediaQueryToggle.js</strong> linked up on your page. From there, simply add the markup to your page or press <kbd>M</kbd>. The keyboard toggle won't work on mobile devices so make sure you add the markup in those cases.</p>
|
96
98
|
</div>
|
97
99
|
</div>
|
98
|
-
|
100
|
+
|
99
101
|
<br><br>
|
100
102
|
|
101
103
|
<div class="row">
|
@@ -127,7 +129,7 @@
|
|
127
129
|
</div>
|
128
130
|
</div>
|
129
131
|
</div>
|
130
|
-
|
132
|
+
|
131
133
|
<br><br>
|
132
134
|
|
133
135
|
<div class="row">
|
@@ -157,7 +159,7 @@
|
|
157
159
|
<p><span class="radius label">Example Label</span> This label could read a date for an update or it could include an author name or anything really. Inline labels are pretty handy when you need to draw attention or visually separate a short piece of content.</p>
|
158
160
|
</div>
|
159
161
|
</div>
|
160
|
-
|
162
|
+
|
161
163
|
<br><br>
|
162
164
|
|
163
165
|
<div class="row">
|
@@ -171,11 +173,16 @@
|
|
171
173
|
<br>
|
172
174
|
<div class="eight columns">
|
173
175
|
<p>The tooltips can be positioned on the <span class="has-tip" data-width="210" title="I'm on bottom and the default position.">"tip-bottom"</span>, which is the default position, <span class="has-tip tip-top noradius" data-width="210" title="I'm on the top and I'm not rounded!">"tip-top" (hehe)</span>, <span class="has-tip tip-left" data-width="90" title="I'm on the left!">"tip-left"</span>, or <span class="has-tip tip-right" data-width="120" title="I'm on the right!">"tip-right"</span> of the target element. On a small device, the tooltips are full width and bottom aligned.</p>
|
176
|
+
|
177
|
+
<h3>Custom Options</h3>
|
178
|
+
<p>
|
179
|
+
I have <span class="has-tip-custom" title="See? Custom class here.">custom attributes.</span>
|
180
|
+
</p>
|
174
181
|
</div>
|
175
|
-
</div>
|
176
|
-
|
182
|
+
</div>
|
183
|
+
|
177
184
|
<br><br>
|
178
|
-
|
185
|
+
|
179
186
|
<div class="row">
|
180
187
|
<div class="four columns">
|
181
188
|
<a name="accordion"></a>
|
@@ -215,7 +222,7 @@
|
|
215
222
|
</ul>
|
216
223
|
</div>
|
217
224
|
</div>
|
218
|
-
|
225
|
+
|
219
226
|
<br><br>
|
220
227
|
|
221
228
|
<div class="row">
|
@@ -229,7 +236,7 @@
|
|
229
236
|
<p>For example, to close your browser hit <kbd>Cmd</kbd> + <kbd>Q</kbd>. Don't actually do it. There's more docs to read.</p>
|
230
237
|
</div>
|
231
238
|
</div>
|
232
|
-
|
239
|
+
|
233
240
|
<br><br>
|
234
241
|
|
235
242
|
<div class="row">
|
@@ -256,7 +263,7 @@
|
|
256
263
|
</div>
|
257
264
|
</div>
|
258
265
|
</div>
|
259
|
-
|
266
|
+
|
260
267
|
<br><br>
|
261
268
|
|
262
269
|
<div class="row">
|
@@ -276,9 +283,43 @@
|
|
276
283
|
</ul>
|
277
284
|
</div>
|
278
285
|
</div>
|
279
|
-
|
286
|
+
|
280
287
|
<br><br>
|
281
|
-
|
288
|
+
|
289
|
+
<div class="row">
|
290
|
+
<div class="four columns">
|
291
|
+
<a name="progress-bars"></a>
|
292
|
+
<h4>Progress Bars</h4>
|
293
|
+
<p>A simple way to add a progress bar to your layout. You can edit the border radius by adding a class of <code>.radius</code> or <code>.round</code>. You can change the color by adding the classes <code>.secondary</code>, <code>.success</code>, or <code>.alert</code>. If you want to adjust the length, just use a number class. For example <code>class="progress four"</code> will make the progress bar 33% wide.</p>
|
294
|
+
</div>
|
295
|
+
<br>
|
296
|
+
<div class="eight columns">
|
297
|
+
<br>
|
298
|
+
<div class="progress six"><span class="meter"></span></div>
|
299
|
+
<div class="radius progress success eight"><span class="meter"></span></div>
|
300
|
+
<div class="nice round progress alert ten"><span class="meter"></span></div>
|
301
|
+
<div class="nice secondary progress"><span class="meter"></span></div>
|
302
|
+
</div>
|
303
|
+
</div>
|
304
|
+
|
305
|
+
<br><br>
|
306
|
+
|
307
|
+
<div class="row">
|
308
|
+
<div class="four columns">
|
309
|
+
<a name="thumbs"></a>
|
310
|
+
<h4>Image Thumbnails</h4>
|
311
|
+
<p>When you need an image thumbnail that is slightly more styled than just a plain old image.</p>
|
312
|
+
</div>
|
313
|
+
<div class="four mobile-two columns">
|
314
|
+
<a class="th" href="#"><img src="http://placehold.it/350x200"></a>
|
315
|
+
</div>
|
316
|
+
<div class="four mobile-two columns">
|
317
|
+
<a class="th" href="#"><img src="http://placehold.it/350x200"></a>
|
318
|
+
</div>
|
319
|
+
</div>
|
320
|
+
|
321
|
+
<br><br>
|
322
|
+
|
282
323
|
<div class="row">
|
283
324
|
<div class="four columns">
|
284
325
|
<a name="video"></a>
|
@@ -314,10 +355,10 @@
|
|
314
355
|
</ul>
|
315
356
|
</div>
|
316
357
|
</div>
|
317
|
-
|
358
|
+
|
318
359
|
</div>
|
319
360
|
</div>
|
320
|
-
|
361
|
+
|
321
362
|
<!-- Included JS Files -->
|
322
363
|
<script src="../vendor/assets/javascripts/foundation/jquery.js"></script>
|
323
364
|
<script src="../vendor/assets/javascripts/foundation/jquery.foundation.mediaQueryToggle.js"></script>
|
@@ -333,7 +374,10 @@
|
|
333
374
|
<script src="../vendor/assets/javascripts/foundation/jquery.foundation.orbit.js"></script>
|
334
375
|
<script src="../vendor/assets/javascripts/foundation/app.js"></script>
|
335
376
|
<script type="text/javascript">
|
336
|
-
|
337
|
-
|
377
|
+
$(document).tooltips({
|
378
|
+
targetClass: '.has-tip-custom, .has-tip'
|
379
|
+
});
|
380
|
+
|
381
|
+
</script>
|
338
382
|
</body>
|
339
383
|
</html>
|