zurb-foundation 4.2.3 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. data/CONTRIBUTING.md +1 -1
  2. data/Gemfile.lock +1 -1
  3. data/README.md +8 -0
  4. data/docs/CHANGELOG.md +17 -0
  5. data/docs/README.md +3 -1
  6. data/docs/_sidebar-components.html.erb +2 -1
  7. data/docs/_sidebar.html.erb +2 -1
  8. data/docs/compile.rb +8 -1
  9. data/docs/components/abide.html.erb +371 -0
  10. data/docs/components/alert-boxes.html.erb +12 -9
  11. data/docs/components/block-grid.html.erb +1 -1
  12. data/docs/components/breadcrumbs.html.erb +7 -5
  13. data/docs/components/button-groups.html.erb +4 -2
  14. data/docs/components/buttons.html.erb +13 -9
  15. data/docs/components/clearing.html.erb +2 -0
  16. data/docs/components/dropdown-buttons.html.erb +59 -55
  17. data/docs/components/dropdown.html.erb +34 -32
  18. data/docs/components/flex-video.html.erb +4 -2
  19. data/docs/components/forms.html.erb +16 -15
  20. data/docs/components/global.html.erb +27 -4
  21. data/docs/components/grid.html.erb +21 -3
  22. data/docs/components/inline-lists.html.erb +8 -3
  23. data/docs/components/joyride.html.erb +5 -3
  24. data/docs/components/keystrokes.html.erb +4 -2
  25. data/docs/components/kitchen-sink.html.erb +15 -40
  26. data/docs/components/labels.html.erb +4 -2
  27. data/docs/components/magellan.html.erb +4 -2
  28. data/docs/components/orbit.html.erb +39 -27
  29. data/docs/components/pagination.html.erb +10 -8
  30. data/docs/components/panels.html.erb +7 -3
  31. data/docs/components/pricing-tables.html.erb +12 -10
  32. data/docs/components/progress-bars.html.erb +6 -4
  33. data/docs/components/reveal.html.erb +7 -28
  34. data/docs/components/section.html.erb +15 -13
  35. data/docs/components/side-nav.html.erb +5 -3
  36. data/docs/components/split-buttons.html.erb +45 -43
  37. data/docs/components/sub-nav.html.erb +7 -5
  38. data/docs/components/switch.html.erb +3 -1
  39. data/docs/components/tables.html.erb +8 -6
  40. data/docs/components/thumbnails.html.erb +2 -0
  41. data/docs/components/tooltips.html.erb +6 -4
  42. data/docs/components/top-bar.html.erb +9 -8
  43. data/docs/components/type.html.erb +20 -18
  44. data/docs/config.ru +2 -1
  45. data/docs/css/_footer.scss +420 -0
  46. data/docs/css/_offcanvas.scss +140 -0
  47. data/docs/css/docs.scss +10 -1
  48. data/docs/fonts/ProximaNova-Reg-webfont.eot +0 -0
  49. data/docs/fonts/ProximaNova-Reg-webfont.svg +244 -0
  50. data/docs/fonts/ProximaNova-Reg-webfont.ttf +0 -0
  51. data/docs/fonts/ProximaNova-Reg-webfont.woff +0 -0
  52. data/docs/fonts/proximanovacond-bold-webfont.eot +0 -0
  53. data/docs/fonts/proximanovacond-bold-webfont.svg +247 -0
  54. data/docs/fonts/proximanovacond-bold-webfont.ttf +0 -0
  55. data/docs/fonts/proximanovacond-bold-webfont.woff +0 -0
  56. data/docs/img/demos/orbit/demo1.jpg +0 -0
  57. data/docs/img/demos/orbit/demo2.jpg +0 -0
  58. data/docs/img/demos/orbit/demo3.jpg +0 -0
  59. data/docs/img/icons/footer-icons.png +0 -0
  60. data/docs/img/icons/footer-top-icons.png +0 -0
  61. data/docs/img/icons/social.png +0 -0
  62. data/docs/img/offcanvas/footer-icons.png +0 -0
  63. data/docs/img/offcanvas/menu-wht.png +0 -0
  64. data/docs/img/offcanvas/search.png +0 -0
  65. data/docs/img/offcanvas/zurb-logo.png +0 -0
  66. data/docs/img/offcanvas/zurb-wht.png +0 -0
  67. data/docs/js/docs.js +1 -0
  68. data/docs/js/jquery.offcanvas.js +28 -0
  69. data/docs/layout.html.erb +226 -42
  70. data/docs/media-queries.html.erb +3 -3
  71. data/docs/sass.html.erb +142 -142
  72. data/docs/support.html.erb +1 -1
  73. data/js/foundation/foundation.abide.js +194 -0
  74. data/js/foundation/foundation.dropdown.js +8 -9
  75. data/js/foundation/foundation.forms.js +11 -3
  76. data/js/foundation/foundation.interchange.js +25 -16
  77. data/js/foundation/foundation.joyride.js +9 -3
  78. data/js/foundation/foundation.js +2 -3
  79. data/js/foundation/foundation.magellan.js +3 -2
  80. data/js/foundation/foundation.orbit.js +359 -344
  81. data/js/foundation/foundation.reveal.js +1 -1
  82. data/js/foundation/foundation.section.js +290 -311
  83. data/js/foundation/foundation.tooltips.js +2 -2
  84. data/js/foundation/foundation.topbar.js +20 -23
  85. data/js/foundation/index.js +1 -0
  86. data/js/vendor/jquery.js +103 -121
  87. data/lib/foundation/generators/templates/application.html.slim +15 -8
  88. data/lib/foundation/version.rb +1 -1
  89. data/scss/foundation.scss +2 -5
  90. data/scss/foundation/_variables.scss +326 -295
  91. data/scss/foundation/components/_alert-boxes.scss +10 -10
  92. data/scss/foundation/components/_block-grid.scss +1 -1
  93. data/scss/foundation/components/_breadcrumbs.scss +8 -8
  94. data/scss/foundation/components/_button-groups.scss +2 -2
  95. data/scss/foundation/components/_buttons.scss +18 -18
  96. data/scss/foundation/components/_custom-forms.scss +20 -14
  97. data/scss/foundation/components/_dropdown-buttons.scss +9 -9
  98. data/scss/foundation/components/_dropdown.scss +4 -4
  99. data/scss/foundation/components/_flex-video.scss +3 -3
  100. data/scss/foundation/components/_forms.scss +54 -24
  101. data/scss/foundation/components/_global.scss +28 -5
  102. data/scss/foundation/components/_grid-5.scss +214 -0
  103. data/scss/foundation/components/_grid.scss +3 -3
  104. data/scss/foundation/components/_inline-lists.scss +3 -3
  105. data/scss/foundation/components/_joyride.scss +6 -6
  106. data/scss/foundation/components/_keystrokes.scss +3 -3
  107. data/scss/foundation/components/_labels.scss +3 -3
  108. data/scss/foundation/components/_orbit.scss +34 -9
  109. data/scss/foundation/components/_pagination.scss +8 -6
  110. data/scss/foundation/components/_panels.scss +3 -3
  111. data/scss/foundation/components/_pricing-tables.scss +10 -10
  112. data/scss/foundation/components/_progress-bars.scss +3 -3
  113. data/scss/foundation/components/_reveal.scss +7 -7
  114. data/scss/foundation/components/_section.scss +252 -214
  115. data/scss/foundation/components/_side-nav.scss +3 -3
  116. data/scss/foundation/components/_split-buttons.scss +7 -7
  117. data/scss/foundation/components/_sub-nav.scss +7 -7
  118. data/scss/foundation/components/_switch.scss +4 -4
  119. data/scss/foundation/components/_tables.scss +6 -6
  120. data/scss/foundation/components/_tooltips.scss +4 -4
  121. data/scss/foundation/components/_top-bar.scss +14 -10
  122. data/scss/foundation/components/_type.scss +23 -23
  123. data/templates/project/index.html +4 -4
  124. data/templates/project/scss/app.scss +8 -0
  125. metadata +29 -4
