zurb-foundation 3.2.5 → 4.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. data/.gitignore +6 -2
  2. data/CHANGELOG.md +1 -26
  3. data/CONTRIBUTING.md +18 -0
  4. data/Gemfile.lock +19 -0
  5. data/Gruntfile.js +27 -0
  6. data/README.md +5 -6
  7. data/{Capfile → docs/Capfile} +0 -1
  8. data/docs/Gemfile +8 -0
  9. data/docs/Gemfile.lock +43 -0
  10. data/docs/Procfile +2 -0
  11. data/docs/README.md +1 -0
  12. data/docs/_sidebar-components.html.erb +109 -0
  13. data/docs/_sidebar.html.erb +109 -0
  14. data/docs/_zurb-jobs.html.erb +5 -0
  15. data/docs/changelog.html.erb +185 -0
  16. data/docs/compile.rb +43 -0
  17. data/docs/components/alert-boxes.html.erb +202 -0
  18. data/docs/components/block-grid.html.erb +118 -0
  19. data/docs/components/breadcrumbs.html.erb +146 -0
  20. data/docs/components/button-groups.html.erb +174 -0
  21. data/docs/components/buttons.html.erb +220 -0
  22. data/docs/components/clearing.html.erb +152 -0
  23. data/docs/components/custom-forms.html.erb +306 -0
  24. data/docs/components/dropdown-buttons.html.erb +233 -0
  25. data/docs/components/dropdown.html.erb +186 -0
  26. data/docs/components/flex-video.html.erb +93 -0
  27. data/docs/components/forms.html.erb +468 -0
  28. data/docs/components/grid.html.erb +355 -0
  29. data/docs/components/inline-lists.html.erb +89 -0
  30. data/docs/components/joyride.html.erb +178 -0
  31. data/docs/components/keystrokes.html.erb +74 -0
  32. data/docs/components/labels.html.erb +98 -0
  33. data/docs/components/magellan.html.erb +84 -0
  34. data/docs/components/orbit.html.erb +262 -0
  35. data/docs/components/pagination.html.erb +181 -0
  36. data/docs/components/panels.html.erb +121 -0
  37. data/docs/components/pricing-tables.html.erb +154 -0
  38. data/docs/components/progress-bars.html.erb +120 -0
  39. data/docs/components/reveal.html.erb +147 -0
  40. data/docs/components/section.html.erb +156 -0
  41. data/docs/components/side-nav.html.erb +122 -0
  42. data/docs/components/split-buttons.html.erb +218 -0
  43. data/docs/components/sub-nav.html.erb +120 -0
  44. data/docs/components/switch.html.erb +288 -0
  45. data/docs/components/tables.html.erb +123 -0
  46. data/docs/components/thumbnails.html.erb +87 -0
  47. data/docs/components/tooltips.html.erb +73 -0
  48. data/docs/components/top-bar.html.erb +219 -0
  49. data/docs/components/type.html.erb +359 -0
  50. data/docs/components/visibility.html.erb +102 -0
  51. data/docs/config.ru +12 -0
  52. data/docs/config/deploy.rb +33 -0
  53. data/docs/controller.rb +43 -0
  54. data/docs/css/_coderay.scss +116 -0
  55. data/docs/css/_settings.scss +1 -0
  56. data/docs/css/docs.scss +174 -0
  57. data/docs/css/normalize.scss +396 -0
  58. data/docs/css/qunit-composite.css +13 -0
  59. data/docs/css/qunit.css +235 -0
  60. data/docs/faq.html.erb +61 -0
  61. data/docs/img/demos/demo1-th.png +0 -0
  62. data/docs/img/demos/demo1.png +0 -0
  63. data/docs/img/demos/demo2-th.png +0 -0
  64. data/docs/img/demos/demo2.png +0 -0
  65. data/docs/img/demos/demo3-th.png +0 -0
  66. data/docs/img/demos/demo3.png +0 -0
  67. data/docs/img/demos/demo4-th.png +0 -0
  68. data/docs/img/demos/demo4.png +0 -0
  69. data/docs/img/demos/demo5-th.png +0 -0
  70. data/docs/img/demos/demo5.png +0 -0
  71. data/docs/index.html.erb +299 -0
  72. data/docs/javascript.html.erb +133 -0
  73. data/docs/js/docs.js +3 -0
  74. data/docs/js/qunit-composite.js +105 -0
  75. data/docs/js/qunit.js +1977 -0
  76. data/docs/js/tests/tabs/simple_tabs.html +57 -0
  77. data/docs/js/tests/tabs/simple_tabs.js +54 -0
  78. data/docs/js/tests/tooltips/tooltips.html +39 -0
  79. data/docs/js/tests/tooltips/tooltips.js +11 -0
  80. data/docs/layout.html.erb +99 -0
  81. data/docs/rails.html.erb +66 -0
  82. data/docs/sass.html.erb +299 -0
  83. data/docs/support.html.erb +134 -0
  84. data/foundation.gemspec +2 -4
  85. data/index.html +3 -23
  86. data/js/foundation/foundation.alerts.js +50 -0
  87. data/js/foundation/foundation.clearing.js +478 -0
  88. data/{vendor/assets/javascripts/foundation/jquery.cookie.js → js/foundation/foundation.cookie.js} +3 -1
  89. data/js/foundation/foundation.dropdown.js +122 -0
  90. data/js/foundation/foundation.forms.js +403 -0
  91. data/js/foundation/foundation.joyride.js +613 -0
  92. data/js/foundation/foundation.js +331 -0
  93. data/js/foundation/foundation.magellan.js +130 -0
  94. data/js/foundation/foundation.orbit.js +355 -0
  95. data/{vendor/assets/javascripts/foundation/jquery.placeholder.js → js/foundation/foundation.placeholder.js} +4 -2
  96. data/js/foundation/foundation.reveal.js +264 -0
  97. data/js/foundation/foundation.section.js +180 -0
  98. data/js/foundation/foundation.tooltips.js +195 -0
  99. data/js/foundation/foundation.topbar.js +187 -0
  100. data/js/foundation/index.js +16 -0
  101. data/{vendor/assets/javascripts/foundation/modernizr.foundation.js → js/vendor/custom.modernizr.js} +0 -0
  102. data/js/vendor/jquery.js +9597 -0
  103. data/js/vendor/zepto.js +1782 -0
  104. data/lib/foundation/engine.rb +8 -1
  105. data/lib/foundation/generators/install_generator.rb +24 -1
  106. data/lib/foundation/generators/templates/application.html.erb +20 -6
  107. data/lib/foundation/generators/templates/application.html.haml +2 -6
  108. data/lib/foundation/generators/templates/application.html.slim +2 -5
  109. data/lib/foundation/version.rb +1 -1
  110. data/lib/zurb-foundation.rb +7 -9
  111. data/package.json +9 -0
  112. data/scss/foundation.scss +42 -15
  113. data/scss/foundation/_foundation-global.scss +226 -0
  114. data/scss/foundation/components/_alert-boxes.scss +106 -0
  115. data/scss/foundation/components/_block-grid.scss +63 -0
  116. data/scss/foundation/components/_breadcrumbs.scss +117 -0
  117. data/scss/foundation/components/_button-groups.scss +59 -0
  118. data/scss/foundation/components/_buttons.scss +217 -0
  119. data/scss/foundation/components/_clearing.scss +209 -0
  120. data/scss/foundation/components/_custom-forms.scss +232 -0
  121. data/scss/foundation/components/_dropdown-buttons.scss +114 -0
  122. data/scss/foundation/components/_dropdown.scss +137 -0
  123. data/scss/foundation/components/_flex-video.scss +45 -0
  124. data/scss/foundation/components/_forms.scss +309 -0
  125. data/scss/foundation/components/_grid.scss +149 -71
  126. data/scss/foundation/components/_inline-lists.scss +47 -0
  127. data/scss/foundation/components/_joyride.scss +193 -0
  128. data/scss/foundation/components/_keystrokes.scss +56 -0
  129. data/scss/foundation/components/_labels.scss +81 -0
  130. data/scss/foundation/components/_magellan.scss +15 -0
  131. data/scss/foundation/components/_orbit.scss +193 -0
  132. data/scss/foundation/components/_pagination.scss +99 -0
  133. data/scss/foundation/components/_panels.scss +76 -0
  134. data/scss/foundation/components/_pricing-tables.scss +130 -0
  135. data/scss/foundation/components/_progress-bars.scss +68 -0
  136. data/scss/foundation/components/_reveal.scss +131 -0
  137. data/scss/foundation/components/_section.scss +194 -0
  138. data/scss/foundation/components/_side-nav.scss +68 -0
  139. data/scss/foundation/components/_split-buttons.scss +159 -0
  140. data/scss/foundation/components/_sub-nav.scss +67 -0
  141. data/scss/foundation/components/_switch.scss +242 -0
  142. data/scss/foundation/components/_tables.scss +80 -0
  143. data/scss/foundation/components/_thumbs.scss +45 -0
  144. data/scss/foundation/components/_tooltips.scss +113 -0
  145. data/scss/foundation/components/_top-bar.scss +443 -0
  146. data/scss/foundation/components/_type.scss +411 -0
  147. data/scss/foundation/components/_visibility.scss +117 -0
  148. data/scss/normalize.scss +396 -0
  149. data/templates/project/config.rb +26 -0
  150. data/templates/project/index.html +28 -43
  151. data/templates/project/manifest.rb +21 -28
  152. data/templates/project/scss/_settings.scss +4 -243
  153. data/templates/project/scss/app.scss +37 -44
  154. data/templates/project/scss/normalize.scss +396 -0
  155. data/test/stylesheets/styles.css +955 -0
  156. metadata +144 -153
  157. data/config/deploy.rb +0 -42
  158. data/lib/foundation/generators/layout_generator.rb +0 -28
  159. data/scss/foundation/_settings.scss +0 -281
  160. data/scss/foundation/common/_base.scss +0 -4
  161. data/scss/foundation/common/_forms.scss +0 -117
  162. data/scss/foundation/common/_globals.scss +0 -35
  163. data/scss/foundation/common/_ratios.scss +0 -19
  164. data/scss/foundation/common/_typography.scss +0 -104
  165. data/scss/foundation/components/modules/_all.scss +0 -10
  166. data/scss/foundation/components/modules/_buttons.scss +0 -178
  167. data/scss/foundation/components/modules/_clearing.scss +0 -61
  168. data/scss/foundation/components/modules/_joyride.scss +0 -33
  169. data/scss/foundation/components/modules/_mqueries.scss +0 -458
  170. data/scss/foundation/components/modules/_navbar.scss +0 -74
  171. data/scss/foundation/components/modules/_offcanvas.scss +0 -55
  172. data/scss/foundation/components/modules/_orbit.scss +0 -90
  173. data/scss/foundation/components/modules/_reveal.scss +0 -34
  174. data/scss/foundation/components/modules/_tabs.scss +0 -67
  175. data/scss/foundation/components/modules/_topbar.scss +0 -167
  176. data/scss/foundation/components/modules/_ui.scss +0 -292
  177. data/scss/foundation/functions/_all.scss +0 -2
  178. data/scss/foundation/functions/_convert-number-to-word.scss +0 -10
  179. data/scss/foundation/functions/_grid-calc.scss +0 -5
  180. data/scss/foundation/functions/modular-scale.scss +0 -3
  181. data/scss/foundation/mixins/_all.scss +0 -5
  182. data/scss/foundation/mixins/_clearfix.scss +0 -13
  183. data/scss/foundation/mixins/_css-triangle.scss +0 -22
  184. data/scss/foundation/mixins/_font-size.scss +0 -13
  185. data/scss/foundation/mixins/_respond-to.scss +0 -11
  186. data/scss/foundation/mixins/_semantic-grid.scss +0 -66
  187. data/test/buttons.html +0 -189
  188. data/test/clearing.html +0 -85
  189. data/test/config.rb +0 -11
  190. data/test/elements.html +0 -490
  191. data/test/forms.html +0 -371
  192. data/test/grid.html +0 -543
  193. data/test/images/orbit-demo/demo1.jpeg +0 -0
  194. data/test/images/orbit-demo/demo2.jpeg +0 -0
  195. data/test/images/orbit-demo/demo3.jpeg +0 -0
  196. data/test/images/orbit-demo/slider-background.jpeg +0 -0
  197. data/test/index.html +0 -83
  198. data/test/joyride.html +0 -127
  199. data/test/magellan.html +0 -112
  200. data/test/navigation.html +0 -269
  201. data/test/orbit.html +0 -112
  202. data/test/reveal.html +0 -91
  203. data/test/scss/_settings.scss +0 -245
  204. data/test/scss/styles.scss +0 -50
  205. data/test/tabs.html +0 -197
  206. data/test/template.html +0 -52
  207. data/test/topbar-login.html +0 -194
  208. data/test/topbar.html +0 -139
  209. data/test/type.html +0 -188
  210. data/vendor/assets/images/foundation/orbit/bullets.jpg +0 -0
  211. data/vendor/assets/images/foundation/orbit/left-arrow-small.png +0 -0
  212. data/vendor/assets/images/foundation/orbit/left-arrow.png +0 -0
  213. data/vendor/assets/images/foundation/orbit/loading.gif +0 -0
  214. data/vendor/assets/images/foundation/orbit/mask-black.png +0 -0
  215. data/vendor/assets/images/foundation/orbit/pause-black.png +0 -0
  216. data/vendor/assets/images/foundation/orbit/right-arrow-small.png +0 -0
  217. data/vendor/assets/images/foundation/orbit/right-arrow.png +0 -0
  218. data/vendor/assets/images/foundation/orbit/rotator-black.png +0 -0
  219. data/vendor/assets/images/foundation/orbit/timer-black.png +0 -0
  220. data/vendor/assets/javascripts/foundation/app.js +0 -41
  221. data/vendor/assets/javascripts/foundation/index.js +0 -19
  222. data/vendor/assets/javascripts/foundation/jquery.event.move.js +0 -580
  223. data/vendor/assets/javascripts/foundation/jquery.event.swipe.js +0 -130
  224. data/vendor/assets/javascripts/foundation/jquery.foundation.accordion.js +0 -47
  225. data/vendor/assets/javascripts/foundation/jquery.foundation.alerts.js +0 -20
  226. data/vendor/assets/javascripts/foundation/jquery.foundation.buttons.js +0 -83
  227. data/vendor/assets/javascripts/foundation/jquery.foundation.clearing.js +0 -413
  228. data/vendor/assets/javascripts/foundation/jquery.foundation.forms.js +0 -502
  229. data/vendor/assets/javascripts/foundation/jquery.foundation.joyride.js +0 -639
  230. data/vendor/assets/javascripts/foundation/jquery.foundation.magellan.js +0 -96
  231. data/vendor/assets/javascripts/foundation/jquery.foundation.mediaQueryToggle.js +0 -27
  232. data/vendor/assets/javascripts/foundation/jquery.foundation.navigation.js +0 -55
  233. data/vendor/assets/javascripts/foundation/jquery.foundation.orbit.js +0 -919
  234. data/vendor/assets/javascripts/foundation/jquery.foundation.reveal.js +0 -794
  235. data/vendor/assets/javascripts/foundation/jquery.foundation.tabs.js +0 -66
  236. data/vendor/assets/javascripts/foundation/jquery.foundation.tooltips.js +0 -211
  237. data/vendor/assets/javascripts/foundation/jquery.foundation.topbar.js +0 -174
  238. data/vendor/assets/javascripts/foundation/jquery.js +0 -9555
  239. data/vendor/assets/javascripts/foundation/jquery.offcanvas.js +0 -50
