zurb-foundation 4.3.0 → 4.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/.gitignore +1 -0
  2. data/Gemfile.lock +1 -1
  3. data/README.md +8 -8
  4. data/docs/CHANGELOG.md +9 -1
  5. data/docs/Gemfile +5 -2
  6. data/docs/Gemfile.lock +19 -6
  7. data/docs/changelog.html.erb +1 -1
  8. data/docs/components/abide.html.erb +3 -3
  9. data/docs/components/alert-boxes.html.erb +3 -1
  10. data/docs/components/block-grid.html.erb +7 -5
  11. data/docs/components/breadcrumbs.html.erb +3 -1
  12. data/docs/components/button-groups.html.erb +4 -1
  13. data/docs/components/buttons.html.erb +3 -2
  14. data/docs/components/dropdown-buttons.html.erb +4 -1
  15. data/docs/components/dropdown.html.erb +6 -4
  16. data/docs/components/flex-video.html.erb +3 -1
  17. data/docs/components/grid.html.erb +4 -4
  18. data/docs/components/inline-lists.html.erb +3 -1
  19. data/docs/components/keystrokes.html.erb +3 -1
  20. data/docs/components/kitchen-sink.html.erb +13 -8
  21. data/docs/components/labels.html.erb +3 -1
  22. data/docs/components/pagination.html.erb +3 -1
  23. data/docs/components/panels.html.erb +3 -1
  24. data/docs/components/pricing-tables.html.erb +3 -1
  25. data/docs/components/progress-bars.html.erb +3 -1
  26. data/docs/components/reveal.html.erb +9 -1
  27. data/docs/components/section.html.erb +7 -7
  28. data/docs/components/side-nav.html.erb +3 -1
  29. data/docs/components/split-buttons.html.erb +4 -1
  30. data/docs/components/sub-nav.html.erb +3 -1
  31. data/docs/components/thumbnails.html.erb +3 -1
  32. data/docs/controller.rb +17 -2
  33. data/docs/css/docs.scss +103 -8
  34. data/docs/index.html.erb +9 -0
  35. data/docs/layout.html.erb +2 -1
  36. data/js/foundation/foundation.clearing.js +1 -1
  37. data/js/foundation/foundation.forms.js +1 -1
  38. data/js/foundation/foundation.js +3 -9
  39. data/js/foundation/foundation.orbit.js +15 -8
  40. data/js/foundation/foundation.section.js +3 -4
  41. data/js/foundation/foundation.topbar.js +3 -3
  42. data/lib/foundation/generators/templates/application.html.slim +3 -3
  43. data/lib/foundation/version.rb +1 -1
  44. data/scss/foundation/_variables.scss +0 -1
  45. data/scss/foundation/components/_buttons.scss +0 -1
  46. data/scss/foundation/components/_forms.scss +12 -7
  47. data/scss/foundation/components/_orbit.scss +12 -2
  48. metadata +4 -4
@@ -46,7 +46,9 @@
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/_variables.scss">_variables.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/variables", "foundation/components/global", "foundation/components/labels";
49
+ @import "foundation/variables";
50
+ @import "foundation/components/global";
51
+ @import "foundation/components/labels";
50
52
  ', :css %>
51
53
 
52
54
  <h5>Quick Mixin</h5>
@@ -91,7 +91,9 @@
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/_variables.scss">_variables.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/variables", "foundation/components/global", "foundation/components/pagination";
94
+ @import "foundation/variables";
95
+ @import "foundation/components/global";
96
+ @import "foundation/components/pagination";
95
97
  ', :css %>
96
98
 
97
99
  <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,9 @@
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/_variables.scss">_variables.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/variables", "foundation/components/global", "foundation/components/panels";
58
+ @import "foundation/variables";
59
+ @import "foundation/components/global";
60
+ @import "foundation/components/panels";
59
61
  ', :css %>
60
62
 
61
63
  <p>If you are using the mixins, you may include the styles on whatever class or ID you'd like to the <code>&lt;div&gt;</code>.</p>
@@ -61,7 +61,9 @@
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/_variables.scss">_variables.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/variables", "foundation/components/global", "foundation/components/pricing-tables";
64
+ @import "foundation/variables";
65
+ @import "foundation/components/global";
66
+ @import "foundation/components/pricing-tables";
65
67
  ', :css %>
