zurb-foundation 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/docs/_sidebar-components.html.erb +4 -3
- data/docs/_sidebar.html.erb +3 -3
- data/docs/components/alert-boxes.html.erb +2 -0
- data/docs/components/custom-forms.html.erb +2 -2
- data/docs/components/dropdown.html.erb +3 -3
- data/docs/components/flex-video.html.erb +2 -2
- data/docs/components/forms.html.erb +1 -1
- data/docs/components/grid.html.erb +9 -0
- data/docs/components/inline-lists.html.erb +1 -1
- data/docs/components/keystrokes.html.erb +2 -2
- data/docs/components/labels.html.erb +2 -2
- data/docs/components/magellan.html.erb +1 -1
- data/docs/components/panels.html.erb +2 -2
- data/docs/components/pricing-tables.html.erb +2 -2
- data/docs/components/progress-bars.html.erb +2 -2
- data/docs/components/switch.html.erb +2 -2
- data/docs/components/thumbnails.html.erb +1 -1
- data/docs/components/type.html.erb +1 -1
- data/docs/components/visibility.html.erb +2 -0
- data/docs/config/deploy.rb +5 -2
- data/docs/faq.html.erb +4 -4
- data/docs/index.html.erb +3 -1
- data/docs/javascript.html.erb +2 -0
- data/docs/layout.html.erb +2 -2
- data/docs/rails.html.erb +2 -0
- data/docs/sass.html.erb +2 -0
- data/js/foundation/foundation.topbar.js +60 -41
- data/lib/foundation/version.rb +1 -1
- data/scss/foundation/components/_top-bar.scss +1 -1
- data/templates/project/index.html +3 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
<div class="section-container accordion" data-section data-options="deep_linking: false">
|
2
|
-
<section class="section">
|
2
|
+
<section class="section <%= @side_nav == 'using' ? 'active': '' %>">
|
3
3
|
<p class="title"><a href="#">Using Foundation</a></p>
|
4
4
|
<div class="content">
|
5
5
|
<ul class="side-nav">
|
6
|
-
<li><a href="
|
6
|
+
<li><a href="http://foundation.zurb.com/docs/">Get Started</a></li>
|
7
7
|
<li><a href="../javascript.html">Javascript</a></li>
|
8
8
|
<li><a href="../sass.html">Sass</a></li>
|
9
9
|
<li><a href="../rails.html">Rails</a></li>
|
10
|
-
<li><a href="
|
10
|
+
<li><a href="visibility.html">Visibility Classes</a></li>
|
11
11
|
</ul>
|
12
12
|
</div>
|
13
13
|
</section>
|
@@ -68,6 +68,7 @@
|
|
68
68
|
<p class="title"><a href="#">CSS Components</a></p>
|
69
69
|
<div class="content">
|
70
70
|
<ul class="side-nav">
|
71
|
+
<li><a href="alert-boxes.html">Alert Boxes</a></li>
|
71
72
|
<li><a href="panels.html">Panels</a></li>
|
72
73
|
<li><a href="pricing-tables.html">Pricing Tables</a></li>
|
73
74
|
<li><a href="progress-bars.html">Progress Bars</a></li>
|
data/docs/_sidebar.html.erb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
<div class="section-container accordion" data-section data-options="deep_linking: false">
|
2
|
-
<section class="section active">
|
2
|
+
<section class="section <%= @side_nav == 'using' ? 'active': '' %>">
|
3
3
|
<p class="title"><a href="#">Using Foundation</a></p>
|
4
4
|
<div class="content">
|
5
5
|
<ul class="side-nav">
|
6
|
-
<li><a href="docs/">Get Started</a></li>
|
6
|
+
<li><a href="http://foundation.zurb.com/docs/">Get Started</a></li>
|
7
7
|
<li><a href="javascript.html">Javascript</a></li>
|
8
8
|
<li><a href="sass.html">Sass</a></li>
|
9
9
|
<li><a href="rails.html">Rails</a></li>
|
@@ -100,7 +100,7 @@
|
|
100
100
|
</section>
|
101
101
|
</div>
|
102
102
|
|
103
|
-
<p><a href="http://foundation.zurb.com/
|
103
|
+
<p><a href="http://foundation.zurb.com/download.php" class="button expand" style="margin-bottom: 0;">Download Foundation 4</a></p>
|
104
104
|
|
105
105
|
<div class="jobs hide-for-small">
|
106
106
|
<h5>Awesome product jobs:</h5>
|
@@ -185,7 +185,7 @@
|
|
185
185
|
<hr>
|
186
186
|
|
187
187
|
<h3>Using the Pre/postfix Concept With Custom Forms</h3>
|
188
|
-
<p>We showed you how to use the prefix and postfix elements on our <a href="
|
188
|
+
<p>We showed you how to use the prefix and postfix elements on our <a href="forms.html">forms documentation page</a>. You can employ that same technique here and make custom forms act as your slave to create some very complex forms.</p>
|
189
189
|
|
190
190
|
<%= code_example '
|
191
191
|
<form class="custom">
|
@@ -280,7 +280,7 @@
|
|
280
280
|
|
281
281
|
<hr>
|
282
282
|
|
283
|
-
<h3>Using the JavaScript</h3>
|
283
|
+
<h3><a name="js"></a>Using the JavaScript</h3>
|
284
284
|
<p>In order to get the custom forms to function, you'll need to include <code>foundation.forms.js</code>. You'll also need to make sure to include <code>zepto.js</code> and <code>foundation.js</code> above the forms plugin. Above your closing <code></body></code> tag include the following line of code and make sure you have the JS in your directory.</p>
|
285
285
|
|
286
286
|
<p><a href="../javascript.html" title="How to install Foundation JavaScript">Read how to install Foundation JavaScript</a></p>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<div class="row">
|
8
8
|
<div class="large-12 columns">
|
9
9
|
<h2><%= @page_title %></h2>
|
10
|
-
<h4 class="subheader">In Foundation 4, we wanted to rid our codebase of many different dropdowns within various UI elements. So we created a
|
10
|
+
<h4 class="subheader">In Foundation 4, we wanted to rid our codebase of many different dropdowns within various UI elements. So we created a universal dropdown plugin that will attach dropdowns or popovers next to anything!</h4>
|
11
11
|
|
12
12
|
<a href="#" class="button" data-dropdown="tinyDrop">Link Dropdown »</a>
|
13
13
|
<a href="#" class="button" data-dropdown="contentDrop">Content Dropdown »</a>
|
@@ -52,12 +52,12 @@
|
|
52
52
|
<li><code>content</code>: Add padding inside the dropdown for better looking content.</li>
|
53
53
|
</ul>
|
54
54
|
|
55
|
-
<p>You may chain one class from each group to build up desired default styles. For these styles to take effect, make sure you have the <strong>default Foundation CSS package</strong> or that you've selected <strong>dropdowns from a custom package</strong>. These should be linked up following our default <a href="#">HTML page structure</a>.</p>
|
55
|
+
<p>You may chain one class from each group to build up desired default styles. For these styles to take effect, make sure you have the <strong>default Foundation CSS package</strong> or that you've selected <strong>dropdowns from a custom package</strong>. These should be linked up following our default <a href="../index.html#basicHTMLMarkup">HTML page structure</a>.</p>
|
56
56
|
|
57
57
|
<hr>
|
58
58
|
|
59
59
|
<h3>Build With Our Mixins</h3>
|
60
|
-
<p>We've included SCSS mixins used to style dropdowns. To use the mixin, you'll need to have the <a href="
|
60
|
+
<p>We've included SCSS mixins used to style dropdowns. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_dropdown.scss">_dropdown.scss</a> from Github and throw them into a foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
|
61
61
|
|
62
62
|
<%= code_example '
|
63
63
|
@import "foundation/foundation-global", "foundation/dropdown";
|
@@ -47,12 +47,12 @@
|
|
47
47
|
<iframe width="420" height="315" src="http://www.youtube.com/embed/0_EW8aNgKlA" frameborder="0" allowfullscreen></iframe>
|
48
48
|
</div>', :html %>
|
49
49
|
|
50
|
-
<p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected flex-video from a custom package. These should be linked up following our default <a href="#">HTML page structure</a>.</p>
|
50
|
+
<p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected flex-video from a custom package. These should be linked up following our default <a href="../index.html#basicHTMLMarkup">HTML page structure</a>.</p>
|
51
51
|
|
52
52
|
<hr>
|
53
53
|
|
54
54
|
<h3>Build with our Mixins</h3>
|
55
|
-
<p>We've included SCSS mixins used to style labels. To use the mixin, you'll need to have the <a href="
|
55
|
+
<p>We've included SCSS mixins used to style labels. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_flex-video.scss">_flex-video.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
|
56
56
|
|
57
57
|
<%= code_example '
|
58
58
|
@import "foundation/foundation-global", "foundation/flex-video";
|
@@ -329,7 +329,7 @@
|
|
329
329
|
<hr>
|
330
330
|
|
331
331
|
<h3>Build with Mixins</h3>
|
332
|
-
<p>A lot of elements in Foundation can be created using SCSS mixins so that you can include your own classes and just enough style as needed for the job at hand. To use these mixins, you'll need to have the extension installed or grab <a href="
|
332
|
+
<p>A lot of elements in Foundation can be created using SCSS mixins so that you can include your own classes and just enough style as needed for the job at hand. To use these mixins, you'll need to have the extension installed or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_forms.scss">_forms.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
|
333
333
|
|
334
334
|
<%= code_example '
|
335
335
|
@import "foundation/foundation-global", "foundation/forms";', :css %>
|
@@ -345,6 +345,15 @@ $float: false
|
|
345
345
|
|
346
346
|
<hr>
|
347
347
|
|
348
|
+
<h5>Default SCSS Variables</h5>
|
349
|
+
<%= code_example '
|
350
|
+
$row-width: 62.5em !default;
|
351
|
+
$column-gutter: 1.875em !default;
|
352
|
+
$total-columns: 12 !default;
|
353
|
+
', :css %>
|
354
|
+
|
355
|
+
<hr>
|
356
|
+
|
348
357
|
<h4>Get Advanced With Media Query Changes</h4>
|
349
358
|
<p>We kept media queries out of the code for our grid mixins. This will enable you to include the mixins inside of whatever breakpoint you'd like, putting you in complete control. If you want to create 10 breakpoints and shift the layout around between each one, by all means. If you want to use only the default breakpoints, <a href="../sass.html">we've got variables for that</a>.</p>
|
350
359
|
|
@@ -41,7 +41,7 @@
|
|
41
41
|
<hr>
|
42
42
|
|
43
43
|
<h3>Build with a Mixin</h3>
|
44
|
-
<p>We've included SCSS mixins used to style inline lists. To use the mixin, you'll need to have the <a href="
|
44
|
+
<p>We've included SCSS mixins used to style inline lists. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_inline-lists.scss">_inline-lists.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
|
45
45
|
|
46
46
|
<%= code_example '
|
47
47
|
@import "foundation/foundation-global", "foundation/inline-lists";
|
@@ -23,12 +23,12 @@
|
|
23
23
|
<%= code_example '
|
24
24
|
<p>For example, to close your browser hit <kbd>Cmd</kbd> + <kbd>Q</kbd>', :html %>
|
25
25
|
|
26
|
-
<p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected keystrokes from a custom package. These should be linked up following our default HTML page structure.</p>
|
26
|
+
<p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected keystrokes from a custom package. These should be linked up following our <a href="../index.html">default HTML page structure.</a></p>
|
27
27
|
|
28
28
|
<hr>
|
29
29
|
|
30
30
|
<h3>Build with a Mixin</h3>
|
31
|
-
<p>We've included SCSS mixins used to style keystrokes. To use the mixin, you'll need to have the <a href="
|
31
|
+
<p>We've included SCSS mixins used to style keystrokes. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_keystrokes.scss">_keystrokes.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
|
32
32
|
|
33
33
|
<%= code_example '
|
34
34
|
@import "foundation/foundation-global", "foundation/keystrokes";
|
@@ -38,12 +38,12 @@
|
|
38
38
|
<li>The radius classes include: <code>.radius</code> or <code>.round</code>.</li>
|
39
39
|
</ul>
|
40
40
|
|
41
|
-
<p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected labels from a custom package. These should be linked up following our default <a href="
|
41
|
+
<p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected labels from a custom package. These should be linked up following our default <a href="../index.html">HTML page structure</a>.</p>
|
42
42
|
|
43
43
|
<hr>
|
44
44
|
|
45
45
|
<h3>Build With Our Mixins</h3>
|
46
|
-
<p>We've included SCSS mixins used to style labels. To use the mixin, you'll need to have the <a href="
|
46
|
+
<p>We've included SCSS mixins used to style labels. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_labels.scss">_labels.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
|
47
47
|
|
48
48
|
<%= code_example '
|
49
49
|
@import "foundation/foundation-global", "foundation/labels";
|
@@ -43,7 +43,7 @@
|
|
43
43
|
</div>
|
44
44
|
', :html %>
|
45
45
|
|
46
|
-
<p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected <strong>magellan from a custom package</strong>. These should be linked up following our default <a href="#">HTML page structure</a>.</p>
|
46
|
+
<p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected <strong>magellan from a custom package</strong>. These should be linked up following our default <a href="../index.html#basicHTMLMarkup">HTML page structure</a>.</p>
|
47
47
|
|
48
48
|
<hr>
|
49
49
|
|
@@ -47,12 +47,12 @@
|
|
47
47
|
|
48
48
|
<div class="panel">Basic panel with content.</div>
|
49
49
|
|
50
|
-
<p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected panels from a custom package. These should be linked up following our default <a href="
|
50
|
+
<p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected panels from a custom package. These should be linked up following our default <a href="../index.html">HTML page structure</a>.</p>
|
51
51
|
|
52
52
|
<hr>
|
53
53
|
|
54
54
|
<h3>Build with a Mixin</h3>
|
55
|
-
<p>We've included SCSS mixins used to style panels so that you can code smarter. To use the mixin, you'll need to have the <a href="
|
55
|
+
<p>We've included SCSS mixins used to style panels so that you can code smarter. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_panels.scss">_panels.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
|
56
56
|
|
57
57
|
<%= code_example '
|
58
58
|
@import "foundation/foundation-global", "foundation/panels";
|
@@ -53,12 +53,12 @@
|
|
53
53
|
<li class="cta-button"><a class="button" href="#">Buy Now</a></li>
|
54
54
|
</ul>', :html %>
|
55
55
|
|
56
|
-
<p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected pricing-tables from a custom package. These should be linked up following our default <a href="
|
56
|
+
<p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected pricing-tables from a custom package. These should be linked up following our default <a href="../index.html">HTML page structure</a>.</p>
|
57
57
|
|
58
58
|
<hr>
|
59
59
|
|
60
60
|
<h3>Build with a Mixin</h3>
|
61
|
-
<p>We've included SCSS mixins used to style pricing tables so that you can code how you want to. To use the mixin, you'll need to have the <a href="
|
61
|
+
<p>We've included SCSS mixins used to style pricing tables so that you can code how you want to. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_pricing-tables.scss">_pricing-tables.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
|
62
62
|
|
63
63
|
<%= code_example '
|
64
64
|
@import "foundation/foundation-global", "foundation/pricing-tables";
|
@@ -41,12 +41,12 @@
|
|
41
41
|
|
42
42
|
<div class="progress large-6 success round"><span class="meter" style="width: 40%"></span></div>
|
43
43
|
|
44
|
-
<p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected labels from a custom package. These should be linked up following our default <a href="
|
44
|
+
<p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected labels from a custom package. These should be linked up following our default <a href="../index.html">HTML page structure</a>.</p>
|
45
45
|
|
46
46
|
<hr>
|
47
47
|
|
48
48
|
<h3>Build with our Mixins</h3>
|
49
|
-
<p>We've included SCSS mixins used to style progress bars. To use the mixin, you'll need to have the <a href="
|
49
|
+
<p>We've included SCSS mixins used to style progress bars. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_progress-bars.scss">_progress-bars.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
|
50
50
|
|
51
51
|
<%= code_example '
|
52
52
|
@import "foundation/foundation-global", "foundation/labels";
|
@@ -92,12 +92,12 @@
|
|
92
92
|
<li><code>large</code>: Set the height and text of the switch to large</li>
|
93
93
|
</ul>
|
94
94
|
|
95
|
-
<p>To use these styles, make sure you have the default Foundation CSS package or that you've selected switches from a custom package. These should be linked up following our default <a href="
|
95
|
+
<p>To use these styles, make sure you have the default Foundation CSS package or that you've selected switches from a custom package. These should be linked up following our default <a href="../index.html">HTML page structure</a>.</p>
|
96
96
|
|
97
97
|
<hr>
|
98
98
|
|
99
99
|
<h3>Build with our Mixins</h3>
|
100
|
-
<p>We've included SCSS mixins used to style switches. To use the mixin, you'll need to have the <a href="
|
100
|
+
<p>We've included SCSS mixins used to style switches. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_switch.scss">_switch.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
|
101
101
|
|
102
102
|
<%= code_example '
|
103
103
|
@import "foundation/foundation-global", "foundation/switch";
|
@@ -31,7 +31,7 @@
|
|
31
31
|
<hr>
|
32
32
|
|
33
33
|
<h3>Build with our Mixins</h3>
|
34
|
-
<p>We've included SCSS mixins used to style labels. To use the mixin, you'll need to have the <a href="
|
34
|
+
<p>We've included SCSS mixins used to style labels. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_thumbs.scss">_thumbs.scss</a> from Github and throw them into a Foundation folder in your project directory. From there, you can import the files at the top of your own SCSS stylesheet, like so:</p>
|
35
35
|
|
36
36
|
<%= code_example '
|
37
37
|
@import "foundation/foundation-global", "foundation/labels";
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<h2><%= @page_title %></h2>
|
9
9
|
<h4 class="subheader">Foundation 4 typography is built with ems, making it easier to fine-tune your type across different breakpoints. By default, we include a single breakpoint in typography sizes and styles, but you can add more if you'd like.</h4>
|
10
10
|
|
11
|
-
<p>We're no longer depending on modular scale in the core of Foundation. We made an effort with this release to be dependancy free other than Sass. This way people can use whatever framework and gems they want on top of Foundation. We'll still use <a href="
|
11
|
+
<p>We're no longer depending on modular scale in the core of Foundation. We made an effort with this release to be dependancy free other than Sass. This way people can use whatever framework and gems they want on top of Foundation. We'll still use <a href="http://compass-style.org">Compass</a>.</p>
|
12
12
|
|
13
13
|
<hr>
|
14
14
|
|
data/docs/config/deploy.rb
CHANGED
@@ -8,12 +8,15 @@ set :user, application
|
|
8
8
|
set :deploy_to, "/var/www/foundation-docs"
|
9
9
|
set :deploy_via, :remote_cache
|
10
10
|
set :use_sudo, false
|
11
|
-
set :branch, "
|
11
|
+
set :branch, "master"
|
12
12
|
set :bundle_gemfile, "docs/Gemfile"
|
13
13
|
|
14
14
|
set :scm, :git
|
15
15
|
|
16
|
-
|
16
|
+
foundation1_ip = '166.78.3.108'
|
17
|
+
foundation2_ip = '166.78.18.29'
|
18
|
+
|
19
|
+
role :web, foundation1_ip, foundation2_ip
|
17
20
|
|
18
21
|
after "deploy:update_code", "deploy:generate_static_site"
|
19
22
|
set :keep_releases, 3
|
data/docs/faq.html.erb
CHANGED
@@ -7,12 +7,12 @@
|
|
7
7
|
|
8
8
|
<% @page_title = "FAQ" %>
|
9
9
|
<h2><%= @page_title %></h2>
|
10
|
-
|
10
|
+
|
11
11
|
<h4 class="subheader">We hear a lot of questions from people using Foundation and realized that a lot of the same ones were being asked. We put together this list of FAQs to help you find answers to common questions.</h4>
|
12
|
-
|
12
|
+
|
13
13
|
<h4>Why doesn't Foundation 3 support IE7 or IE8?</h4>
|
14
14
|
<p>Foundation 4 is mobile-first, meaning it relies on media queries to layer in more complex layouts and components. Browsers or devices that don't support media queries will be restricted to a simple, single-column layout. In some ways, Foundation 4 better supports IE6-7 inasmuch as it provides a mobile but not broken experience. In IE8 Foundation 4 will provide less than Foundation 3, but with IE8's market share in such steep decline we thought this was the right time.</p>
|
15
|
-
|
15
|
+
|
16
16
|
<p>If IE8 support is important for your users / customers, you can use <a href="../files/foundation-download-2.2.1.zip">Foundation 3.2</a>, which supports IE8. It's not mobile first but it's pretty good stuff.</p>
|
17
17
|
|
18
18
|
<h4>Can I use Foundation for something I'm going to sell?</h4>
|
@@ -22,7 +22,7 @@
|
|
22
22
|
<p>We try and be comprehensive in our testing, but there are thousands of devices so it's often just not feasible. We'd love to hear about Foundation's behaviour on other devices, but the list above is what we test each release on. If your browser or device is not listed your results may vary.</p>
|
23
23
|
|
24
24
|
<h4>Where can I find the Foundation 3 docs?</h4>
|
25
|
-
<p>For those of you still working on Foundation 3 sites, or who need to continue supporting IE8 with Foundation, we keep the Foundation 3 docs available. <a href="old-docs/f3">View the Foundation 3 Docs →</a></p>
|
25
|
+
<p>For those of you still working on Foundation 3 sites, or who need to continue supporting IE8 with Foundation, we keep the Foundation 3 docs available. <a href="../old-docs/f3">View the Foundation 3 Docs →</a></p>
|
26
26
|
|
27
27
|
<hr>
|
28
28
|
|
data/docs/index.html.erb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
<% @side_nav = "using" %>
|
2
|
+
|
1
3
|
<div class="row">
|
2
4
|
<div class="large-3 columns">
|
3
5
|
<%= render "_sidebar.html.erb" %>
|
@@ -176,7 +178,7 @@
|
|
176
178
|
|
177
179
|
<hr>
|
178
180
|
|
179
|
-
<h3>HTML Page Markup</h3>
|
181
|
+
<h3 id="basicHTMLMarkup">HTML Page Markup</h3>
|
180
182
|
<h5 class="subheader">Our markup structure is straight forward and gives you the flexibility you need to create to your hearts desires. Here's an example page that includes the basics:</h5>
|
181
183
|
|
182
184
|
<%= code_example '
|
data/docs/javascript.html.erb
CHANGED
data/docs/layout.html.erb
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
<li><a href="<%= docs_path %>">Docs</a></li>
|
35
35
|
<li class="divider"></li>
|
36
36
|
<li class="has-form">
|
37
|
-
<a href="
|
37
|
+
<a href="http://foundation.zurb.com/docs" class="button">Get Started</a>
|
38
38
|
</li>
|
39
39
|
</ul>
|
40
40
|
</section>
|
@@ -43,7 +43,7 @@
|
|
43
43
|
<% @page_title = "4 Documentation" %>
|
44
44
|
<div class="row">
|
45
45
|
<div class="large-12 columns">
|
46
|
-
<h1><a href="
|
46
|
+
<h1><a href="http://foundation.zurb.com/docs/">Foundation <%= @page_title %></a></h1>
|
47
47
|
<hr>
|
48
48
|
</div>
|
49
49
|
</div>
|
data/docs/rails.html.erb
CHANGED
data/docs/sass.html.erb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
Foundation.libs.topbar = {
|
7
7
|
name : 'topbar',
|
8
8
|
|
9
|
-
version : '4.
|
9
|
+
version : '4.1.0',
|
10
10
|
|
11
11
|
settings : {
|
12
12
|
index : 0,
|
@@ -15,6 +15,7 @@
|
|
15
15
|
},
|
16
16
|
|
17
17
|
init : function (scope, method, options) {
|
18
|
+
var self = this;
|
18
19
|
this.scope = scope || this.scope;
|
19
20
|
|
20
21
|
if (typeof method === 'object') {
|
@@ -22,24 +23,31 @@
|
|
22
23
|
}
|
23
24
|
|
24
25
|
if (typeof method != 'string') {
|
25
|
-
this.settings.$w = $(window);
|
26
|
-
this.settings.$topbar = $('nav.top-bar');
|
27
|
-
this.settings.$section = this.settings.$topbar.find('section');
|
28
|
-
this.settings.$titlebar = this.settings.$topbar.children('ul').first();
|
29
26
|
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
$('nav.top-bar').each(function () {
|
28
|
+
self.settings.$w = $(window);
|
29
|
+
self.settings.$topbar = $(this);
|
30
|
+
self.settings.$section = self.settings.$topbar.find('section');
|
31
|
+
self.settings.$titlebar = self.settings.$topbar.children('ul').first();
|
33
32
|
|
34
|
-
if (!this.settings.init) {
|
35
|
-
this.events();
|
36
|
-
this.assemble();
|
37
|
-
}
|
38
33
|
|
39
|
-
|
34
|
+
self.settings.$topbar.data('index', 0);
|
35
|
+
|
36
|
+
var breakpoint = $("<div class='top-bar-js-breakpoint'/>").insertAfter(self.settings.$topbar);
|
37
|
+
self.settings.breakPoint = breakpoint.width();
|
38
|
+
breakpoint.remove();
|
39
|
+
|
40
|
+
self.assemble();
|
40
41
|
|
41
|
-
|
42
|
-
|
42
|
+
if (!self.settings.$topbar.data('height')) self.largestUL();
|
43
|
+
|
44
|
+
if (self.settings.$topbar.parent().hasClass('fixed')) {
|
45
|
+
$('body').css('padding-top', this.outerHeight(this.settings.$topbar));
|
46
|
+
}
|
47
|
+
});
|
48
|
+
|
49
|
+
if (!self.settings.init) {
|
50
|
+
this.events();
|
43
51
|
}
|
44
52
|
|
45
53
|
return this.settings.init;
|
@@ -50,48 +58,58 @@
|
|
50
58
|
},
|
51
59
|
|
52
60
|
events : function () {
|
61
|
+
var self = this;
|
62
|
+
|
53
63
|
$(this.scope)
|
54
64
|
.on('click.fndtn.topbar', '.top-bar .toggle-topbar', function (e) {
|
65
|
+
var topbar = $(this).closest('.top-bar'),
|
66
|
+
section = topbar.find('section, .section'),
|
67
|
+
titlebar = topbar.children('ul').first();
|
68
|
+
|
55
69
|
e.preventDefault();
|
56
70
|
|
57
|
-
if (
|
58
|
-
|
59
|
-
|
71
|
+
if (self.breakpoint()) {
|
72
|
+
topbar
|
73
|
+
.toggleClass('expanded')
|
74
|
+
.css('min-height', '');
|
60
75
|
}
|
61
76
|
|
62
|
-
if (!
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
77
|
+
if (!topbar.hasClass('expanded')) {
|
78
|
+
section.css({left: '0%'});
|
79
|
+
section.find('>.name').css({left: '100%'});
|
80
|
+
section.find('li.moved').removeClass('moved');
|
81
|
+
topbar.data('index', 0);
|
67
82
|
}
|
68
|
-
}
|
83
|
+
})
|
69
84
|
|
70
85
|
.on('click.fndtn.topbar', '.top-bar .has-dropdown>a', function (e) {
|
71
|
-
var
|
86
|
+
var topbar = $(this).closest('.top-bar'),
|
87
|
+
section = topbar.find('section, .section'),
|
88
|
+
titlebar = topbar.children('ul').first();
|
72
89
|
|
73
|
-
if (Modernizr.touch || self.breakpoint())
|
90
|
+
if (Modernizr.touch || self.breakpoint()) {
|
74
91
|
e.preventDefault();
|
92
|
+
}
|
75
93
|
|
76
94
|
if (self.breakpoint()) {
|
77
95
|
var $this = $(this),
|
78
96
|
$selectedLi = $this.closest('li');
|
79
97
|
|
80
|
-
|
98
|
+
topbar.data('index', topbar.data('index') + 1);
|
81
99
|
$selectedLi.addClass('moved');
|
82
|
-
|
83
|
-
|
100
|
+
section.css({left: -(100 * topbar.data('index')) + '%'});
|
101
|
+
section.find('>.name').css({left: 100 * topbar.data('index') + '%'});
|
84
102
|
|
85
103
|
$this.siblings('ul')
|
86
|
-
.height(
|
87
|
-
|
88
|
-
.css('min-height',
|
104
|
+
.height(topbar.data('height') + self.outerHeight(titlebar, true));
|
105
|
+
topbar
|
106
|
+
.css('min-height', topbar.data('height') + self.outerHeight(titlebar, true) * 2)
|
89
107
|
}
|
90
108
|
});
|
91
109
|
|
92
110
|
$(window).on('resize.fndtn.topbar', function () {
|
93
111
|
if (!this.breakpoint()) {
|
94
|
-
|
112
|
+
$('.top-bar').css('min-height', '');
|
95
113
|
}
|
96
114
|
}.bind(this));
|
97
115
|
|
@@ -100,16 +118,17 @@
|
|
100
118
|
e.preventDefault();
|
101
119
|
|
102
120
|
var $this = $(this),
|
103
|
-
|
121
|
+
topbar = $this.closest('.top-bar'),
|
122
|
+
section = topbar.find('section, .section'),
|
104
123
|
$movedLi = $this.closest('li.moved'),
|
105
124
|
$previousLevelUl = $movedLi.parent();
|
106
125
|
|
107
|
-
|
108
|
-
|
109
|
-
|
126
|
+
topbar.data('index', topbar.data('index') - 1);
|
127
|
+
section.css({left: -(100 * topbar.data('index')) + '%'});
|
128
|
+
section.find('>.name').css({'left': 100 * topbar.data('index') + '%'});
|
110
129
|
|
111
|
-
if (
|
112
|
-
|
130
|
+
if (topbar.data('index') === 0) {
|
131
|
+
topbar.css('min-height', 0);
|
113
132
|
}
|
114
133
|
|
115
134
|
setTimeout(function () {
|
@@ -119,7 +138,7 @@
|
|
119
138
|
},
|
120
139
|
|
121
140
|
breakpoint : function () {
|
122
|
-
return
|
141
|
+
return $(window).width() <= this.settings.breakPoint || $('html').hasClass('lt-ie9');
|
123
142
|
},
|
124
143
|
|
125
144
|
assemble : function () {
|
@@ -155,7 +174,7 @@
|
|
155
174
|
|
156
175
|
largest.children('li').each(function () { total += self.outerHeight($(this), true); });
|
157
176
|
|
158
|
-
this.settings.height
|
177
|
+
this.settings.$topbar.data('height', total);
|
159
178
|
},
|
160
179
|
|
161
180
|
sticky : function () {
|
data/lib/foundation/version.rb
CHANGED
@@ -208,7 +208,7 @@ $topbar-media-query: "only screen and (min-width:"#{$topbar-breakpoint}")" !defa
|
|
208
208
|
display: block;
|
209
209
|
width: 100%;
|
210
210
|
padding: 12px 0 12px $topbar-height / 3;
|
211
|
-
color:
|
211
|
+
color: $topbar-link-color;
|
212
212
|
font-size: emCalc(13px);
|
213
213
|
font-weight: bold;
|
214
214
|
background: $topbar-dropdown-bg;
|
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: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sass
|
@@ -228,7 +228,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
228
228
|
version: '0'
|
229
229
|
segments:
|
230
230
|
- 0
|
231
|
-
hash:
|
231
|
+
hash: -1738311888129637075
|
232
232
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
233
233
|
none: false
|
234
234
|
requirements:
|
@@ -237,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
237
237
|
version: '0'
|
238
238
|
segments:
|
239
239
|
- 0
|
240
|
-
hash:
|
240
|
+
hash: -1738311888129637075
|
241
241
|
requirements: []
|
242
242
|
rubyforge_project:
|
243
243
|
rubygems_version: 1.8.23
|