zurb-foundation 4.0.5 → 4.0.7
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/.gitignore +1 -0
- data/Gemfile.lock +2 -2
- data/README.md +1 -0
- data/{CHANGELOG.md → docs/CHANGELOG.md} +63 -3
- data/docs/Gemfile +1 -0
- data/docs/Gemfile.lock +2 -0
- data/docs/_sidebar-components.html.erb +1 -0
- data/docs/_sidebar.html.erb +1 -0
- data/docs/changelog.html.erb +1 -205
- data/docs/components/alert-boxes.html.erb +1 -1
- data/docs/components/block-grid.html.erb +1 -1
- data/docs/components/breadcrumbs.html.erb +3 -3
- data/docs/components/button-groups.html.erb +1 -1
- data/docs/components/buttons.html.erb +1 -1
- data/docs/components/dropdown-buttons.html.erb +1 -1
- data/docs/components/dropdown.html.erb +1 -1
- data/docs/components/flex-video.html.erb +1 -1
- data/docs/components/forms.html.erb +1 -1
- data/docs/components/global.html.erb +92 -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/orbit.html.erb +10 -2
- data/docs/components/pagination.html.erb +1 -1
- data/docs/components/panels.html.erb +1 -1
- data/docs/components/pricing-tables.html.erb +1 -1
- data/docs/components/progress-bars.html.erb +2 -2
- data/docs/components/section.html.erb +18 -0
- data/docs/components/side-nav.html.erb +1 -1
- data/docs/components/split-buttons.html.erb +1 -1
- data/docs/components/sub-nav.html.erb +1 -1
- data/docs/components/switch.html.erb +1 -1
- data/docs/components/thumbnails.html.erb +1 -1
- data/docs/components/top-bar.html.erb +5 -5
- data/docs/css/docs.scss +0 -1
- data/docs/layout.html.erb +2 -3
- data/docs/sass.html.erb +21 -14
- data/js/foundation/foundation.clearing.js +2 -0
- data/js/foundation/foundation.dropdown.js +10 -10
- data/js/foundation/foundation.joyride.js +9 -12
- data/js/foundation/foundation.js +28 -2
- data/js/foundation/foundation.orbit.js +17 -9
- data/js/foundation/foundation.reveal.js +6 -2
- data/js/foundation/foundation.section.js +30 -18
- data/js/foundation/foundation.topbar.js +18 -8
- data/lib/foundation/generators/USAGE +6 -5
- data/lib/foundation/generators/install_generator.rb +9 -9
- data/lib/foundation/generators/templates/application.html.erb +40 -37
- data/lib/foundation/generators/templates/application.html.haml +5 -2
- data/lib/foundation/generators/templates/application.html.slim +6 -5
- data/lib/foundation/version.rb +1 -1
- data/scss/foundation/_foundation-global.scss +19 -4
- data/scss/foundation/components/_alert-boxes.scss +1 -1
- data/scss/foundation/components/_breadcrumbs.scss +4 -4
- data/scss/foundation/components/_button-groups.scss +8 -8
- data/scss/foundation/components/_buttons.scss +4 -3
- data/scss/foundation/components/_custom-forms.scss +175 -171
- data/scss/foundation/components/_dropdown-buttons.scss +1 -1
- data/scss/foundation/components/_dropdown.scss +1 -1
- data/scss/foundation/components/_flex-video.scss +1 -1
- data/scss/foundation/components/_forms.scss +91 -89
- data/scss/foundation/components/_global.scss +7 -2
- data/scss/foundation/components/_grid.scss +3 -3
- data/scss/foundation/components/_inline-lists.scss +1 -1
- data/scss/foundation/components/_keystrokes.scss +2 -2
- data/scss/foundation/components/_labels.scss +3 -3
- data/scss/foundation/components/_magellan.scss +1 -1
- data/scss/foundation/components/_pagination.scss +1 -1
- data/scss/foundation/components/_panels.scss +1 -1
- data/scss/foundation/components/_pricing-tables.scss +1 -1
- data/scss/foundation/components/_progress-bars.scss +2 -2
- data/scss/foundation/components/_reveal.scss +1 -1
- data/scss/foundation/components/_section.scss +1 -1
- data/scss/foundation/components/_side-nav.scss +1 -1
- data/scss/foundation/components/_split-buttons.scss +1 -1
- data/scss/foundation/components/_sub-nav.scss +1 -1
- data/scss/foundation/components/_switch.scss +3 -3
- data/scss/foundation/components/_thumbs.scss +1 -1
- data/scss/foundation/components/_top-bar.scss +4 -1
- data/scss/foundation/components/_visibility.scss +273 -274
- data/templates/project/scss/_settings.scss +4 -4
- data/templates/project/scss/app.scss +8 -8
- data/templates/upgrade/manifest.rb +7 -12
- metadata +6 -6
- data/index.html +0 -113
@@ -57,7 +57,7 @@
|
|
57
57
|
<p>We've included SCSS mixins used to style block-grids. 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/tree/master/scss/foundation/components">_foundation-global.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/tree/master/scss/foundation/components">_block-grid.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>
|
58
58
|
|
59
59
|
<%= code_example '
|
60
|
-
@import "foundation/foundation-global", "foundation/block-grid";
|
60
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/block-grid";
|
61
61
|
', :css %>
|
62
62
|
|
63
63
|
<p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure. Since we don't have any media queries baked into the mixin itself, you can apply the styles at whatever breakpoint you want! Just change the configuration within each.</p>
|
@@ -38,10 +38,10 @@
|
|
38
38
|
<hr>
|
39
39
|
|
40
40
|
<h3>Build with Mixins</h3>
|
41
|
-
<p>We've included SCSS mixins used to style
|
41
|
+
<p>We've included SCSS mixins used to style breadcrumbs. To use these mixins, 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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_breadcrumbs.scss">_breadcrumbs.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>
|
42
42
|
|
43
43
|
<%= code_example '
|
44
|
-
@import "foundation/foundation-global", "foundation/breadcrumbs";
|
44
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/breadcrumbs";
|
45
45
|
', :css %>
|
46
46
|
|
47
47
|
<p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure:</p>
|
@@ -120,7 +120,7 @@ $crumb-function-factor: 10%;
|
|
120
120
|
$crumb-border-size: 1px;
|
121
121
|
$crumb-border-style: solid;
|
122
122
|
$crumb-border-color: darken($crumb-bg, $crumb-function-factor);
|
123
|
-
$crumb-radius: $
|
123
|
+
$crumb-radius: $global-radius;
|
124
124
|
|
125
125
|
/* We use these to set various text styles for breadcrumbs. */
|
126
126
|
$crumb-font-size: emCalc(11px);
|
@@ -104,7 +104,7 @@
|
|
104
104
|
<p>We've included SCSS mixins used to style button groups. To use these mixins, 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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_buttons.scss">_buttons.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_button-groups.scss">_button-groups.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>
|
105
105
|
|
106
106
|
<%= code_example '
|
107
|
-
@import "foundation/foundation-global", "foundation/buttons", "foundation/button-groups";
|
107
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/buttons", "foundation/components/button-groups";
|
108
108
|
', :css %>
|
109
109
|
|
110
110
|
<p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure:</p>
|
@@ -69,7 +69,7 @@
|
|
69
69
|
<p>We've included SCSS mixins used to style buttons. To use these mixins, 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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_buttons.scss">_buttons.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>
|
70
70
|
|
71
71
|
<%= code_example '
|
72
|
-
@import "foundation/foundation-global", "foundation/buttons";
|
72
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/buttons";
|
73
73
|
', :css %>
|
74
74
|
|
75
75
|
<p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure:</p>
|
@@ -57,7 +57,7 @@
|
|
57
57
|
<p>We've included SCSS mixins used to style buttons. To use these mixins, 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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_buttons.scss">_buttons.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_dropdown-buttons.scss">_dropdown-buttons.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>
|
58
58
|
|
59
59
|
<%= code_example '
|
60
|
-
@import "foundation/foundation-global", "foundation/buttons", "foundation/dropdown-buttons";
|
60
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/buttons", "foundation/components/dropdown-buttons";
|
61
61
|
', :css %>
|
62
62
|
|
63
63
|
<p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure:</p>
|
@@ -60,7 +60,7 @@
|
|
60
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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_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
|
-
@import "foundation/foundation-global", "foundation/dropdown";
|
63
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/dropdown";
|
64
64
|
', :css %>
|
65
65
|
|
66
66
|
<p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure:</p>
|
@@ -55,7 +55,7 @@
|
|
55
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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_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
|
-
@import "foundation/foundation-global", "foundation/flex-video";
|
58
|
+
@import "foundation/foundation-global", "foundation/components/global" "foundation/components/flex-video";
|
59
59
|
', :css %>
|
60
60
|
|
61
61
|
<p>The markup is just like we showed you above, but you can apply the mixin to your own custom class or ID.</p>
|
@@ -332,7 +332,7 @@
|
|
332
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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_forms.scss">_forms.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_buttons.scss">_buttons.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
|
-
@import "foundation/foundation-global", "foundation/buttons", "foundation/forms";', :css %>
|
335
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/buttons", "foundation/components/forms";', :css %>
|
336
336
|
|
337
337
|
|
338
338
|
<p>We include most of the form styles by default, but the ones that are attached to HTML classes can be accessed via the mixins below. The error states have mixins, but we suggest using the classes since they are usually only visible temporarily.</p>
|
@@ -0,0 +1,92 @@
|
|
1
|
+
<% @side_nav = "css" %>
|
2
|
+
|
3
|
+
<div class="row">
|
4
|
+
<div class="large-9 push-3 columns">
|
5
|
+
<div class="row">
|
6
|
+
<div class="large-12 columns">
|
7
|
+
<% @page_title = "Global" %>
|
8
|
+
<h2><%= @page_title %></h2>
|
9
|
+
<h4 class="subheader">Every Foundation project needs gto include these global styles in order to work properly. These include things like basic formatting and global utility classes.</h4>
|
10
|
+
|
11
|
+
<hr>
|
12
|
+
|
13
|
+
<%= code_example "
|
14
|
+
/* Set box-sizing globally to handle padding and border widths */
|
15
|
+
*,
|
16
|
+
*:before,
|
17
|
+
*:after {
|
18
|
+
@include box-sizing(border-box);
|
19
|
+
}
|
20
|
+
|
21
|
+
html,
|
22
|
+
body { font-size: $base-font-size; }
|
23
|
+
|
24
|
+
/* Default body styles */
|
25
|
+
body {
|
26
|
+
background: $body-bg;
|
27
|
+
color: $body-font-color;
|
28
|
+
padding: 0;
|
29
|
+
margin: 0;
|
30
|
+
font-family: $body-font-family;
|
31
|
+
font-weight: $body-font-weight;
|
32
|
+
font-style: $body-font-style;
|
33
|
+
line-height: 1;
|
34
|
+
position: relative;
|
35
|
+
}
|
36
|
+
|
37
|
+
/* Override outline from normalize, we don't like it */
|
38
|
+
a:focus { outline: none; }
|
39
|
+
|
40
|
+
/* Grid Defaults to get images and embeds to work properly */
|
41
|
+
img,
|
42
|
+
object,
|
43
|
+
embed { max-width: 100%; height: auto; }
|
44
|
+
|
45
|
+
object,
|
46
|
+
embed { height: 100%; }
|
47
|
+
img { -ms-interpolation-mode: bicubic; }
|
48
|
+
|
49
|
+
#map_canvas,
|
50
|
+
.map_canvas {
|
51
|
+
img,
|
52
|
+
embed,
|
53
|
+
object { max-width: none !important;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
/* Miscellaneous useful HTML classes */
|
58
|
+
.left { float: left !important; }
|
59
|
+
.right { float: right !important; }
|
60
|
+
.text-left { text-align: left !important; }
|
61
|
+
.text-right { text-align: right !important; }
|
62
|
+
.text-center { text-align: center !important; }
|
63
|
+
.text-justify { text-align: justify !important; }
|
64
|
+
.hide { display: none; }
|
65
|
+
|
66
|
+
/* Font smoothing */
|
67
|
+
/* Antialiased font smoothing works best for light text on a dark background. */
|
68
|
+
/* Apply to single elements instead of globally to body. */
|
69
|
+
/* Note this only applies to webkit-based desktop browsers on the Mac. */
|
70
|
+
.antialiased { -webkit-font-smoothing: antialiased; }
|
71
|
+
|
72
|
+
/* Get rid of gap under images by making them display: inline-block; by default */
|
73
|
+
img { display: inline-block; }
|
74
|
+
|
75
|
+
/* Make sure textarea takes on height automatically */
|
76
|
+
textarea { height: auto; min-height: 50px; }
|
77
|
+
|
78
|
+
/* Make select elements 100% width by default */
|
79
|
+
select { width: 100%; }
|
80
|
+
", :css %>
|
81
|
+
|
82
|
+
</div>
|
83
|
+
</div>
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div class="large-3 pull-9 columns">
|
88
|
+
<%= render "_sidebar-components.html.erb" %>
|
89
|
+
</div>
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
@@ -44,7 +44,7 @@
|
|
44
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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_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
|
-
@import "foundation/foundation-global", "foundation/inline-lists";
|
47
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/inline-lists";
|
48
48
|
', :css %>
|
49
49
|
|
50
50
|
<h5>Quick Mixin</h5>
|
@@ -31,7 +31,7 @@
|
|
31
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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_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
|
-
@import "foundation/foundation-global", "foundation/keystrokes";
|
34
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/keystrokes";
|
35
35
|
', :css %>
|
36
36
|
|
37
37
|
<h5>Quick Mixin</h5>
|
@@ -63,7 +63,7 @@ $keystroke-bg: darken(#fff, $keystroke-function-factor);
|
|
63
63
|
$keystroke-border-style: solid;
|
64
64
|
$keystroke-border-width: 1px;
|
65
65
|
$keystroke-border-color: darken($keystroke-bg, $keystroke-function-factor);
|
66
|
-
$keystroke-radius: $
|
66
|
+
$keystroke-radius: $global-radius;', :css %>
|
67
67
|
|
68
68
|
<p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>. It is included in <strong>_foundation-global.scss</strong>.</p>
|
69
69
|
|
@@ -46,7 +46,7 @@
|
|
46
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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_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
|
-
@import "foundation/foundation-global", "foundation/labels";
|
49
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/labels";
|
50
50
|
', :css %>
|
51
51
|
|
52
52
|
<h5>Quick Mixin</h5>
|
@@ -82,7 +82,7 @@ $radius: false
|
|
82
82
|
<%= code_example '
|
83
83
|
/* We use these to style the labels */
|
84
84
|
$label-padding: emCalc(3px) emCalc(6px) emCalc(4px);
|
85
|
-
$label-radius: $
|
85
|
+
$label-radius: $global-radius;
|
86
86
|
|
87
87
|
/* We use these to style the label text */
|
88
88
|
$label-font-size: emCalc(14px);
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<h2><%= @page_title %></h2>
|
10
10
|
<h4 class="subheader">Orbit is an easy to use, powerful image slider that's responsive, allowing you to swipe on a touch-enabled device.</h4>
|
11
11
|
|
12
|
-
<ul id="featured1" data-orbit>
|
12
|
+
<ul id="featured1" data-orbit data-options="timer_speed:5000;">
|
13
13
|
<li>
|
14
14
|
<img src="../img/demos/demo1.jpg" />
|
15
15
|
<div class="orbit-caption">
|
@@ -236,7 +236,7 @@ $stack-on-small-margin-bottom: emCalc(20px); // Stack on small does not function
|
|
236
236
|
|
237
237
|
<p>Orbit options can only be passed in during initialization at this time.</p>
|
238
238
|
|
239
|
-
|
239
|
+
<%= code_example "
|
240
240
|
{
|
241
241
|
timer_speed: 10000,
|
242
242
|
animation_speed: 500,
|
@@ -258,6 +258,14 @@ $stack-on-small-margin-bottom: emCalc(20px); // Stack on small does not function
|
|
258
258
|
orbit_transition_class: 'orbit-transitioning'
|
259
259
|
}", :js %>
|
260
260
|
|
261
|
+
<p>You can also use the <code>data-options</code> attribute to pass configuration settings to Orbit. Treat it like a <code>style</code> property:</p>
|
262
|
+
|
263
|
+
<%= code_example '
|
264
|
+
<ul data-orbit data-options="timer_speed:2500; bullets:false;">
|
265
|
+
...
|
266
|
+
</ul>
|
267
|
+
', :html %>
|
268
|
+
|
261
269
|
</div>
|
262
270
|
</div>
|
263
271
|
|
@@ -91,7 +91,7 @@
|
|
91
91
|
<p>We've included SCSS mixins used to style pagination. 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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_pagination.scss">_pagination.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>
|
92
92
|
|
93
93
|
<%= code_example '
|
94
|
-
@import "foundation/foundation-global", "foundation/pagination";
|
94
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/pagination";
|
95
95
|
', :css %>
|
96
96
|
|
97
97
|
<p>If you are using the mixins, you may include the styles on whatever class or ID you'd like to the unordered list. The interior classes come with the mixin, just make sure you follow our markup structure:</p>
|
@@ -55,7 +55,7 @@
|
|
55
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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_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
|
-
@import "foundation/foundation-global", "foundation/panels";
|
58
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/panels";
|
59
59
|
', :css %>
|
60
60
|
|
61
61
|
<p>If you are using the mixins, you may include the styles on whatever class or ID you'd like to the <code><div></code>.</p>
|
@@ -61,7 +61,7 @@
|
|
61
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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_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
|
-
@import "foundation/foundation-global", "foundation/pricing-tables";
|
64
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/pricing-tables";
|
65
65
|
', :css %>
|
66
66
|
|
67
67
|
<p>If you are using the mixins, you may include the styles on whatever class or ID you'd like with the <code><ul></code> and the list items inside it.</p>
|
@@ -49,7 +49,7 @@
|
|
49
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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_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
|
-
@import "foundation/foundation-global", "foundation/
|
52
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/progress-bars";
|
53
53
|
', :css %>
|
54
54
|
|
55
55
|
<h5>Container Mixin</h5>
|
@@ -99,7 +99,7 @@ $progress-bar-height: emCalc(25px);
|
|
99
99
|
$progress-bar-border-color: darken(#fff, 20%);
|
100
100
|
$progress-bar-border-size: 1px;
|
101
101
|
$progress-bar-border-style: solid;
|
102
|
-
$progress-bar-border-radius: $
|
102
|
+
$progress-bar-border-radius: $global-radius;
|
103
103
|
|
104
104
|
/* We use these to control the margin & padding */
|
105
105
|
$progress-bar-pad: emCalc(2px);
|
@@ -150,6 +150,24 @@
|
|
150
150
|
<hr>
|
151
151
|
|
152
152
|
<h3>Variations</h3>
|
153
|
+
<h6>Accordion</h6>
|
154
|
+
<p>Adding an <code>accordion</code> class to the section container will show an accordion on both small and large screens.</p>
|
155
|
+
<%= code_example '
|
156
|
+
<div class="section-container accordion" data-section>
|
157
|
+
<section class="section">
|
158
|
+
<p class="title"><a href="#">Section 1</a></p>
|
159
|
+
<div class="content">
|
160
|
+
<p>Content of section 1.</p>
|
161
|
+
</div>
|
162
|
+
</section>
|
163
|
+
<section class="section">
|
164
|
+
<p class="title"><a href="#">Section 2</a></p>
|
165
|
+
<div class="content">
|
166
|
+
<p>Content of section 2.</p>
|
167
|
+
</div>
|
168
|
+
</section>
|
169
|
+
</div>', :html %>
|
170
|
+
|
153
171
|
<h6>Tabs/Accordion</h6>
|
154
172
|
<p>Adding a <code>tabs</code> class to the section container will enable tabs on large screens and show an accordion on small screens.</p>
|
155
173
|
<%= code_example '
|
@@ -56,7 +56,7 @@
|
|
56
56
|
<p>We've included SCSS mixins used to style side nav. 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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_side-nav.scss">_side-nav.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>
|
57
57
|
|
58
58
|
<%= code_example '
|
59
|
-
@import "foundation/foundation-global", "foundation/side-nav";
|
59
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/side-nav";
|
60
60
|
', :css %>
|
61
61
|
|
62
62
|
<h5>Quick Mixin</h5>
|
@@ -56,7 +56,7 @@
|
|
56
56
|
<p>We've included SCSS mixins used to style buttons. To use these mixins, you'll need to have the <a href="#extention-install">extension installed</a> or grab <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/_foundation-global.scss">_foundation-global.scss</a>, <a href="#https://github.com/zurb/foundation/blob/master/scss/foundation/components/_buttons.scss">_buttons.scss</a>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_split-buttons.scss">_split-buttons.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>
|
57
57
|
|
58
58
|
<%= code_example '
|
59
|
-
@import "foundation/foundation-global", "foundation/buttons", "foundation/split-buttons";
|
59
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/buttons", "foundation/components/split-buttons";
|
60
60
|
', :css %>
|
61
61
|
|
62
62
|
<p>If you are using the mixins, you may include the styles on whatever class or ID you'd like, just make sure you follow our markup structure:</p>
|
@@ -50,7 +50,7 @@
|
|
50
50
|
<p>We've included SCSS mixins used to style sub-nav. 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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_global.scss</a> and <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_sub-nav.scss">_sub-nav.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>
|
51
51
|
|
52
52
|
<%= code_example '
|
53
|
-
@import "foundation/foundation-global", "foundation/sub-nav";
|
53
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/sub-nav";
|
54
54
|
', :css %>
|
55
55
|
|
56
56
|
<h5>Quick Mixin</h5>
|
@@ -100,7 +100,7 @@
|
|
100
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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_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
|
-
@import "foundation/foundation-global", "foundation/switch";
|
103
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/switch";
|
104
104
|
', :css %>
|
105
105
|
|
106
106
|
<p>The markup is pretty simple, you'll only need a single class or ID on the container to apply the mixin.</p>
|
@@ -34,7 +34,7 @@
|
|
34
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>, <a href="https://github.com/zurb/foundation/blob/master/scss/foundation/components/_global.scss">_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
|
-
@import "foundation/foundation-global", "foundation/labels";
|
37
|
+
@import "foundation/foundation-global", "foundation/components/global", "foundation/components/labels";
|
38
38
|
', :css %>
|
39
39
|
|
40
40
|
<h5>Quick Mixin</h5>
|
@@ -22,12 +22,12 @@
|
|
22
22
|
<section class="top-bar-section">
|
23
23
|
<ul class="left">
|
24
24
|
<li class="divider"></li>
|
25
|
-
<li class="has-dropdown"><a href="<%= features_path %>">Item 1</a>
|
25
|
+
<li class="has-dropdown"><a href="<%= features_path %>">Item 1 Item 1 Item 1</a>
|
26
26
|
|
27
27
|
<ul class="dropdown">
|
28
|
-
<li><label>Level One</label></li>
|
28
|
+
<!-- <li><label>Level One</label></li> -->
|
29
29
|
<li><a href="#">Sub-item 1</a></li>
|
30
|
-
<li><a href="#">Sub-item 2</a></li>
|
30
|
+
<!-- <li><a href="#">Sub-item 2</a></li>
|
31
31
|
<li class="divider"></li>
|
32
32
|
<li><a href="#">Sub-item 3</a></li>
|
33
33
|
<li class="has-dropdown"><a href="#">Sub-item 4</a>
|
@@ -56,10 +56,10 @@
|
|
56
56
|
<li><a href="#">Sub-item 4</a>
|
57
57
|
</ul>
|
58
58
|
</li>
|
59
|
-
<li><a href="#">Sub-item 5</a></li>
|
59
|
+
<li><a href="#">Sub-item 5</a></li> -->
|
60
60
|
</ul>
|
61
61
|
</li>
|
62
|
-
<li class="divider"></li>
|
62
|
+
<!-- <li class="divider"></li> -->
|
63
63
|
</ul>
|
64
64
|
<!-- Right Nav Section -->
|
65
65
|
<ul class="right">
|
data/docs/css/docs.scss
CHANGED
data/docs/layout.html.erb
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
<link rel="stylesheet" href="<%= asset_path %>/docs.css" />
|
10
10
|
<script src="<%= asset_path %>/vendor/custom.modernizr.js"></script>
|
11
11
|
</head>
|
12
|
-
<body>
|
12
|
+
<body class="antialiased">
|
13
13
|
|
14
14
|
<nav class="top-bar">
|
15
15
|
<ul class="title-area">
|
@@ -109,8 +109,7 @@
|
|
109
109
|
</script>
|
110
110
|
<script src="<%= asset_path %>/docs.js"></script>
|
111
111
|
<script>
|
112
|
-
$(document).foundation()
|
113
|
-
.foundation('joyride', 'start');
|
112
|
+
$(document).foundation();
|
114
113
|
</script>
|
115
114
|
</body>
|
116
115
|
</html>
|
data/docs/sass.html.erb
CHANGED
@@ -202,7 +202,7 @@ bundle exec compass create . -r zurb-foundation --using foundation
|
|
202
202
|
<hr>
|
203
203
|
|
204
204
|
<h3>Foundation Global Settings and Mixins</h3>
|
205
|
-
<p>We've
|
205
|
+
<p>We've included a global settings file that holds variables and mixins that are used throughout the entirety of Foundation. Here's a look at that file:</p>
|
206
206
|
|
207
207
|
<%= code_example '
|
208
208
|
// Foundation Global Function, Variables and Mixins
|
@@ -210,7 +210,11 @@ bundle exec compass create . -r zurb-foundation --using foundation
|
|
210
210
|
// Variables
|
211
211
|
//
|
212
212
|
|
213
|
-
//
|
213
|
+
// The default font-size is set to 100% of the browser style sheet (usually 16px)
|
214
|
+
// for compatibility with brower-based text zoom or user-set defaults.
|
215
|
+
$base-font-size: 100%;
|
216
|
+
|
217
|
+
// Set your base font-size in pixels so emCalc can do its magic below
|
214
218
|
$em-base: 16px;
|
215
219
|
|
216
220
|
// We use these to control various global styles
|
@@ -220,9 +224,6 @@ $body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
|
|
220
224
|
$body-font-weight: normal;
|
221
225
|
$body-font-style: normal;
|
222
226
|
|
223
|
-
// We use this to control font-smoothing
|
224
|
-
$font-smoothing: antialiased;
|
225
|
-
|
226
227
|
// We use these to control text direction settings
|
227
228
|
$text-direction: ltr;
|
228
229
|
|
@@ -245,6 +246,21 @@ $shiny-edge-active-color: rgba(#000, .2);
|
|
245
246
|
$include-html-classes: true;
|
246
247
|
$include-print-styles: true;
|
247
248
|
|
249
|
+
// Modular html classes
|
250
|
+
$include-html-grid-classes: $include-html-classes;
|
251
|
+
$include-html-visibility-classes: $include-html-classes;
|
252
|
+
$include-html-button-classes: $include-html-classes;
|
253
|
+
$include-html-form-classes: $include-html-classes;
|
254
|
+
$include-html-media-classes: $include-html-classes;
|
255
|
+
$include-html-section-classes: $include-html-classes;
|
256
|
+
$include-html-reveal-classes: $include-html-classes;
|
257
|
+
$include-html-alert-classes: $include-html-classes;
|
258
|
+
$include-html-nav-classes: $include-html-classes;
|
259
|
+
$include-html-label-classes: $include-html-classes;
|
260
|
+
$include-html-panel-classes: $include-html-classes;
|
261
|
+
$include-html-pricing-classes: $include-html-classes;
|
262
|
+
$include-html-progress-classes: $include-html-classes;
|
263
|
+
|
248
264
|
|
249
265
|
//
|
250
266
|
// Functions
|
@@ -350,15 +366,6 @@ $include-print-styles: true;
|
|
350
366
|
&:after { clear: both; }
|
351
367
|
}
|
352
368
|
|
353
|
-
// Media Queries
|
354
|
-
$small-screen: emCalc(768px);
|
355
|
-
$medium-screen: emCalc(1280px);
|
356
|
-
$large-screen: emCalc(1440px);
|
357
|
-
|
358
|
-
$small: "only screen and (min-width:"#{$small-screen}")" !default;
|
359
|
-
$medium: "only screen and (min-width:"#{$medium-screen}")" !default;
|
360
|
-
$large: "only screen and (min-width:"#{$large-screen}")" !default;
|
361
|
-
|
362
369
|
', :css %>
|
363
370
|
|
364
371
|
|