66
68
 
67
69
  <p>If you are using the mixins, you may include the styles on whatever class or ID you'd like with the <code>&lt;ul&gt;</code> and the list items inside it.</p>
@@ -49,7 +49,9 @@
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/_variables.scss">_variables.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/variables", "foundation/components/global", "foundation/components/progress-bars";
52
+ @import "foundation/variables";
53
+ @import "foundation/components/global";
54
+ @import "foundation/components/progress-bars";
53
55
  ', :css %>
54
56
 
55
57
  <h5>Container Mixin</h5>
@@ -42,6 +42,12 @@
42
42
 
43
43
  <p>For these styles to come across, make sure you have the default Foundation CSS package or that you've selected reveal from a custom package. These should be linked up following our default <a href="#">HTML page structure</a>.</p>
44
44
 
45
+ <p>The background element is appended to the end of the <code>body</code> element. If you would like to override this functionality you can add your own Reveal background anywhere on the page; this will allow you to style if if your scope is smaller than the body of the page.</p>
46
+
47
+ <%= code_example '
48
+ <div class="reveal-modal-bg" style="display: none"></div>
49
+ ', :html %>
50
+
45
51
  <h5>Firing a Reveal Modal</h5>
46
52
  <p>To launch a modal, just add a <code>data-reveal-id</code> to the object which you want to fire the modal when clicked. The <code>data-reveal-id</code> needs to match the <code>id</code> of your reveal.</p>
47
53
 
@@ -106,7 +112,9 @@ $('#myModal').foundation('reveal', 'open', {
106
112
  <p>We've included SCSS mixins used to style reveal. 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/_variables.scss">_variables.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">_reveal.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>
107
113
 
108
114
  <%= code_example '
109
- @import "foundation/variables", "foundation/components/global", "foundation/components/reveal";
115
+ @import "foundation/variables";
116
+ @import "foundation/components/global";
117
+ @import "foundation/components/reveal";
110
118
  ', :css %>
111
119
 
112
120
  <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>
@@ -660,7 +660,7 @@ $section-border-color: $section-border-color', :css %>
660
660
  @include section-container(false,$section-type:tabs);
661
661
  & > section { @include section($section-type:tabs, $title-selector:".title-sample", $content-selector:".content-sample"); }
662
662
  }
663
- }', :css %>
663
+ }', :sass %>
664
664
 
665
665
  <div class="section-auto-sample" data-section="auto">
666
666
  <section>
@@ -701,7 +701,7 @@ $section-border-color: $section-border-color', :css %>
701
701
  .section-auto-sample-accordion {
702
702
  @include section-container($section-type:accordion);
703
703
  & > section { @include section($section-type:accordion, $title-selector:".title-sample", $content-selector:".content-sample"); }
704
- }', :css %>
704
+ }', :sass %>
705
705
 
706
706
  <div class="section-auto-sample-accordion" data-section="accordion">
707
707
  <section>
@@ -742,7 +742,7 @@ $section-border-color: $section-border-color', :css %>
742
742
  .section-auto-sample-tabs {
743
743
  @include section-container($section-type:tabs);
744
744
  & > section { @include section($section-type:tabs, $title-selector:".title-sample", $content-selector:".content-sample"); }
745
- }', :css %>
745
+ }', :sass %>
746
746
 
747
747
  <div class="section-auto-sample-tabs" data-section="tabs">
748
748
  <section>
@@ -789,7 +789,7 @@ $section-border-color: $section-border-color', :css %>
789
789
  @include section-container($section-type:vertical-tabs);
790
790
  & > section { @include section($section-type:vertical-tabs, $title-selector:".title-sample", $content-selector:".content-sample"); }
791
791
  }
792
- }', :css %>
792
+ }', :sass %>
793
793
 
794
794
  <div class="section-auto-sample-vtabs" data-section="vertical-tabs">
795
795
  <section>
@@ -847,7 +847,7 @@ $section-border-color: $section-border-color', :css %>
847
847
  @include section-container($section-type:vertical-nav);
