themepile-abstractio 1.0.4 → 4.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +8 -8
  2. data/.gitignore +1 -0
  3. data/CONTRIBUTING.md +7 -7
  4. data/Gemfile.lock +19 -0
  5. data/Gruntfile.js +27 -0
  6. data/README.md +38 -38
  7. data/abstractio.gemspec +20 -18
  8. data/docs/CHANGELOG.md +275 -0
  9. data/docs/Capfile +4 -0
  10. data/docs/Gemfile +13 -0
  11. data/docs/Gemfile.lock +45 -0
  12. data/docs/Procfile +2 -0
  13. data/docs/README.md +1 -0
  14. data/docs/_sidebar-components.html.erb +115 -0
  15. data/docs/_sidebar.html.erb +115 -0
  16. data/docs/changelog.html.erb +33 -0
  17. data/docs/compile.rb +34 -0
  18. data/docs/components/alert-boxes.html.erb +204 -0
  19. data/docs/components/block-grid.html.erb +132 -0
  20. data/docs/components/breadcrumbs.html.erb +156 -0
  21. data/docs/components/button-groups.html.erb +230 -0
  22. data/docs/components/buttons.html.erb +222 -0
  23. data/docs/components/clearing.html.erb +152 -0
  24. data/docs/components/custom-forms.html.erb +309 -0
  25. data/docs/components/dropdown-buttons.html.erb +235 -0
  26. data/docs/components/dropdown.html.erb +188 -0
  27. data/docs/components/flex-video.html.erb +95 -0
  28. data/docs/components/forms.html.erb +477 -0
  29. data/docs/components/global.html.erb +92 -0
  30. data/docs/components/grid.html.erb +366 -0
  31. data/docs/components/inline-lists.html.erb +91 -0
  32. data/docs/components/joyride.html.erb +183 -0
  33. data/docs/components/keystrokes.html.erb +76 -0
  34. data/docs/components/kitchen-sink.html.erb +870 -0
  35. data/docs/components/labels.html.erb +102 -0
  36. data/docs/components/magellan.html.erb +86 -0
  37. data/docs/components/orbit.html.erb +276 -0
  38. data/docs/components/pagination.html.erb +183 -0
  39. data/docs/components/panels.html.erb +123 -0
  40. data/docs/components/pricing-tables.html.erb +156 -0
  41. data/docs/components/progress-bars.html.erb +123 -0
  42. data/docs/components/reveal.html.erb +162 -0
  43. data/docs/components/section.html.erb +1023 -0
  44. data/docs/components/side-nav.html.erb +124 -0
  45. data/docs/components/split-buttons.html.erb +220 -0
  46. data/docs/components/sub-nav.html.erb +122 -0
  47. data/docs/components/switch.html.erb +290 -0
  48. data/docs/components/tables.html.erb +125 -0
  49. data/docs/components/thumbnails.html.erb +89 -0
  50. data/docs/components/tooltips.html.erb +76 -0
  51. data/docs/components/top-bar.html.erb +300 -0
  52. data/docs/components/type.html.erb +396 -0
  53. data/docs/components/visibility.html.erb +110 -0
  54. data/docs/config.ru +12 -0
  55. data/docs/config/deploy.rb +36 -0
  56. data/docs/controller.rb +49 -0
  57. data/docs/css/_coderay.scss +116 -0
  58. data/docs/css/_settings.scss +1 -0
  59. data/docs/css/docs.scss +239 -0
  60. data/docs/css/normalize.scss +396 -0
  61. data/docs/css/qunit-composite.css +13 -0
  62. data/docs/css/qunit.css +235 -0
  63. data/docs/faq.html.erb +63 -0
  64. data/docs/img/demos/demo1-th.jpg +0 -0
  65. data/docs/img/demos/demo1.jpg +0 -0
  66. data/docs/img/demos/demo2-th.jpg +0 -0
  67. data/docs/img/demos/demo2.jpg +0 -0
  68. data/docs/img/demos/demo3-th.jpg +0 -0
  69. data/docs/img/demos/demo3.jpg +0 -0
  70. data/docs/img/demos/demo4-th.jpg +0 -0
  71. data/docs/img/demos/demo4.jpg +0 -0
  72. data/docs/img/demos/demo5-th.jpg +0 -0
  73. data/docs/img/demos/demo5.jpg +0 -0
  74. data/docs/index.html.erb +298 -0
  75. data/docs/javascript.html.erb +138 -0
  76. data/docs/js/docs.js +3 -0
  77. data/docs/js/qunit-composite.js +105 -0
  78. data/docs/js/qunit.js +1977 -0
  79. data/docs/js/tests/tabs/simple_tabs.html +57 -0
  80. data/docs/js/tests/tabs/simple_tabs.js +54 -0
  81. data/docs/js/tests/tooltips/tooltips.html +39 -0
  82. data/docs/js/tests/tooltips/tooltips.js +11 -0
  83. data/docs/layout.html.erb +128 -0
  84. data/docs/media-queries.html.erb +96 -0
  85. data/docs/rails.html.erb +76 -0
  86. data/docs/rtl.html.erb +53 -0
  87. data/docs/sass.html.erb +1297 -0
  88. data/docs/support.html.erb +143 -0
  89. data/js/{foundation/foundation.alerts.js → abstractio/abstractio.alerts.js} +2 -2
  90. data/js/{foundation/foundation.clearing.js → abstractio/abstractio.clearing.js} +6 -6
  91. data/js/{foundation/foundation.cookie.js → abstractio/abstractio.cookie.js} +1 -1
  92. data/js/{foundation/foundation.dropdown.js → abstractio/abstractio.dropdown.js} +5 -5
  93. data/js/{foundation/foundation.forms.js → abstractio/abstractio.forms.js} +7 -7
  94. data/js/{foundation/foundation.joyride.js → abstractio/abstractio.joyride.js} +5 -5
  95. data/js/{foundation/foundation.js → abstractio/abstractio.js} +13 -13
  96. data/js/{foundation/foundation.magellan.js → abstractio/abstractio.magellan.js} +3 -3
  97. data/js/{foundation/foundation.orbit.js → abstractio/abstractio.orbit.js} +6 -6
  98. data/js/{foundation/foundation.placeholder.js → abstractio/abstractio.placeholder.js} +1 -1
  99. data/js/{foundation/foundation.reveal.js → abstractio/abstractio.reveal.js} +3 -3
  100. data/js/{foundation/foundation.section.js → abstractio/abstractio.section.js} +5 -5
  101. data/js/{foundation/foundation.tooltips.js → abstractio/abstractio.tooltips.js} +6 -6
  102. data/js/{foundation/foundation.topbar.js → abstractio/abstractio.topbar.js} +3 -3
  103. data/js/abstractio/index.js +16 -0
  104. data/js/vendor/jquery.js +3 -3
  105. data/lib/abstractio/generators/USAGE +1 -1
  106. data/lib/abstractio/version.rb +1 -1
  107. data/package.json +15 -0
  108. data/scss/abstractio.scss +37 -37
  109. data/scss/abstractio/_variables.scss +1 -1
  110. data/scss/abstractio/components/_alert-boxes.scss +1 -1
  111. data/scss/abstractio/components/_block-grid.scss +2 -2
  112. data/scss/abstractio/components/_dropdown.scss +1 -1
  113. data/scss/abstractio/components/_global.scss +2 -2
  114. data/scss/abstractio/components/_joyride.scss +1 -1
  115. data/scss/abstractio/components/_pagination.scss +1 -1
  116. data/scss/abstractio/components/_switch.scss +1 -1
  117. data/scss/abstractio/components/_visibility.scss +2 -2
  118. data/templates/project/.gitignore +1 -1
  119. data/templates/project/MIT-LICENSE.txt +1 -1
  120. data/templates/project/config.rb +1 -1
  121. data/templates/project/humans.txt +2 -2
  122. data/templates/project/index.html +11 -11
  123. data/templates/project/manifest.rb +1 -1
  124. data/templates/project/scss/app.scss +38 -38
  125. data/templates/upgrade/manifest.rb +2 -2
  126. metadata +104 -22
  127. data/Gemfile +0 -4
  128. data/Rakefile +0 -2
  129. data/js/foundation/index.js +0 -16
  130. data/lib/abstractio.rb +0 -17