@@ -0,0 +1,359 @@
1
+ <div class="row">
2
+ <div class="large-9 push-3 columns">
3
+
4
+ <% @page_title = "Typography" %>
5
+ <div class="row">
6
+ <div class="large-12 columns">
7
+ <h2><%= @page_title %></h2>
8
+ <h4 class="subheader">Foundation 4 typography is built with ems, making it easier to fine-tune your type across different breakpoints. By default, we include a single breakpoint in typography sizes and styles, but you can add more if you'd like.</h4>
9
+
10
+ <p>We're no longer depending on modular scale in the core of Foundation. We made an effort with this release to be dependancy free other than Sass. This way people can use whatever framework and gems they want on top of Foundation. We'll still use <a href="#">Compass</a>.</p>
11
+
12
+ <hr>
13
+
14
+ </div>
15
+ </div>
16
+
17
+
18
+ <div class="row">
19
+ <div class="large-12 columns">
20
+
21
+ <h1>h1. This is a very large header.</h1>
22
+ <h2>h2. This is a large header.</h2>
23
+ <h3>h3. This is a medium header.</h3>
24
+ <h4>h4. This is a moderate header.</h4>
25
+ <h5>h5. This is a small header. h1.</h5>
26
+ <h6>h6. This is a tiny header. h1.</h6>
27
+
28
+ <%= code_example '
29
+ <h1>h1. This is a very large header.</h1>
30
+ <h2>h2. This is a large header.</h2>
31
+ <h3>h3. This is a medium header.</h3>
32
+ <h4>h4. This is a moderate header.</h4>
33
+ <h5>h5. This is a small header. h1.</h5>
34
+ <h6>h6. This is a tiny header. h1.</h6>
35
+ ', :html %>
36
+
37
+ <hr>
38
+
39
+ <h1 class="subheader">h1.subheader</h1>
40
+ <h2 class="subheader">h2.subheader</h2>
41
+ <h3 class="subheader">h3.subheader</h3>
42
+ <h4 class="subheader">h4.subheader</h4>
43
+ <h5 class="subheader">h5.subheader</h5>
44
+ <h6 class="subheader">h6.subheader</h6>
45
+
46
+ <%= code_example '
47
+ <h1 class="subheader">h1.subheader</h1>
48
+ <h2 class="subheader">h2.subheader</h2>
49
+ <h3 class="subheader">h3.subheader</h3>
50
+ <h4 class="subheader">h4.subheader</h4>
51
+ <h5 class="subheader">h5.subheader</h5>
52
+ <h6 class="subheader">h6.subheader</h6>
53
+ ', :html %>
54
+
55
+ <hr>
56
+
57
+ <h1>h1. <small>Small segment header.</small></h1>
58
+ <h2>h2. <small>Small segment header.</small></h2>
59
+ <h3>h3. <small>Small segment header.</small></h3>
60
+ <h4>h4. <small>Small segment header.</small></h4>
61
+ <h5>h5. <small>Small segment header.</small></h5>
62
+ <h6>h6. <small>Small segment header.</small></h6>
63
+
64
+ <%= code_example '
65
+ <h1>h1. <small>Small segment header.</small></h1>
66
+ <h2>h2. <small>Small segment header.</small></h2>
67
+ <h3>h3. <small>Small segment header.</small></h3>
68
+ <h4>h4. <small>Small segment header.</small></h4>
69
+ <h5>h5. <small>Small segment header.</small></h5>
70
+ <h6>h6. <small>Small segment header.</small></h6>
71
+ ', :html %>
72
+
73
+
74
+ <hr>
75
+
76
+ <p>This is a paragraph. Paragraphs are preset with a font size, line height and spacing to match the overall vertical rhythm. To show what a paragraph looks like this needs a little more content so, did you know that there are storms occurring on Jupiter that are larger than the Earth? Pretty cool. Wrap <code>&lt;strong&gt;</code> around type to <strong>make it bold!</strong>. You can also you <code>&lt;em&gt;</code> to <em>italicize your words</em>.</p>
77
+
78
+ <%= code_example '
79
+ <p>This is a paragraph. Paragraphs are preset with a font size, line height and spacing to match the overall vertical rhythm. To show what a paragraph looks like this needs a little more content so, did you know that there are storms occurring on Jupiter that are larger than the Earth? Pretty cool. Wrap <strong> around type to <strong>make it bold!</strong>. You can also you <em> to <em>italicize your words</em>.</p>
80
+ ', :html %>
81
+
82
+ <hr>
83
+
84
+ <h3>Links</h3>
85
+ <p>Links are very standard, and the <a href="http://www.youtube.com/watch?v=oHg5SJYRHA0">color is preset</a> to the Foundation primary color.</p>
86
+
87
+ <%= code_example '
88
+ <p>Links are very standard, and the <a href="#">color is preset</a> to the Foundation primary color.</p>
89
+ ', :html %>
90
+
91
+ <hr>
92
+
93
+ <h3>Lists</h3>
94
+ <p>Lists are helpful for, well, lists of things.</p>
95
+
96
+ <div class="row">
97
+ <div class="large-4 columns">
98
+ <h6>ul.disc</h6>
99
+ <ul class="disc">
100
+ <li>List item with a much longer description or more content.</li>
101
+ <li>List item</li>
102
+ <li>List item
103
+ <ul>
104
+ <li>Nested List Item</li>
105
+ <li>Nested List Item</li>
106
+ <li>Nested List Item</li>
107
+ </ul>
108
+ </li>
109
+ <li>List item</li>
110
+ <li>List item</li>
111
+ <li>List item</li>
112
+ </ul>
113
+ </div>
114
+
115
+ <div class="large-4 columns">
116
+ <h6>ul.circle</h6>
117
+ <ul class="circle">
118
+ <li>List item with a much longer description or more content.</li>
119
+ <li>List item</li>
120
+ <li>List item
121
+ <ul>
122
+ <li>Nested List Item</li>
123
+ <li>Nested List Item</li>
124
+ <li>Nested List Item</li>
125
+ </ul>
126
+ </li>
127
+ <li>List item</li>
128
+ <li>List item</li>
129
+ <li>List item</li>
130
+ </ul>
131
+ </div>
132
+
133
+ <div class="large-4 columns">
134
+ <h6>ul.square</h6>
135
+ <ul class="square">
136
+ <li>List item with a much longer description or more content.</li>
137
+ <li>List item</li>
138
+ <li>List item
139
+ <ul>
140
+ <li>Nested List Item</li>
141
+ <li>Nested List Item</li>
142
+ <li>Nested List Item</li>
143
+ </ul>
144
+ </li>
145
+ <li>List item</li>
146
+ <li>List item</li>
147
+ <li>List item</li>
148
+ </ul>
149
+ </div>
150
+ </div>
151
+
152
+ <div class="row">
153
+ <div class="large-4 columns">
154
+ <h6>Ordered Lists</h6>
155
+ <ol>
156
+ <li>List Item 1</li>
157
+ <li>List Item 2</li>
158
+ <li>List Item 3</li>
159
+ </ol>
160
+ </div>
161
+ <div class="large-8 columns">
162
+ <h6>Defition Lists</h6>
163
+ <dl>
164
+ <dt>Definition Title</dt>
165
+ <dd>Definition Cras justo odio, dapibus ac facilisis in, egestas eget quam. Nullam id dolor id nibh ultricies vehicula ut id elit.</dd>
166
+ </dl>
167
+ </div>
168
+ </div>
169
+
170
+ <%= code_example '
171
+ <!-- Use .circle or .square to change the style of the bullets -->
172
+ <ul class="disc">
173
+ <li>List item with a much longer description or more content.</li>
174
+ <li>List item</li>
175
+ <li>List item
176
+ <ul>
177
+ <li>Nested List Item</li>
178
+ <li>Nested List Item</li>
179
+ <li>Nested List Item</li>
180
+ </ul>
181
+ </li>
182
+ <li>List item</li>
183
+ <li>List item</li>
184
+ <li>List item</li>
185
+ </ul>
186
+
187
+ <!-- Ordered lists are great for lists that need order, duh -->
188
+ <ol>
189
+ <li>List Item 1</li>
190
+ <li>List Item 2</li>
191
+ <li>List Item 3</li>
192
+ </ol>
193
+
194
+ <!-- Definition lists are great for small block of copy that describe the header -->
195
+ <dl>
196
+ <dt>Definition List</dt>
197
+ <dd>Definition Cras justo odio, dapibus ac facilisis in, egestas eget quam. Nullam id dolor id nibh ultricies vehicula ut id elit.</dd>
198
+ </dl>
199
+ ', :html %>
200
+
201
+ <hr>
202
+
203
+ <a name="blockquotes"></a>
204
+ <h3>Blockquotes</h3>
205
+ <p>Sometimes other people say smart things, and you may want to mention that through a blockquote callout. We've got you covered.</p>
206
+
207
+ <blockquote>I do not fear computers. I fear the lack of them. Maecenas faucibus mollis interdum. Aenean lacinia bibendum nulla sed consectetur.<cite>Isaac Asimov</cite></blockquote>
208
+
209
+ <%= code_example '
210
+ <blockquote>I do not fear computers. I fear the lack of them. Maecenas faucibus mollis interdum. Aenean lacinia bibendum nulla sed consectetur.<cite>Isaac Asimov</cite></blockquote>
211
+ ', :html %>
212
+
213
+ <hr>
214
+
215
+ <h3>V-Cards</h3>
216
+ <p>Here's a handy microformat-friendly list to <em>address</em> all your needs.</p>
217
+
218
+ <ul class="vcard">
219
+ <li class="fn">Gaius Baltar</li>
220
+ <li class="street-address">123 Colonial Ave.</li>
221
+ <li class="locality">Caprica City</li>
222
+ <li><span class="state">Caprica</span>, <span class="zip">12345</span></li>
223
+ <li class="email"><a href="#">g.baltar@cmail.com</a></li>
224
+ </ul>
225
+
226
+ <%= code_example '
227
+ <ul class="vcard">
228
+ <li class="fn">Gaius Baltar</li>
229
+ <li class="street-address">123 Colonial Ave.</li>
230
+ <li class="locality">Caprica City</li>
231
+ <li><span class="state">Caprica</span>, <span class="zip">12345</span></li>
232
+ <li class="email"><a href="#">g.baltar@cmail.com</a></li>
233
+ </ul>
234
+ ', :html %>
235
+
236
+ <hr>
237
+
238
+ <h3>Print Styles</h3>
239
+ <p>Foundation includes print styles developed by HTML5 Boilerplate to give you some basic print-specific styles. These are activated when you print through a media query. It includes:</p>
240
+
241
+ <ul class="disc">
242
+ <li>Clearing out backgrounds, box shadows, and text shadows</li>
243
+ <li>Appending link URLs after the anchor text</li>
244
+ <li>Bordering blockquotes and pre elements</li>
245
+ <li>Page cleanup and window minimization</li>
246
+ </ul>
247
+
248
+ <p>On top of that, Foundation includes a couple of simple classes you can use to control elements printing, or not printing. Simply attached <code>.print-only</code> on an element to only show when printing, and <code>.hide-on-print</code> to hide something when printing.</p>
249
+
250
+ <hr>
251
+
252
+ <h3>Available SCSS Variables</h3>
253
+ <p>We've got a ton of variables for you to use to customize your typography.</p>
254
+
255
+ <%= code_example '
256
+ /* We use these to control header font styles */
257
+ $header-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
258
+ $header-font-weight: bold;
259
+ $header-font-style: normal;
260
+ $header-font-color: #222;
261
+ $header-line-height: 1.4;
262
+ $header-top-margin: .2em;
263
+ $header-bottom-margin: .5em;
264
+ $header-text-rendering: optimizeLegibility;
265
+
266
+ /* We use these to control header font sizes */
267
+ $h1-font-size: emCalc(44px);
268
+ $h2-font-size: emCalc(37px);
269
+ $h3-font-size: emCalc(27px);
270
+ $h4-font-size: emCalc(23px);
271
+ $h5-font-size: emCalc(18px);
272
+ $h6-font-size: 1em;
273
+
274
+ /* These control how subheaders are styled. */
275
+ $subheader-line-height: 1.4;
276
+ $subheader-font-color: lighten($header-font-color, 30%);
277
+ $subheader-font-weight: 300;
278
+ $subheader-top-margin: .2em;
279
+ $subheader-bottom-margin: .5em;
280
+
281
+ /* A general <small> styling */
282
+ $small-font-size: 60%;
283
+ $small-font-color: lighten($header-font-color, 30%);
284
+
285
+ /* We use these to style paragraphs */
286
+ $paragraph-font-family: inherit;
287
+ $paragraph-font-weight: normal;
288
+ $paragraph-font-size: 1em;
289
+ $paragraph-line-height: 1.6;
290
+ $paragraph-margin-bottom: emCalc(20px);
291
+ $paragraph-aside-font-size: emCalc(14px);
292
+ $paragraph-aside-line-height: 1.35;
293
+ $paragraph-aside-font-style: italic;
294
+
295
+ /* We use these to style <code> tags */
296
+ $code-color: darken($alert-color, 15%);
297
+ $code-font-family: Consolas, "Liberation Mono", Courier, monospace;
298
+ $code-font-weight: bold;
299
+
300
+ /* We use these to style anchors */
301
+ $anchor-text-decoration: none;
302
+ $anchor-font-color: $primary-color;
303
+ $anchor-font-color-hover: darken($primary-color, 5%);
304
+
305
+ /* We use these to style the <hr> element */
306
+ $hr-border-width: 1px;
307
+ $hr-border-style: solid;
308
+ $hr-border-color: #ddd;
309
+ $hr-margin: emCalc(20px);
310
+
311
+ /* We use these to style lists */
312
+ $list-style-position: outside;
313
+ $list-side-margin: emCalc(18px);
314
+ $definition-list-header-weight: bold;
315
+ $definition-list-header-margin-bottom: .3em;
316
+ $definition-list-margin-bottom: emCalc(12px);
317
+
318
+ /* We use these to style blockquotes */
319
+ $blockquote-font-color: lighten($header-font-color, 30%);
320
+ $blockquote-padding: emCalc(9px) emCalc(20px) 0 emCalc(19px);
321
+ $blockquote-border: 1px solid #ddd;
322
+ $blockquote-cite-font-size: emCalc(13px);
323
+ $blockquote-cite-font-color: lighten($header-font-color, 20%);
324
+ $blockquote-cite-link-color: $blockquote-cite-font-color;
325
+
326
+ /* Acronym styles */
327
+ $acronym-underline: 1px dotted #ddd;
328
+
329
+ /* We use these to control padding and margin */
330
+ $microformat-padding: emCalc(10px) emCalc(12px);
331
+ $microformat-margin: 0 0 emCalc(20px) 0;
332
+
333
+ /* We use these to control the border styles */
334
+ $microformat-border-width: 1px;
335
+ $microformat-border-style: solid;
336
+ $microformat-border-color: #ddd;
337
+
338
+ /* We use these to control full name font styles */
339
+ $microformat-fullname-font-weight: bold;
340
+ $microformat-fullname-font-size: emCalc(15px);
341
+
342
+ /* We use this to control the summary font styles */
343
+ $microformat-summary-font-weight: bold;
344
+
345
+ /* We use this to control abbr padding */
346
+ $microformat-abbr-padding: 0 emCalc(1px);
347
+
348
+ /* We use this to control abbr font styles */
349
+ $microformat-abbr-font-weight: bold;
350
+ $microformat-abbr-font-decoration: none;
351
+ ', :css %>
352
+
353
+ </div>
354
+ </div>
355
+ </div>
356
+ <div class="large-3 pull-9 columns">
357
+ <%= render "_sidebar-components.html.erb" %>
358
+ </div>
359
+ </div>
@@ -0,0 +1,102 @@
1
+ <div class="row">
2
+ <div class="large-9 push-3 columns">
3
+
4
+ <% @page_title = "Visibility Classes" %>
5
+ <div class="row">
6
+ <div class="large-12 columns">
7
+ <h2><%= @page_title %></h2>
8
+ <h4 class="subheader">Foundation allows you to easily turn elements on and off based on certain device criteria, like screen size, touch or orientation.</h4>
9
+ </div>
10
+ </div>
11
+
12
+ <div class="row">
13
+ <div class="large-12 columns">
14
+ <h5>Screen Size Visibility Control (Show)</h5>
15
+ <p>The following text should describe the screen size you're using:</p>
16
+ <p class="panel">
17
+ <strong class="show-for-small">You are on a small screen.</strong>
18
+ <strong class="show-for-medium">You are on a medium screen.</strong>
19
+ <strong class="show-for-medium-up">You are on a medium or larger screen.</strong>
20
+ <strong class="show-for-medium-down">You are on a medium or smaller screen.</strong>
21
+ <strong class="show-for-large">You are on a large screen.</strong>
22
+ <strong class="show-for-large-up">You are on a large or bigger screen.</strong>
23
+ <strong class="show-for-large-down">You are on a large or smaller screen.</strong>
24
+ </p>
25
+
26
+ <h5>Screen Size Visibility Control (Hide)</h5>
27
+ <p>The following text should describe the screen size you aren't using:</p>
28
+ <p class="panel">
29
+ <strong class="hide-for-small">You are not on a small screen.</strong>
30
+ <strong class="hide-for-medium">You are not on a medium screen.</strong>
31
+ <strong class="hide-for-medium-up">You are not on a medium or larger screen.</strong>
32
+ <strong class="hide-for-medium-down">You are not on a medium or smaller screen.</strong>
33
+ <strong class="hide-for-large">You are not on a large screen.</strong>
34
+ <strong class="hide-for-large-up">You are not on a large or bigger screen.</strong>
35
+ <strong class="hide-for-large-down">You are not on a large or smaller screen.</strong>
36
+ </p>
37
+
38
+ <h5>Orientation Detection</h5>
39
+ <p>The following text should describe the device orientation you're using:</p>
40
+ <p class="panel">
41
+ <strong class="show-for-landscape">You are in landscape orientation.</strong>
42
+ <strong class="show-for-portrait">You are in portrait orientation.</strong>
43
+ </p>
44
+
45
+ <h5>Touch Detection</h5>
46
+ <p>The following text should describe if you're using a touch device:</p>
47
+ <p class="panel">
48
+ <strong class="show-for-touch">You are on a touch-enabled device.</strong>
49
+ <strong class="hide-for-touch">You are not on a touch-enabled device.</strong>
50
+ </p>
51
+
52
+ <hr>
53
+
54
+ <h3>Using our HTML Classes With CSS</h3>
55
+ <p>The standard way of working with the Foundation visibility control is to use the predefined HTML classes. Yes, this adds classes to your markup, but they are semantic to the function they provide rather than from a presentational point of view.</p>
56
+
57
+ <%= code_example '
58
+ /* The show classes */
59
+ .show-for-small /* Visible up to 768px */
60
+ .show-for-medium-down /* Visible from 1280px down */
61
+ .show-for-medium /* Visible between 768px and 1280px */
62
+ .show-for-medium-up /* Visible from 1280px up */
63
+ .show-for-large-down /* Visible from 1440px down */
64
+ .show-for-large /* Visible between 1280px and 1440px */
65
+ .show-for-large-up /* Visible from 1440px up */
66
+
67
+ /* The hide classes */
68
+ .hide-for-small /* Hidden up to 768px */
69
+ .hide-for-medium-down /* Hidden from 1280px down */
70
+ .hide-for-medium /* Hidden between 768px and 1280px */
71
+ .hide-for-medium-up /* Hidden from 1280px up */
72
+ .hide-for-large-down /* Hidden from 1440px down */
73
+ .hide-for-large /* Hidden between 1280px and 1440px */
74
+ .hide-for-large-up /* Hidden from 1440px up */
75
+
76
+ /* The orientation classes */
77
+ .show-for-landscape /* Visible for landscape orientation */
78
+ .show-for-portrait /* Visible for portrait orientation */
79
+ .hide-for-landscape /* Hidden for landscape orientation */
80
+ .hide-for-portrait /* Hidden for portrait orientation */
81
+
82
+ /* The touch detection classes */
83
+ .show-for-touch /* Visible for touch enabled devices */
84
+ .hide-for-touch /* Hidden for touch enabled devices */
85
+ ', :css %>
86
+
87
+ <hr>
88
+
89
+ <h3>Using SCSS?</h3>
90
+ <p>So, you hate the idea of including these classes in your markup? Well, we thought of that too! You can easily <code>@extend</code> these classes to whatever element you want. Extending a visibility class looks like this:</p>
91
+
92
+ <%= code_example '
93
+ .your-class-name { @extend .hide-for-small; }
94
+ ', :css %>
95
+
96
+ </div>
97
+ </div>
98
+ </div>
99
+ <div class="large-3 pull-9 columns">
100
+ <%= render "_sidebar-components.html.erb" %>
101
+ </div>
102
+ </div>