848
848
  & > section { @include section($section-type:vertical-nav, $title-selector:".title-sample", $content-selector:".content-sample"); }
849
849
  }
850
- }', :css %>
850
+ }', :sass %>
851
851
 
852
852
  <div class="nav-container">
853
853
  <nav>
@@ -900,7 +900,7 @@ $section-border-color: $section-border-color', :css %>
900
900
  @include section-container($section-type:horizontal-nav);
901
901
  & > section { @include section($section-type:horizontal-nav, $title-selector:".title-sample", $content-selector:".content-sample"); }
902
902
  }
903
- }', :css %>
903
+ }', :sass %>
904
904
 
905
905
  <div class="section-auto-sample-hnav" data-section="horizontal-nav">
906
906
  <section>
@@ -941,7 +941,7 @@ $section-border-color: $section-border-color', :css %>
941
941
  .section-auto-sample-custom {
942
942
  @include section-container($section-type:tabs);
943
943
  & > section { @include section($section-type:tabs, $title-selector:".title-sample", $content-selector:".content-sample", $title-padding: 10px 50px, $title-color:#000, $title-bg:pink, $title-bg-hover:darken(pink,5%), $title-bg-active: #fff, $title-color-active: darken(pink,10%)); }
944
- }', :css %>
944
+ }', :sass %>
945
945
 
946
946
  <div class="section-auto-sample-custom" data-section="tabs">
947
947
  <section>
@@ -56,7 +56,9 @@
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/_variables.scss">_variables.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/variables", "foundation/components/global", "foundation/components/side-nav";
59
+ @import "foundation/variables";
60
+ @import "foundation/components/global";
61
+ @import "foundation/components/side-nav";
60
62
  ', :css %>
61
63
 
62
64
  <h5>Quick Mixin</h5>
@@ -79,7 +79,10 @@
79
79
  <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/_variables.scss">_variables.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>
80
80
 
81
81
  <%= code_example '
82
- @import "foundation/variables", "foundation/components/global", "foundation/components/buttons", "foundation/components/split-buttons";
82
+ @import "foundation/variables";
83
+ @import "foundation/components/global";
84
+ @import "foundation/components/buttons";
85
+ @import "foundation/components/split-buttons";
83
86
  ', :css %>
84
87
 
85
88
  <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,9 @@
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/_variables.scss">_variables.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/variables", "foundation/components/global", "foundation/components/sub-nav";
53
+ @import "foundation/variables";
54
+ @import "foundation/components/global";
55
+ @import "foundation/components/sub-nav";
54
56
  ', :css %>
55
57
 
56
58
  <h5>Quick Mixin</h5>
@@ -34,7 +34,9 @@
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/_variables.scss">_variables.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/variables", "foundation/components/global", "foundation/components/thumbs";
37
+ @import "foundation/variables";
38
+ @import "foundation/components/global";
39
+ @import "foundation/components/thumbs";
38
40
  ', :css %>
39
41
 
40
42
  <h5>Quick Mixin</h5>
@@ -1,4 +1,5 @@
1
1
  require 'socket'
2
+ require 'rouge'
2
3
  layout 'layout.html.erb'
3
4
 
4
5
  ignore /css\//
@@ -19,8 +20,22 @@ helpers do
19
20
  end
20
21
  end
21
22
 
22
- def code_example(code, lang=:ruby)
23
- "<div class='#{lang}'>" + CodeRay.scan(code, lang).div(:css => :class) + "</div>"
23
+ def code_example(code, lang=:ruby)
24
+ l = case lang
25
+ when :ruby then "Ruby"
26
+ when :bash then "Shell"
27
+ when :html then "HTML"
28
+ when :sass then "Sass"
29
+ when :scss then "Sass"
30
+ when :css then "Sass"
31
+ when :js then "Javascript"
32
+ when :json then "JSON"
33
+ else
34
+ "Shell"
35
+ end
36
+ formatter = Rouge::Formatters::HTML.new(:css_class => "")
37
+ lexer = Kernel.eval("Rouge::Lexers::#{l}")
38
+ "<div class='#{lang}'><div class='highlight'>" + formatter.format(lexer.lex(code)) + "</div></div>"
24
39
  end
25
40
 
26
41
  def foundation_home_path
@@ -1,19 +1,42 @@
1
1
  @import "settings";
2
2
  @import "foundation";
3
- @import "coderay";
3
+ //@import "coderay";
4
4
  @import "footer";
5
5
  @import "offcanvas";
6
6
 
7
- /* Documentation Overrides */
7
+ ol, li {list-style:none;}
8
+
9
+ #changelog {
10
+ ol, li {list-style: disc; margin-left: 30px;}
11
+ }
12
+
13
+ /* Pygments */
14
+
15
+ .highlight {
16
+ background-color: #eee;
17
+ border: 1px solid #CCC;
18
+ font-family: 'Consolas', 'Liberation Mono', Courier, monospace;
19
+ color: #000;
20
+ padding: .8em 0 .8em .8em;
21
+ margin-bottom: 1.3em;
22
+ overflow: auto;
23
+ }
24
+
25
+ .highlight pre {
26
+ margin: 0px;
27
+ font-size: .7em;
28
+ line-height: 1.4em;
29
+ white-space: pre-wrap;
30
+ @media only screen and (min-width: 768px) { font-size: .9em; white-space: pre; }
31
+ }
8
32
 