@@ -145,24 +145,26 @@ $base-style: true
145
145
  <h5>Default SCSS Variables</h5>
146
146
 
147
147
  <%= code_example '
148
+ $include-html-nav-classes: $include-html-classes;
149
+
148
150
  /* We use these to control the pagination container */
149
- $pagination-height: emCalc(24px);
150
- $pagination-margin: emCalc(-5px);
151
+ $pagination-height: emCalc(24);
152
+ $pagination-margin: emCalc(-5);
151
153
 
152
154
  /* We use these to set the list-item properties */
153
155
  $pagination-li-float: $default-float;
154
- $pagination-li-height: emCalc(24px);
156
+ $pagination-li-height: emCalc(24);
155
157
  $pagination-li-font-color: #222;
156
- $pagination-li-font-size: emCalc(14px);
157
- $pagination-li-margin: emCalc(5px);
158
+ $pagination-li-font-size: emCalc(14);
159
+ $pagination-li-margin: emCalc(5);
158
160
 
159
161
  /* We use these for the pagination anchor links */
160
- $pagination-link-pad: emCalc(1px) emCalc(7px) emCalc(1px);
162
+ $pagination-link-pad: emCalc(1, 7, 1);
161
163
  $pagination-link-font-color: #999;
162
164
  $pagination-link-active-bg: darken(#fff, 10%);
163
165
 
164
166
  /* We use these for disabled anchor links */
165
- $pagination-link-unavailable-cursor: $cursor-default-value;
167
+ $pagination-link-unavailable-cursor: default;
166
168
  $pagination-link-unavailable-font-color: #999;
167
169
  $pagination-link-unavailable-bg-active: transparent;
168
170
 
@@ -170,7 +172,7 @@ $pagination-link-unavailable-bg-active: transparent;
170
172
  $pagination-link-current-background: $primary-color;
171
173
  $pagination-link-current-font-color: #fff;
172
174
  $pagination-link-current-font-weight: bold;
173
- $pagination-link-current-cursor: $cursor-default-value;
175
+ $pagination-link-current-cursor: default;
174
176
  $pagination-link-current-active-bg: $primary-color;', :css %>
175
177
 
176
178
  <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>_variables.scss</strong>.</p>
@@ -97,6 +97,8 @@ $adjust: true
97
97
  <h5>Default SCSS Variables</h5>
98
98
 
99
99
  <%= code_example '
100
+ $include-html-panel-classes: $include-html-classes;
101
+
100
102
  /* We use these to control the background and border styles */
101
103
  $panel-bg: darken(#fff, 5%);
102
104
  $panel-border-style: solid;
@@ -107,12 +109,14 @@ $panel-function-factor: 10%;
107
109
  $panel-border-color: darken($panel-bg, $panel-function-factor);
108
110
 
109
111
  /* We use these to set default inner padding and bottom margin */
110
- $panel-margin-bottom: emCalc(20px);
111
- $panel-padding: emCalc(20px);
112
+ $panel-margin-bottom: emCalc(20);
113
+ $panel-padding: emCalc(20);
112
114
 
113
115
  /* We use these to set default font colors */
114
116
  $panel-font-color: #333;
115
- $panel-font-color-alt: #fff;', :css %>
117
+ $panel-font-color-alt: #fff;
118
+
119
+ $panel-header-adjust: true;', :css %>
116
120
 
117
121
  <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>_variables.scss</strong>.</p>
118
122
 
@@ -100,50 +100,52 @@
100
100
  <h5>Default SCSS Variables</h5>
101
101
 
102
102
  <%= code_example '
103
+ $include-html-pricing-classes: $include-html-classes;
104
+
103
105
  /* We use this to control the border color */
104
106
  $price-table-border: solid 1px #ddd;
105
107
 
106
108
  /* We use this to control the bottom margin of the pricing table */
107
- $price-table-margin-bottom: emCalc(20px);
109
+ $price-table-margin-bottom: emCalc(20);
108
110
 
109
111
  /* We use these to control the title styles */
110
112
  $price-title-bg: #ddd;
111
- $price-title-padding: emCalc(15px) emCalc(20px);
113
+ $price-title-padding: emCalc(15, 20);
112
114
  $price-title-align: center;
113
115
  $price-title-color: #333;
114
116
  $price-title-weight: bold;
115
- $price-title-size: emCalc(16px);
117
+ $price-title-size: emCalc(16);
116
118
 
117
119
  /* We use these to control the price styles */
118
120
  $price-money-bg: #eee;
119
- $price-money-padding: emCalc(15px) emCalc(20px);
121
+ $price-money-padding: emCalc(15, 20);
120
122
  $price-money-align: center;
121
123
  $price-money-color: #333;
122
124
  $price-money-weight: normal;
123
- $price-money-size: emCalc(20px);
125
+ $price-money-size: emCalc(20);
124
126
 
125
127
  /* We use these to control the description styles */
126
128
  $price-bg: #fff;
127
129
  $price-desc-color: #777;
128
- $price-desc-padding: emCalc(15px);
130
+ $price-desc-padding: emCalc(15);
129
131
  $price-desc-align: center;
130
- $price-desc-font-size: emCalc(12px);
132
+ $price-desc-font-size: emCalc(12);
131
133
  $price-desc-weight: normal;
132
134
  $price-desc-line-height: 1.4;
133
135
  $price-desc-bottom-border: dotted 1px #ddd;
134
136
 
135
137
  /* We use these to control the list item styles */
136
138
  $price-item-color: #333;
137
- $price-item-padding: emCalc(15px);
139
+ $price-item-padding: emCalc(15);
138
140
  $price-item-align: center;
139
- $price-item-font-size: emCalc(14px);
141
+ $price-item-font-size: emCalc(14);
140
142
  $price-item-weight: normal;
141
143
  $price-item-bottom-border: dotted 1px #ddd;
142
144
 
143
145
  /* We use these to control the CTA area styles */
144
146
  $price-cta-bg: #f5f5f5;
145
147
  $price-cta-align: center;
146
- $price-cta-padding: emCalc(20px) emCalc(20px) 0;', :css %>
148
+ $price-cta-padding: emCalc(20, 20, 0);', :css %>
147
149
 
148
150
  <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>_variables.scss</strong>.</p>
149
151
 
@@ -92,8 +92,11 @@ $bg: $primary-color
92
92
  <h5>Default SCSS Variables</h5>
93
93
 
94
94
  <%= code_example '
95
+ $include-html-media-classes: $include-html-classes;
96
+
95
97
  /* We use this to se the prog bar height */
96
- $progress-bar-height: emCalc(25px);
98
+ $progress-bar-height: emCalc(25);
99
+ $progress-bar-color: transparent;
97
100
 
98
101
  /* We use these to control the border styles */
99
102
  $progress-bar-border-color: darken(#fff, 20%);
@@ -102,11 +105,10 @@ $progress-bar-border-style: solid;
102
105
  $progress-bar-border-radius: $global-radius;
103
106
 
104
107
  /* We use these to control the margin & padding */
105
- $progress-bar-pad: emCalc(2px);
106
- $progress-bar-margin-bottom: emCalc(10px);
108
+ $progress-bar-pad: emCalc(2);
109
+ $progress-bar-margin-bottom: emCalc(10);
107
110
 
108
111
  /* We use these to set the meter colors */
109
- $progress-bar-color: transparent;
110
112
  $progress-meter-color: $primary-color;
111
113
  $progress-meter-secondary-color: $secondary-color;
112
114
  $progress-meter-success-color: $success-color;
@@ -181,21 +181,23 @@ $color: $reveal-close-color;
181
181
  <h5>Default SCSS Variables</h5>
182
182
 
183
183
  <%= code_example '
184
+ $include-html-reveal-classes: $include-html-classes;
185
+
184
186
  /* We use these to control the style of the reveal overlay. */
185
187
  $reveal-overlay-bg: rgba(#000, .45);
186
188
  $reveal-overlay-bg-old: #000;
187
189
 
188
190
  /* We use these to control the style of the modal itself. */
189
191
  $reveal-modal-bg: #fff;
190
- $reveal-position-top: emCalc(15px);
192
+ $reveal-position-top: 50px;
191
193
  $reveal-default-width: 80%;
192
- $reveal-modal-padding: emCalc(20px);
194
+ $reveal-modal-padding: emCalc(20);
193
195
  $reveal-box-shadow: 0 0 10px rgba(#000,.4);
194
196
 
195
197
  /* We use these to style the reveal close button */
196
- $reveal-close-font-size: emCalc(22px);
197
- $reveal-close-top: emCalc(8px);
198
- $reveal-close-side: emCalc(11px);
198
+ $reveal-close-font-size: emCalc(22);
199
+ $reveal-close-top: emCalc(8);
200
+ $reveal-close-side: emCalc(11);
199
201
  $reveal-close-color: #aaa;
200
202
  $reveal-close-weight: bold;
201
203
 
@@ -256,26 +258,3 @@ $close-reveal-modal-class: "close-reveal-modal";', :css %>
256
258
  </div>
257
259
  </div>
258
260
 
259
- <div id="firstModal" class="reveal-modal">
260
- <h2>This is a modal.</h2>
261
- <p>Reveal makes these very easy to summon and dismiss. The close button is simply an anchor with a unicode character icon and a class of <code>close-reveal-modal</code>. Clicking anywhere outside the modal will also dismiss it.</p>
262
- <p>Finally, if your modal summons another Reveal modal, the plugin will handle that for you gracefully.</p>
263
- <p><a href="#" data-reveal-id="secondModal" class="secondary button">Second Modal…</a></p>
264
- <a class="close-reveal-modal">&#215;</a>
265
- </div>
266
-
267
- <div id="secondModal" class="reveal-modal">
268
- <h2>This is a second modal.</h2>
269
- <p>See? It just slides into place after the other first modal. Very handy when you need subsequent dialogs, or when a modal option impacts or requires another decision.</p>
270
- <a class="close-reveal-modal">&#215;</a>
271
- </div>
272
-
273
- <div id="videoModal" class="reveal-modal large">
274
- <h2>This modal has video</h2>
275
- <div class="flex-video">
276
- <iframe width="800" height="315" src="http://www.youtube.com/embed/IkOQw96cfyE" frameborder="0" allowfullscreen></iframe>
277
- </div>
278
-
279
- <a class="close-reveal-modal">&#215;</a>
280
- </div>
281
-
@@ -64,8 +64,8 @@
64
64
  </div>
65
65
  </section>
66
66
  </div>
67
- <div class="section-container auto" data-section data-options="deep_linking: true; one_up: false">
68
- <section>
67
+ <div class="section-container auto" data-section data-options="deep_linking: true;">
68
+ <section class="active">
69
69
  <p class="title" data-section-title><a href="#panel1">Section 1</a></p>
70
70
  <div class="content" data-slug="panel1" data-section-content>
71
71
  <p>Section 1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
@@ -74,14 +74,14 @@
74
74
  <section>
75
75
  <p class="title" data-section-title><a href="#panel2">Section 2</a></p>
76
76
  <div class="content" data-slug="panel2" data-section-content>
77
- <div class="section-container auto" data-section data-options="deep_linking: true; one_up: false">
78
- <section>
77
+ <div class="section-container auto" data-section data-options="deep_linking: true;">
78
+ <section data-section-region>
79
79
  <p class="title" data-section-title><a href="#panel2nested1">Section 1</a></p>
80
80
  <div class="content" data-slug="nested1" data-section-content>
81
81
  <p>Section 1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
82
82
  </div>
83
83
  </section>
84
- <section>
84
+ <section data-section-region>
85
85
  <p class="title" data-section-title><a href="#panel2nested2">Section 2</a></p>
86
86
  <div class="content" data-slug="nested2" data-section-content>
87
87
  <p>Section 2. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
@@ -962,19 +962,20 @@ $section-border-color: $section-border-color', :css %>
962
962
 
963
963
  <h5>Default SCSS Variables</h5>
964
964
  <%= code_example '
965
- $include-html-section-classes: $include-html-classes !default;
965
+ $include-html-section-classes: $include-html-classes;
966
966
 
967
967
  /* We use these to set padding and hover factor */
968
- $section-title-padding: emCalc(15px);
969
- $section-content-padding: emCalc(15px);
968
+ $section-title-padding: emCalc(15);
969
+ $section-content-padding: emCalc(15);
970
970
  $section-function-factor: 10%;
971
971
 
972
972
  /* These style the titles */
973
973
  $section-title-color: #333;
974
+ $section-title-color-active: #333;
974
975
  $section-title-bg: #efefef;
975
976
  $section-title-bg-active: darken($section-title-bg, $section-function-factor);
976
977
  $section-title-bg-active-tabs: #fff;
977
- $section-title-bg-hover: darken($section-title-bg, $section-function-factor/2);
978
+ $section-title-bg-hover: darken($section-title-bg, $section-function-factor / 2);
978
979
 
979
980
  /* Want to control border size, here ya go! */
980
981
  $section-border-size: 1px;
@@ -982,16 +983,17 @@ $section-border-style: solid;
982
983
  $section-border-color: #ccc;
983
984
 
984
985
  /* Font controls */
985
- $section-font-size: emCalc(14px);
986
+ $section-font-size: emCalc(14);
986
987
 
987
988
  /* Control the color of the background and some size options */
988
989
  $section-content-bg: #fff;
989
- $section-vertical-nav-min-width: emCalc(200px);
990
- $section-vertical-tabs-title-width: emCalc(200px);
991
- $section-bottom-margin: emCalc(20px);
990
+ $section-vertical-nav-min-width: emCalc(200);
991
+ $section-vertical-tabs-title-width: emCalc(200);
992
+ $section-bottom-margin: emCalc(20);
992
993
 
993
994
  $title-selector: ".title";
994
995
  $content-selector: ".content";
996
+ $active-region-selector: ".active";
995
997
  ', :css %>
996
998
 
997
999
  <p><strong>Note:</strong> <code>emCalc();</code> is a function we wrote to convert <code>px</code> to <code>em</code>.</p>
@@ -94,18 +94,20 @@ $link-color: $side-nav-link-color
94
94
  <h5>Default SCSS Variables</h5>
95
95
 
96
96
  <%= code_example '
97
+ $include-html-nav-classes: $include-html-classes;
98
+
97
99
  /* We use this to control padding. */
98
- $side-nav-padding: emCalc(14px) 0;
100
+ $side-nav-padding: emCalc(14, 0);
99
101
 
100
102
  /* We use these to control list styles. */
101
103
  $side-nav-list-type: none;
102
104
  $side-nav-list-position: inside;
103
- $side-nav-list-margin: 0 0 emCalc(7px) 0;
105
+ $side-nav-list-margin: emCalc(0, 0, 7, 0);
104
106
 
105
107
  /* We use these to control link styles. */
106
108
  $side-nav-link-color: $primary-color;
107
109
  $side-nav-link-color-active: lighten(#000, 30%);
108
- $side-nav-font-size: emCalc(14px);
110
+ $side-nav-font-size: emCalc(14);
109
111
  $side-nav-font-weight: bold;
110
112
 
111
113
  /* We use these to control border styles */
@@ -15,9 +15,32 @@
15
15
  <div class="large-12 columns">
16
16
 
17
17
  <a href="#" class="tiny button split">Split Button <span data-dropdown="drop"></span></a><br>
18
+ <ul id="drop" class="f-dropdown" data-dropdown-content>
19
+ <li><a href="#">This is a link</a></li>
20
+ <li><a href="#">This is another</a></li>
21
+ <li><a href="#">Yet another</a></li>
22
+ </ul>
23
+
18
24
  <a href="#" class="small secondary radius button split">Split Button <span data-dropdown="drop2"></span></a><br>
25
+ <ul id="drop2" class="f-dropdown" data-dropdown-content>
26
+ <li><a href="#">This is a link</a></li>
27
+ <li><a href="#">This is another</a></li>
28
+ <li><a href="#">Yet another</a></li>
29
+ </ul>
30
+
19
31
  <a href="#" class="button alert round split">Split Button <span data-dropdown="drop3"></span></a><br>
32
+ <ul id="drop3" class="f-dropdown" data-dropdown-content>
33
+ <li><a href="#">This is a link</a></li>
34
+ <li><a href="#">This is another</a></li>
35
+ <li><a href="#">Yet another</a></li>
36
+ </ul>
37
+
20
38
  <a href="#" class="large success button split">Split Button <span data-dropdown="drop4"></span></a><br>
39
+ <ul id="drop4" class="f-dropdown" data-dropdown-content>
40
+ <li><a href="#">This is a link</a></li>
41
+ <li><a href="#">This is another</a></li>
42
+ <li><a href="#">Yet another</a></li>
43
+ </ul>
21
44
 
22
45
  <hr>
23
46
 
@@ -77,6 +100,11 @@
77
100
  ', :css %>
78
101
 
79
102
  <a href="" class="split button">Default Split Button<span data-dropdown="drop5"></span></a>
103
+ <ul id="drop5" class="f-dropdown" data-dropdown-content>
104
+ <li><a href="#">This is a link</a></li>
105
+ <li><a href="#">This is another</a></li>
106
+ <li><a href="#">Yet another</a></li>
107
+ </ul>
80
108
 
81
109
  <p>There are also <strong>four options</strong> you can customize on the fly when writing this mixin. These control things like: padding size, pip color, border color and base styles. Setting any of these options to <strong>false</strong> will not include the styles.</p>
82
110
 
@@ -103,6 +131,8 @@ $base-style: true
103
131
 
104
132
  <h5>Default SCSS Variables</h5>
105
133
  <%= code_example '
134
+ $include-html-button-classes: $include-html-classes;
135
+
106
136
  /* We use these to control different shared styles for Split Buttons */
107
137
  $split-button-function-factor: 15%;
108
138
  $split-button-pip-color: #fff;
@@ -114,28 +144,28 @@ $split-button-padding-tny: $button-tny * 9;
114
144
  $split-button-span-width-tny: $button-tny * 6.5;
115
145
  $split-button-pip-size-tny: $button-tny;
116
146
  $split-button-pip-top-tny: $button-tny * 2;
117
- $split-button-pip-left-tny: emCalc(-5px);
147
+ $split-button-pip-default-float-tny: emCalc(-5);
118
148
 
119
149
  /* We use these to control small split buttons */
120
150
  $split-button-padding-sml: $button-sml * 7;
121
151
  $split-button-span-width-sml: $button-sml * 5;
122
152
  $split-button-pip-size-sml: $button-sml;
123
153
  $split-button-pip-top-sml: $button-sml * 1.5;
124
- $split-button-pip-left-sml: emCalc(-9px);
154
+ $split-button-pip-default-float-sml: emCalc(-9);
125
155
 
126
156
  /* We use these to control medium split buttons */
127
157
  $split-button-padding-med: $button-med * 6.4;
128
158
  $split-button-span-width-med: $button-med * 4;
129
- $split-button-pip-size-med: $button-med - emCalc(3px);
159
+ $split-button-pip-size-med: $button-med - emCalc(3);
130
160
  $split-button-pip-top-med: $button-med * 1.5;
131
- $split-button-pip-left-med: emCalc(-9px);
161
+ $split-button-pip-default-float-med: emCalc(-9);
132
162
 
133
163
  /* We use these to control large split buttons */
134
164
  $split-button-padding-lrg: $button-lrg * 6;
135
165
  $split-button-span-width-lrg: $button-lrg * 3.75;
136
- $split-button-pip-size-lrg: $button-lrg - emCalc(6px);
137
- $split-button-pip-top-lrg: $button-lrg + emCalc(5px);
138
- $split-button-pip-left-lrg: emCalc(-9px);
166
+ $split-button-pip-size-lrg: $button-lrg - emCalc(6);
167
+ $split-button-pip-top-lrg: $button-lrg + emCalc(5);
168
+ $split-button-pip-default-float-lrg: emCalc(-9);
139
169
  ', :css %>
140
170
 
141
171
  <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>_variables.scss</strong>.</p>
@@ -155,7 +185,6 @@ $split-button-pip-left-lrg: emCalc(-9px);
155
185
 
156
186
  <%= code_example '
157
187
  <a href="#" data-dropdown="drop1" class="button dropdown">Dropdown Button <span data-dropdown="drop1"></span></a><br>
158
-
159
188
  <ul id="drop1" class="f-dropdown" data-dropdown-content>
160
189
  <li><a href="#">This is a link</a></li>
161
190
  <li><a href="#">This is another</a></li>
@@ -163,7 +192,12 @@ $split-button-pip-left-lrg: emCalc(-9px);
163
192
  </ul>
164
193
  ', :html %>
165
194
 
166
- <a href="#" class="button split">Dropdown Button <span data-dropdown="drop1"></span></a><br>
195
+ <a href="#" class="button split">Dropdown Button <span data-dropdown="drop6"></span></a><br>
196
+ <ul id="drop6" class="f-dropdown" data-dropdown-content>
197
+ <li><a href="#">This is a link</a></li>
198
+ <li><a href="#">This is another</a></li>
199
+ <li><a href="#">Yet another</a></li>
200
+ </ul>
167
201
 
168
202
  <p>You'll notice that <code>data-dropdown="drop1"</code> and <code>id="drop1"</code> have similar values. This is what tells the dropdown plugin where to look to find the position to attach the dropdown element to.</p>
169
203
 
@@ -171,11 +205,10 @@ $split-button-pip-left-lrg: emCalc(-9px);
171
205
 
172
206
  <p>Dropdown button options can only be passed in during initialization at this time.</p>
173
207
 
174
- <%= code_example "
175
- {
208
+ <%= code_example "{
176
209
  // specify the class used for active sections
177
210
  activeClass: 'open'
178
- }", :json %>
211
+ }", :js %>
179
212
 
180
213
  </div>
181
214
  </div>
@@ -186,35 +219,4 @@ $split-button-pip-left-lrg: emCalc(-9px);
186
219
  </div>
187
220
  </div>
188
221
 
189
- <ul id="drop" class="f-dropdown" data-dropdown-content>
190
- <li><a href="#">This is a link</a></li>
191
- <li><a href="#">This is another</a></li>
192
- <li><a href="#">Yet another</a></li>
193
- </ul>
194
- <ul id="drop1" class="f-dropdown" data-dropdown-content>
195
- <li><a href="#">This is a link</a></li>
196
- <li><a href="#">This is another</a></li>
197
- <li><a href="#">Yet another</a></li>
198
- </ul>
199
- <ul id="drop2" class="f-dropdown" data-dropdown-content>
200
- <li><a href="#">This is a link</a></li>
201
- <li><a href="#">This is another</a></li>
202
- <li><a href="#">Yet another</a></li>
203
- </ul>
204
- <ul id="drop3" class="f-dropdown" data-dropdown-content>
205
- <li><a href="#">This is a link</a></li>
206
- <li><a href="#">This is another</a></li>
207
- <li><a href="#">Yet another</a></li>
208
- </ul>
209
- <ul id="drop4" class="f-dropdown" data-dropdown-content>
210
- <li><a href="#">This is a link</a></li>
211
- <li><a href="#">This is another</a></li>
212
- <li><a href="#">Yet another</a></li>
213
- </ul>
214
- <ul id="drop5" class="f-dropdown" data-dropdown-content>
215
- <li><a href="#">This is a link</a></li>
216
- <li><a href="#">This is another</a></li>
217
- <li><a href="#">Yet another</a></li>
218
- </ul>
219
-
220
222