@@ -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 Abstractio project needs to 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
+
@@ -0,0 +1,366 @@
1
+ <% @side_nav = "grid" %>
2
+
3
+ <style>
4
+ .row.display { background: #eee; font-size: 11px; margin-bottom: 10px; }
5
+ .row.display .columns, .row.display .column { background: #e7e7e7; border: 1px solid #ddd; font-size: 13px; font-weight: bold; text-indent: 3px; padding-top: 8px; color: #444; padding-bottom: 8px; }
6
+ </style>
7
+
8
+ <div class="row">
9
+ <div class="large-9 push-3 columns">
10
+
11
+ <% @page_title = "Grid" %>
12
+ <div class="row">
13
+ <div class="large-12 columns">
14
+ <h2><%= @page_title %></h2>
15
+ <h4 class="subheader">Create powerful multi-device layouts quickly and easily with the 12-column, nestable Abstractio grid. If you're familiar with grid systems, you'll feel right at home. If not, you'll learn quickly.</h4>
16
+ <hr>
17
+ </div>
18
+ </div>
19
+
20
+ <div class="row">
21
+ <div class="large-12 columns">
22
+
23
+ <h3>Using our Predefined HTML Classes</h3>
24
+ <p>These are examples of different ways to use the Abstractio Grid. Abstractio uses <code>box-sizing: border-box</code> so that borders and padding do not affect the overall width of the columns, making the math dead-simple. Since Abstractio is mobile-first, we'll stack content by default. You do have access to an entirely separate small grid to use up to the 768px breakpoint. This means you can create some pretty complex layouts and even drop columns if you want.</p>
25
+
26
+ <%= code_example '
27
+ <div class="row">
28
+ <div class="small-2 large-4 columns">...</div>
29
+ <div class="small-4 large-4 columns">...</div>
30
+ <div class="small-6 large-4 columns">...</div>
31
+ </div>
32
+ <div class="row">
33
+ <div class="large-3 columns">...</div>
34
+ <div class="large-6 columns">...</div>
35
+ <div class="large-3 columns">...</div>
36
+ </div>
37
+ <div class="row">
38
+ <div class="small-6 large-2 columns">...</div>
39
+ <div class="small-6 large-8 columns">...</div>
40
+ <div class="small-12 large-2 columns">...</div>
41
+ </div>
42
+ <div class="row">
43
+ <div class="small-3 columns">...</div>
44
+ <div class="small-9 columns">...</div>
45
+ </div>
46
+ <div class="row">
47
+ <div class="large-4 columns">...</div>
48
+ <div class="large-8 columns">...</div>
49
+ </div>
50
+ <div class="row">
51
+ <div class="small-6 large-5 columns">...</div>
52
+ <div class="small-6 large-7 columns">...</div>
53
+ </div>
54
+ <div class="row">
55
+ <div class="large-6 columns">...</div>
56
+ <div class="large-6 columns">...</div>
57
+ </div>', :html %>
58
+
59
+ <div class="row display">
60
+ <div class="small-2 large-4 columns"><span class="show-for-small">2</span><span class="hide-for-small">4</span></div>
61
+ <div class="small-4 large-4 columns">4</div>
62
+ <div class="small-6 large-4 columns"><span class="show-for-small">6</span><span class="hide-for-small">4</span></div>
63
+ </div>
64
+ <div class="row display">
65
+ <div class="large-3 columns"><span class="show-for-small">full</span><span class="hide-for-small">3</span></div>
66
+ <div class="large-6 columns"><span class="show-for-small">full</span><span class="hide-for-small">6</span></div>
67
+ <div class="large-3 columns"><span class="show-for-small">full</span><span class="hide-for-small">3</span></div>
68
+ </div>
69
+ <div class="row display">
70
+ <div class="small-6 large-2 columns"><span class="show-for-small">6</span><span class="hide-for-small">2</span></div>
71
+ <div class="small-6 large-8 columns"><span class="show-for-small">6</span><span class="hide-for-small">8</span></div>
72
+ <div class="small-12 large-2 columns"><span class="show-for-small">full</span><span class="hide-for-small">2</span></div>
73
+ </div>
74
+ <div class="row display">
75
+ <div class="small-3 columns">3</div>
76
+ <div class="small-9 columns">9</div>
77
+ </div>
78
+ <div class="row display">
79
+ <div class="large-4 columns"><span class="show-for-small">full</span><span class="hide-for-small">4</span></div>
80
+ <div class="large-8 columns"><span class="show-for-small">full</span><span class="hide-for-small">8</span></div>
81
+ </div>
82
+ <div class="row display">
83
+ <div class="small-6 large-5 columns"><span class="show-for-small">6</span><span class="hide-for-small">5</span></div>
84
+ <div class="small-6 large-7 columns"><span class="show-for-small">6</span><span class="hide-for-small">7</span></div>
85
+ </div>
86
+ <div class="row display">
87
+ <div class="large-6 columns"><span class="show-for-small">full</span><span class="hide-for-small">6</span></div>
88
+ <div class="large-6 columns"><span class="show-for-small">full</span><span class="hide-for-small">6</span></div>
89
+ </div>
90
+
91
+ <hr>
92
+
93
+ <h4>Infinitely Nest Your Grid</h4>
94
+ <p>The grid allows for nesting down as far as you'd like, though at a certain point it will get absurd. You can use this nesting to create quite complex layouts, as well as some other tricks like form layouts or visual elements.</p>
95
+
96
+ <%= code_example '
97
+ <div class="row">
98
+ <div class="small-8 columns">8
99
+ <div class="row">
100
+ <div class="small-8 columns">8 Nested
101
+ <div class="row">
102
+ <div class="small-8 columns">8 Nested Again</div>
103
+ <div class="small-4 columns">4</div>
104
+ </div>
105
+ </div>
106
+ <div class="small-4 columns">4</div>
107
+ </div>
108
+ </div>
109
+ <div class="small-4 columns">4</div>
110
+ </div>', :html %>
111
+
112
+ <div class="row display">
113
+ <div class="small-8 columns">8
114
+ <div class="row">
115
+ <div class="small-8 columns">8 Nested
116
+ <div class="row">
117
+ <div class="small-8 columns">8 Nested Again</div>
118
+ <div class="small-4 columns">4</div>
119
+ </div>
120
+ </div>
121
+ <div class="small-4 columns">4</div>
122
+ </div>
123
+ </div>
124
+ <div class="small-4 columns">4</div>
125
+ </div>
126
+
127
+ <hr>
128
+
129
+ <h4>Offsets</h4>
130
+ <p>Offsets allow you to create additional space between columns in a row. Like the rest of the grid, they're nestable. You can use classes like <code>.large-offset-1</code> and <code>.small-offset-3</code> to manipulate your column positions in different ways. You can offset up to 11 since you wouldn't ever offset a full-width column.</p>
131
+
132
+ <%= code_example '
133
+ <div class="row">
134
+ <div class="large-1 columns">1</div>
135
+ <div class="large-11 columns">11</div>
136
+ </div>
137
+ <div class="row">
138
+ <div class="large-1 columns">1</div>
139
+ <div class="large-10 large-offset-1 columns">10, offset 1</div>
140
+ </div>
141
+ <div class="row">
142
+ <div class="large-1 columns">1</div>
143
+ <div class="large-9 large-offset-2 columns">9, offset 2</div>
144
+ </div>
145
+ <div class="row">
146
+ <div class="large-1 columns">1</div>
147
+ <div class="large-8 large-offset-3 columns">8, offset 3</div>
148
+ </div>', :html %>
149
+
150
+ <div class="row display">
151
+ <div class="large-1 columns">1</div>
152
+ <div class="large-11 columns">11</div>
153
+ </div>
154
+ <div class="row display">
155
+ <div class="large-1 columns">1</div>
156
+ <div class="large-10 large-offset-1 columns">10, offset 1</div>
157
+ </div>
158
+ <div class="row display">
159
+ <div class="large-1 columns">1</div>
160
+ <div class="large-9 large-offset-2 columns">9, offset 2</div>
161
+ </div>
162
+ <div class="row display">
163
+ <div class="large-1 columns">1</div>
164
+ <div class="large-8 large-offset-3 columns">8, offset 3</div>
165
+ </div>
166
+
167
+ <hr>
168
+
169
+ <h4>Centered Columns</h4>
170
+ <p>Centered columns are placed in the middle of the row. This does not center their content, but centers the grid element, itself. This is accomplished by adding a class of <code>large-centered</code> or <code>small-centered</code> depending on which breakpoint you want the columns to center on. Small versions will carry through all breakpoints if not overridden by a large version. You can center any number of columns you have. To have a column not carry it's small-centered to large, add a class of <code>large-uncentered</code>.</p>
171
+
172
+ <%= code_example '
173
+ <div class="row">
174
+ <div class="small-3 small-centered columns">3 centered</div>
175
+ </div>
176
+ <div class="row">
177
+ <div class="small-6 large-centered columns">6 centered</div>
178
+ </div>
179
+ <div class="row">
180
+ <div class="small-9 small-centered columns">9 centered</div>
181
+ </div>
182
+ <div class="row">
183
+ <div class="small-11 small-centered columns">11 centered</div>
184
+ </div>', :html %>
185
+
186
+ <div class="row display">
187
+ <div class="small-3 small-centered columns">3 centered</div>
188
+ </div>
189
+ <div class="row display">
190
+ <div class="small-6 large-centered columns">6 centered, large</div>
191
+ </div>
192
+ <div class="row display">
193
+ <div class="small-9 small-centered large-uncentered columns">9 centered small</div>
194
+ </div>
195
+ <div class="row display">
196
+ <div class="small-11 small-centered columns">11 centered</div>
197
+ </div>
198
+
199
+ <hr>
200
+
201
+ <h4>Source Ordering</h4>
202
+
203
+ <p>Using these source ordering classes, you can shift columns around between our breakpoints. This means you can have a sub-nav on the left on large displays, but go below on small ones. <code>.push-#</code> is the syntax you'll use.</p>
204
+
205
+
206
+ <%= code_example '
207
+ <div class="row">
208
+ <div class="small-2 push-10 columns">2</div>
209
+ <div class="small-10 pull-2 columns">10, last</div>
210
+ </div>
211
+ <div class="row">
212
+ <div class="small-3 push-9 columns">3</div>
213
+ <div class="small-9 pull-3 columns">9, last</div>
214
+ </div>
215
+ <div class="row">
216
+ <div class="small-4 push-8 columns">4</div>
217
+ <div class="small-8 pull-4 columns">8, last</div>
218
+ </div>
219
+ <div class="row">
220
+ <div class="small-5 push-7 columns">5</div>
221
+ <div class="small-7 pull-5 columns">5, last</div>
222
+ </div>
223
+ <div class="row">
224
+ <div class="small-6 push-6 columns">6</div>
225
+ <div class="small-6 pull-6 columns">6, last</div>
226
+ </div>', :html %>
227
+
228
+ <div class="row display">
229
+ <div class="small-2 push-10 columns">2</div>
230
+ <div class="small-10 pull-2 columns">10, last</div>
231
+ </div>
232
+ <div class="row display">
233
+ <div class="small-3 push-9 columns">3</div>
234
+ <div class="small-9 pull-3 columns">9, last</div>
235
+ </div>
236
+ <div class="row display">
237
+ <div class="small-4 push-8 columns">4</div>
238
+ <div class="small-8 pull-4 columns">8, last</div>
239
+ </div>
240
+ <div class="row display">
241
+ <div class="small-5 push-7 columns">5</div>
242
+ <div class="small-7 pull-5 columns">5, last</div>
243
+ </div>
244
+ <div class="row display">
245
+ <div class="small-6 push-6 columns">6</div>
246
+ <div class="small-6 pull-6 columns">6, last</div>
247
+ </div>
248
+
249
+ <hr>
250
+
251
+ <h4>Small Grid</h4>
252
+ <p>As you've probably noticed in the examples above, you have access to a small and large grid. If you know that your grid structure will be the same for small devices as it will be on large devices, just use the small grid. You can override your small grid classes by adding large grid classes to it. To use the mixin, you'll need to have the <a href="../sass.html">extension installed</a> or grab <a target="_blank" href="https://github.com/themepile/abstractio/tree/master/scss/abstractio/components">_abstractio-global.scss</a>, <a href="https://github.com/themepile/abstractio/blob/master/scss/abstractio/components/_global.scss">_global.scss</a> and <a target="_blank" href="https://github.com/themepile/abstractio/tree/master/scss/abstractio/components">_grid.scss</a> from Github and throw them into a Abstractio folder in your project directory.</p>
253
+
254
+ <%= code_example '
255
+ <div class="row">
256
+ <div class="small-2 columns">2</div>
257
+ <div class="small-10 columns">10, last</div>
258
+ </div>
259
+ <div class="row">
260
+ <div class="small-3 columns">3</div>
261
+ <div class="small-9 columns">9, last</div>
262
+ </div>', :html %>
263
+
264
+ <div class="row display">
265
+ <div class="small-2 columns">2</div>
266
+ <div class="small-10 columns">10, last</div>
267
+ </div>
268
+ <div class="row display">
269
+ <div class="small-3 columns">3</div>
270
+ <div class="small-9 columns">9, last</div>
271
+ </div>
272
+
273
+ <hr>
274
+
275
+ <h3>Building With Mixins</h3>
276
+ <p>If you are keen on SCSS and use it for your Abstractio projects, you have access to grid mixins that will let you layout the page without using presentational classes that you don't want. You can create your own set of classes or even create your own grid. Setting any of the options to 'false' will leave off those styles, giving you lots of control over your CSS output. Here's an example structure you might use with the grid mixin:</p>
277
+
278
+ <h5>Basic Mixin Usage</h5>
279
+ <%= code_example '
280
+ /* Mixin options creating rows */
281
+ @include grid-row($behavior);
282
+
283
+ /* The default value is false, which will bring in the default row styles */
284
+ $behavior: false
285
+
286
+ /* If the element you are creating as a row is nested within another element */
287
+ /* that is also a row, you need to add the proper nesting styles */
288
+ $behavior: nest
289
+
290
+ /* You can use this option to collapse the container row margins */
291
+ /* This comes in handy when working with forms inside the grid */
292
+ $behavior: collapse
293
+
294
+ /* If you have a nested row and want it to be collapsed, you need to add this option */
295
+ $behavior: nest-collapse
296
+ ', :css %>
297
+
298
+ <%= code_example '
299
+ /* Mixin options creating columns, these must be nested inside or a row */
300
+ @include grid-column($columns, $last-column, $center, $offset, $push, $pull, $collapse, $float);
301
+
302
+ /* The most commonly used option with a column */
303
+ /* This sets the width properties for the column, use a number to represent columns */
304
+ $columns: #
305
+
306
+ /* Use this option if your columns do not add up to 12. */
307
+ /* We make the last column default to float:right to keep things aligned */
308
+ /* If you do not want this, set $last-column to true */
309
+ $last-column: false
310
+
311
+ /* If you have a single column inside a row and want it centered, set this to true */
312
+ $center: false
313
+
314
+ /* Control how many columns you offset by switching this into a number. */
315
+ $offset: false
316
+
317
+ /* You can use source ordering with this mixin too, just set this to a number. */
318
+ $push: false
319
+
320
+ /* You can use source ordering with this mixin too, just set this to a number. */
321
+ $pull: false
322
+
323
+ /* If you have a collapsed row, you need to set the columns to collapse as well. */
324
+ $collapse: false
325
+
326
+ /* By default, we include float: left. */
327
+ /* To help control this, we made it an option. Set this to false to not include those styles. */
328
+ $float: left
329
+ ', :css %>
330
+
331
+ <%= code_example '
332
+ #masthead { @include grid-row; @include panel;
333
+ & > hgroup { @include grid-column(4); }
334
+ & > section { @include grid-column(8); }
335
+ }', :css %>
336
+
337
+ <header id="masthead">
338
+ <hgroup>
339
+ <h2>Title</h2>
340
+ </hgroup>
341
+ <section>
342
+ <p>Aenean lacinia bibendum nulla sed consectetur. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
343
+ </section>
344
+ </header>
345
+
346
+ <hr>
347
+
348
+ <h5>Default SCSS Variables</h5>
349
+ <%= code_example '
350
+ $row-width: emCalc(1000px) !default;
351
+ $column-gutter: emCalc(30px) !default;
352
+ $total-columns: 12 !default;
353
+ ', :css %>
354
+
355
+ <hr>
356
+
357
+ <h4>Get Advanced With Media Query Changes</h4>
358
+ <p>We kept media queries out of the code for our grid mixins. This will enable you to include the mixins inside of whatever breakpoint you'd like, putting you in complete control. If you want to create 10 breakpoints and shift the layout around between each one, by all means. If you want to use only the default breakpoints, <a href="../sass.html">we've got variables for that</a>.</p>
359
+
360
+ </div>
361
+ </div>
362
+ </div>
363
+ <div class="large-3 pull-9 columns">
364
+ <%= render "_sidebar-components.html.erb" %>
365
+ </div>
366
+ </div>