9
- /* Coderay styles */
10
33
  .html, .css, .scss, .js { position: relative; }
11
34
 
12
- .CodeRay {
35
+ .highlight {
13
36
  ul, ol, dl { list-style-position: inside; }
14
37
  }
15
38
 
16
- .CodeRay:before {
39
+ .highlight:before {
17
40
  position: absolute;
18
41
  top: 6px;
19
42
  right: 6px;
@@ -21,9 +44,79 @@
21
44
  color: #ccc;
22
45
  font-size: .75em;
23
46
  }
24
- .html > .CodeRay:before { content: "HTML"; }
25
- .css > .CodeRay:before { content: "SCSS"; }
26
- .js > .CodeRay:before { content: "JS"; }
47
+
48
+ .html > .highlight:before {content:"HTML";}
49
+ .scss > .highlight:before {content:"SCSS";}
50
+ .css > .highlight:before {content:"SCSS";}
51
+ .sass > .highlight:before {content:"SCSS";}
52
+ .js > .highlight:before {content:"JS";}
53
+ .json > .highlight:before {content:"JSON";}
54
+
55
+ .highlight {
56
+ .hll { background-color: #ffffcc }
57
+ .c { color: #999988; font-style: italic } /* Comment */
58
+ .err { color: #a61717; background-color: #e3d2d2 } /* Error */
59
+ .k { color: #000000; font-weight: bold } /* Keyword */
60
+ .o { color: #000000; font-weight: bold } /* Operator */
61
+ .cm { color: #999988; font-style: italic } /* Comment.Multiline */
62
+ .cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */
63
+ .c1 { color: #999988; font-style: italic } /* Comment.Single */
64
+ .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
65
+ .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
66
+ .ge { color: #000000; font-style: italic } /* Generic.Emph */
67
+ .gr { color: #aa0000 } /* Generic.Error */
68
+ .gh { color: #999999 } /* Generic.Heading */
69
+ .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
70
+ .go { color: #888888 } /* Generic.Output */
71
+ .gp { color: #555555 } /* Generic.Prompt */
72
+ .gs { font-weight: bold } /* Generic.Strong */
73
+ .gu { color: #aaaaaa } /* Generic.Subheading */
74
+ .gt { color: #aa0000 } /* Generic.Traceback */
75
+ .kc { color: #000000; font-weight: bold } /* Keyword.Constant */
76
+ .kd { color: #000000; font-weight: bold } /* Keyword.Declaration */
77
+ .kn { color: #000000; font-weight: bold } /* Keyword.Namespace */
78
+ .kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */
79
+ .kr { color: #000000; font-weight: bold } /* Keyword.Reserved */
80
+ .kt { color: #445588; font-weight: bold } /* Keyword.Type */
81
+ .m { color: #009999 } /* Literal.Number */
82
+ .s { color: #d01040 } /* Literal.String */
83
+ .na { color: #008080 } /* Name.Attribute */
84
+ .nb { color: #0086B3 } /* Name.Builtin */
85
+ .nc { color: #445588; font-weight: bold } /* Name.Class */
86
+ .no { color: #008080 } /* Name.Constant */
87
+ .nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
88
+ .ni { color: #800080 } /* Name.Entity */
89
+ .ne { color: #990000; font-weight: bold } /* Name.Exception */
90
+ .nf { color: #990000; font-weight: bold } /* Name.Function */
91
+ .nl { color: #990000; font-weight: bold } /* Name.Label */
92
+ .nn { color: #555555 } /* Name.Namespace */
93
+ .nt { color: #000080 } /* Name.Tag */
94
+ .nv { color: #008080 } /* Name.Variable */
95
+ .ow { color: #000000; font-weight: bold } /* Operator.Word */
96
+ .w { color: #bbbbbb } /* Text.Whitespace */
97
+ .mf { color: #009999 } /* Literal.Number.Float */
98
+ .mh { color: #009999 } /* Literal.Number.Hex */
99
+ .mi { color: #009999 } /* Literal.Number.Integer */
100
+ .mo { color: #009999 } /* Literal.Number.Oct */
101
+ .sb { color: #d01040 } /* Literal.String.Backtick */
102
+ .sc { color: #d01040 } /* Literal.String.Char */
103
+ .sd { color: #d01040 } /* Literal.String.Doc */
104
+ .s2 { color: #d01040 } /* Literal.String.Double */
105
+ .se { color: #d01040 } /* Literal.String.Escape */
106
+ .sh { color: #d01040 } /* Literal.String.Heredoc */
107
+ .si { color: #d01040 } /* Literal.String.Interpol */
108
+ .sx { color: #d01040 } /* Literal.String.Other */
109
+ .sr { color: #009926 } /* Literal.String.Regex */
110
+ .s1 { color: #d01040 } /* Literal.String.Single */
111
+ .ss { color: #990073 } /* Literal.String.Symbol */
112
+ .bp { color: #999999 } /* Name.Builtin.Pseudo */
113
+ .vc { color: #008080 } /* Name.Variable.Class */
114
+ .vg { color: #008080 } /* Name.Variable.Global */
115
+ .vi { color: #008080 } /* Name.Variable.Instance */
116
+ .il { color: #009999 } /* Literal.Number.Integer.Long */
117
+ }
118
+
119
+
27
120
 
28
121
  /* Docs Footer Styles */
29
122
  .row.full-width {
@@ -35,6 +128,8 @@ footer.row.full-width {
35
128
  font-size: 14px;
36
129
  }
37
130
 
131
+ #kitchen-sink .f-dropdown.content {padding:0 !important;}
132
+
38
133
  #copyright {
39
134
  background: #3f3f3f;
40
135
  color: #fff;
@@ -134,6 +134,15 @@
134
134
  </div>
135
135
  </div>
136
136
 
137
+ <div class="row">
138
+ <div class="large-4 columns">
139
+ <dl>
140
+ <dt><h5><a href="components/abide.html">Abide</a></h5></dt>
141
+ <dd>Abide is an HTML5 form validation library that supports the native API by using patterns and required attributes.</dd>
142
+ </dl>
143
+ </div>
144
+ </div>
145
+
137
146
  <hr>
138
147
 
139
148
  <h3>How is a project structured?</h3>
@@ -179,7 +179,7 @@
179
179
  <nav id="sideMenu" role="navigation">
180
180
  <ul id="sideMainNav" class="nav-bar">
181
181
  <li class="show-for-small">
182
- <a href="index.php">Home</a>
182
+ <a href="index.html">Home</a>
183
183
  </li>
184
184
  <li>
185
185
  <a href="http://foundation.zurb.com/grid.php">Features</a>
@@ -334,6 +334,7 @@
334
334
  $('#start-jr').on('click', function() {
335
335
  $(document).foundation('joyride','start');
336
336
  });
337
+
337
338
  </script>
338
339
  </body>
339
340
  </html>
@@ -6,7 +6,7 @@
6
6
  Foundation.libs.clearing = {
7
7
  name : 'clearing',
8
8
 
9
- version : '4.2.2',
9
+ version: '4.3.1',
10
10
 
11
11
  settings : {
12
12
  templates : {
@@ -530,4 +530,4 @@
530
530
  }
531
531
  return $();
532
532
  };
533
- }(Foundation.zj, this, this.document));
533
+ }(Foundation.zj, this, this.document));
@@ -166,7 +166,7 @@ if (typeof jQuery === "undefined" &&
166
166
  window.Foundation = {
167
167
  name : 'Foundation',
168
168
 
169
- version : '4.3.0',
169
+ version : '4.3.1',
170
170
 
171
171
  cache : {},
172
172
 
@@ -401,7 +401,7 @@ if (typeof jQuery === "undefined" &&
401
401
  return el.outerHeight();
402
402
  };
403
403
 
404
- lib.outerWidth = function (el) {
404
+ lib.outerWidth = function (el, bool) {
405
405
  if (typeof Zepto === 'function') {
406
406
  return el.width();
407
407
  }
@@ -425,13 +425,7 @@ if (typeof jQuery === "undefined" &&
425
425
  return true;
426
426
  },
427
427
 
428
- zj : function () {
429
- if (typeof Zepto !== 'undefined') {
430
- return Zepto;
431
- } else {
432
- return jQuery;
433
- }
434
- }()
428
+ zj : $
435
429
  };
436
430
 
437
431
  $.fn.foundation = function () {
@@ -4,6 +4,11 @@
4
4
  var noop = function() {};
5
5
 
6
6
  var Orbit = function(el, settings) {
7
+ // Don't reinitialize plugin
8
+ if (el.hasClass(settings.slides_container_class)) {
9
+ return this;
10
+ }
11
+
7
12
  var self = this,
8
13
  container,
9
14
  slides_container = el,
@@ -195,6 +200,7 @@
195
200
  animate = new SlideAnimation(slides_container);
196
201
  container.on('click', '.'+settings.next_class, self.next);
197
202
  container.on('click', '.'+settings.prev_class, self.prev);
203
+ container.on('click', '[data-orbit-slide]', self.link_bullet);
198
204
  container.on('click', self.toggle_timer);
199
205
  container.on('touchstart.fndtn.orbit', function(e) {
200
206
  if (!e.touches) {e = e.originalEvent;}
@@ -245,7 +251,6 @@
245
251
  });
246
252
 
247
253
  $(document).on('click', '[data-orbit-link]', self.link_custom);
248
- $(document).on('click', '[data-orbit-slide]', self.link_bullet)
249
254
  $(window).on('resize', self.compute_dimensions);
250
255
  $(window).on('load', self.compute_dimensions);
251
256
  slides_container.trigger('orbit:ready');
@@ -304,18 +309,20 @@
304
309
 
305
310
  var SlideAnimation = function(container) {
306
311
  var duration = 400;
312
+ var is_rtl = ($('html[dir=rtl]').length === 1);
313
+ var margin = is_rtl ? 'marginRight' : 'marginLeft';
307
314
 
308
315
  this.next = function(current, next, callback) {
309
- next.animate({'marginLeft': '0%'}, duration, 'linear', function() {
310
- current.css('marginLeft', '100%');
316
+ next.animate({margin: '0%'}, duration, 'linear', function() {
317
+ current.css(margin, '100%');
311
318
  callback();
312
319
  });
313
320
  };
314
321
 
315
322
  this.prev = function(current, prev, callback) {
316
- prev.css('marginLeft', '-100%');
317
- prev.animate({'marginLeft':'0%'}, duration, 'linear', function() {
318
- current.css('marginLeft', '100%');
323
+ prev.css(margin, '-100%');
324
+ prev.animate({margin:'0%'}, duration, 'linear', function() {
325
+ current.css(margin, '100%');
319
326
  callback();
320
327
  });
321
328
  };
@@ -347,7 +354,7 @@
347
354
  Foundation.libs.orbit = {
348
355
  name: 'orbit',
349
356
 
350
- version: '4.3.0',
357
+ version: '4.3.1',
351
358
 
352
359
  settings: {
353
360
  animation: 'slide',
@@ -402,4 +409,4 @@
402
409
  };
403
410
 
404
411
 
405
- }(Foundation.zj, this, this.document));
412
+ }(Foundation.zj, this, this.document));