susy 1.0.9 → 2.0.0.alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. data/CHANGELOG.mkdn +0 -27
  2. data/README.md +4 -87
  3. data/docs/BUGS.md +2 -0
  4. data/docs/Gemfile.lock +142 -0
  5. data/docs/README.md +54 -0
  6. data/docs/config.rb +120 -0
  7. data/docs/lib/guide_helpers.rb +19 -0
  8. data/docs/source/apple-touch-icon-114x114-precomposed.png +0 -0
  9. data/docs/source/apple-touch-icon-144x144-precomposed.png +0 -0
  10. data/docs/source/apple-touch-icon-72x72-precomposed.png +0 -0
  11. data/docs/source/apple-touch-icon-precomposed.png +0 -0
  12. data/docs/source/demos/grid-types.html.md +263 -0
  13. data/docs/source/demos/index.html.md +23 -0
  14. data/docs/source/demos/magic.html.md +320 -0
  15. data/docs/source/favicon.ico +0 -0
  16. data/docs/source/fonts/@Font-Face License.txt +18 -0
  17. data/docs/source/fonts/Baskerville-amp-webfont.eot +0 -0
  18. data/docs/source/fonts/Baskerville-amp-webfont.svg +241 -0
  19. data/docs/source/fonts/Baskerville-amp-webfont.ttf +0 -0
  20. data/docs/source/fonts/Baskerville-amp-webfont.woff +0 -0
  21. data/docs/source/fonts/CenturyOldStyle-Bold-webfont.eot +0 -0
  22. data/docs/source/fonts/CenturyOldStyle-Bold-webfont.svg +240 -0
  23. data/docs/source/fonts/CenturyOldStyle-Bold-webfont.ttf +0 -0
  24. data/docs/source/fonts/CenturyOldStyle-Bold-webfont.woff +0 -0
  25. data/docs/source/fonts/CenturyOldStyle-Italic-webfont.eot +0 -0
  26. data/docs/source/fonts/CenturyOldStyle-Italic-webfont.svg +240 -0
  27. data/docs/source/fonts/CenturyOldStyle-Italic-webfont.ttf +0 -0
  28. data/docs/source/fonts/CenturyOldStyle-Italic-webfont.woff +0 -0
  29. data/docs/source/fonts/CenturyOldStyle-Regular-webfont.eot +0 -0
  30. data/docs/source/fonts/CenturyOldStyle-Regular-webfont.svg +240 -0
  31. data/docs/source/fonts/CenturyOldStyle-Regular-webfont.ttf +0 -0
  32. data/docs/source/fonts/CenturyOldStyle-Regular-webfont.woff +0 -0
  33. data/docs/source/fonts/CenturyOldStyleCaps-Regular-webfont.eot +0 -0
  34. data/docs/source/fonts/CenturyOldStyleCaps-Regular-webfont.svg +240 -0
  35. data/docs/source/fonts/CenturyOldStyleCaps-Regular-webfont.ttf +0 -0
  36. data/docs/source/fonts/CenturyOldStyleCaps-Regular-webfont.woff +0 -0
  37. data/docs/source/fonts/FranklinGothic-Book-webfont.eot +0 -0
  38. data/docs/source/fonts/FranklinGothic-Book-webfont.svg +240 -0
  39. data/docs/source/fonts/FranklinGothic-Book-webfont.ttf +0 -0
  40. data/docs/source/fonts/FranklinGothic-Book-webfont.woff +0 -0
  41. data/docs/source/fonts/FranklinGothic-BookIt-webfont.eot +0 -0
  42. data/docs/source/fonts/FranklinGothic-BookIt-webfont.svg +240 -0
  43. data/docs/source/fonts/FranklinGothic-BookIt-webfont.ttf +0 -0
  44. data/docs/source/fonts/FranklinGothic-BookIt-webfont.woff +0 -0
  45. data/docs/source/fonts/FranklinGothic-Cd-webfont.eot +0 -0
  46. data/docs/source/fonts/FranklinGothic-Cd-webfont.svg +240 -0
  47. data/docs/source/fonts/FranklinGothic-Cd-webfont.ttf +0 -0
  48. data/docs/source/fonts/FranklinGothic-Cd-webfont.woff +0 -0
  49. data/docs/source/fonts/FranklinGothic-CdIt-webfont.eot +0 -0
  50. data/docs/source/fonts/FranklinGothic-CdIt-webfont.svg +240 -0
  51. data/docs/source/fonts/FranklinGothic-CdIt-webfont.ttf +0 -0
  52. data/docs/source/fonts/FranklinGothic-CdIt-webfont.woff +0 -0
  53. data/docs/source/fonts/FranklinGothic-Med-webfont.eot +0 -0
  54. data/docs/source/fonts/FranklinGothic-Med-webfont.svg +240 -0
  55. data/docs/source/fonts/FranklinGothic-Med-webfont.ttf +0 -0
  56. data/docs/source/fonts/FranklinGothic-Med-webfont.woff +0 -0
  57. data/docs/source/fonts/FranklinGothic-MedCd-webfont.eot +0 -0
  58. data/docs/source/fonts/FranklinGothic-MedCd-webfont.svg +240 -0
  59. data/docs/source/fonts/FranklinGothic-MedCd-webfont.ttf +0 -0
  60. data/docs/source/fonts/FranklinGothic-MedCd-webfont.woff +0 -0
  61. data/docs/source/fonts/FranklinGothic-MedCdIt-webfont.eot +0 -0
  62. data/docs/source/fonts/FranklinGothic-MedCdIt-webfont.svg +240 -0
  63. data/docs/source/fonts/FranklinGothic-MedCdIt-webfont.ttf +0 -0
  64. data/docs/source/fonts/FranklinGothic-MedCdIt-webfont.woff +0 -0
  65. data/docs/source/fonts/FranklinGothic-MedIt-webfont.eot +0 -0
  66. data/docs/source/fonts/FranklinGothic-MedIt-webfont.svg +240 -0
  67. data/docs/source/fonts/FranklinGothic-MedIt-webfont.ttf +0 -0
  68. data/docs/source/fonts/FranklinGothic-MedIt-webfont.woff +0 -0
  69. data/docs/source/fonts/License.txt +77 -0
  70. data/docs/source/fonts/susy.eot +0 -0
  71. data/docs/source/fonts/susy.svg +69 -0
  72. data/docs/source/fonts/susy.ttf +0 -0
  73. data/docs/source/fonts/susy.woff +0 -0
  74. data/docs/source/guides/getting-started.html.md +277 -0
  75. data/docs/source/guides/reference.html.md +658 -0
  76. data/docs/source/guides/upgrade-1-0.html.md +286 -0
  77. data/docs/source/humans.txt +45 -0
  78. data/docs/source/images/splash-iphone.png +0 -0
  79. data/docs/source/images/splash-iphone4.png +0 -0
  80. data/docs/source/images/splash-landscape.png +0 -0
  81. data/docs/source/images/splash-portrait.png +0 -0
  82. data/docs/source/index.html.md +87 -0
  83. data/docs/source/javascripts/jquery-1.7.1.min.js +4 -0
  84. data/docs/source/javascripts/jqwidont.js +5 -0
  85. data/docs/source/javascripts/modernizr-2.5.3.min.js +4 -0
  86. data/docs/source/javascripts/modernizr.selectors.js +55 -0
  87. data/docs/source/javascripts/viewport.js +9 -0
  88. data/docs/source/layouts/grid-types.haml +22 -0
  89. data/docs/source/layouts/layout.haml +34 -0
  90. data/docs/source/layouts/magic.haml +28 -0
  91. data/docs/source/partials/_contentinfo.haml +47 -0
  92. data/docs/source/partials/_demonav.haml +2 -0
  93. data/docs/source/partials/_google_analytics.haml +5 -0
  94. data/docs/source/partials/_head.haml +22 -0
  95. data/docs/source/partials/_javascripts.haml +4 -0
  96. data/docs/source/partials/_navigation.haml +15 -0
  97. data/docs/source/sites-using-susy.html.md +29 -0
  98. data/docs/source/stylesheets/_base/_base.scss +23 -0
  99. data/docs/source/stylesheets/_base/_colors.scss +47 -0
  100. data/docs/source/stylesheets/_base/_size.scss +49 -0
  101. data/docs/source/stylesheets/_base/_type.scss +19 -0
  102. data/docs/source/stylesheets/_demos/_demo.scss +28 -0
  103. data/docs/source/stylesheets/_demos/magic/_layout.scss +39 -0
  104. data/docs/source/stylesheets/_demos/magic/_style.scss +104 -0
  105. data/docs/source/stylesheets/_demos/types/_layouts.scss +88 -0
  106. data/docs/source/stylesheets/_demos/types/_template.scss +57 -0
  107. data/docs/source/stylesheets/_general/_century-oldstyle.scss +70 -0
  108. data/docs/source/stylesheets/_general/_font-license.scss +23 -0
  109. data/docs/source/stylesheets/_general/_fonts.scss +26 -0
  110. data/docs/source/stylesheets/_general/_franklin-gothic.scss +112 -0
  111. data/docs/source/stylesheets/_general/_icons.scss +86 -0
  112. data/docs/source/stylesheets/_general/_root.scss +79 -0
  113. data/docs/source/stylesheets/_general/_type.scss +114 -0
  114. data/docs/source/stylesheets/_layout.scss +48 -0
  115. data/docs/source/stylesheets/_modules/_ag-test.scss +59 -0
  116. data/docs/source/stylesheets/_modules/_banner.scss +61 -0
  117. data/docs/source/stylesheets/_modules/_contentinfo.scss +41 -0
  118. data/docs/source/stylesheets/_modules/_intro.scss +53 -0
  119. data/docs/source/stylesheets/_modules/_nav.scss +44 -0
  120. data/docs/source/stylesheets/_modules/_pages.scss +5 -0
  121. data/docs/source/stylesheets/_modules/_secondary.scss +22 -0
  122. data/docs/source/stylesheets/_modules/_toggle.scss +40 -0
  123. data/docs/source/stylesheets/_vendor/pygments/solarized.scss +65 -0
  124. data/docs/source/stylesheets/grid-types.css.scss +6 -0
  125. data/docs/source/stylesheets/magic.css.scss +6 -0
  126. data/docs/source/stylesheets/site.css.scss +27 -0
  127. data/lib/susy.rb +12 -1
  128. data/sass/README.md +33 -0
  129. data/sass/_susy.scss +55 -16
  130. data/sass/susy/_api.scss +39 -0
  131. data/sass/susy/_grids.scss +2 -0
  132. data/sass/susy/_gutters.scss +2 -0
  133. data/sass/susy/_helpers.scss +14 -0
  134. data/sass/susy/_language.scss +3 -0
  135. data/sass/susy/_math.scss +3 -0
  136. data/sass/susy/api/_float.scss +72 -0
  137. data/sass/susy/api/_isolation.scss +16 -0
  138. data/sass/susy/grids/_add.scss +10 -0
  139. data/sass/susy/grids/_find.scss +10 -0
  140. data/sass/susy/gutters/_add.scss +10 -0
  141. data/sass/susy/gutters/_find.scss +10 -0
  142. data/sass/susy/helpers/_background-grid.scss +65 -0
  143. data/sass/susy/helpers/_box-sizing.scss +25 -0
  144. data/sass/susy/helpers/_clearfix.scss +51 -0
  145. data/sass/susy/helpers/_columns.scss +15 -0
  146. data/sass/susy/helpers/_find.scss +63 -0
  147. data/sass/susy/helpers/_sass-lists.scss +71 -0
  148. data/sass/susy/helpers/_span-shared.scss +9 -0
  149. data/sass/susy/language/_parse-add.scss +19 -0
  150. data/sass/susy/language/_parse-list.scss +53 -0
  151. data/sass/susy/language/_span.scss +20 -0
  152. data/sass/susy/math/_columns.scss +70 -0
  153. data/sass/susy/math/_context.scss +3 -0
  154. data/sass/susy/math/_gutters.scss +11 -0
  155. data/templates/box-sizing/behaviors/box-sizing/boxsizing.htc +399 -0
  156. data/templates/box-sizing/behaviors/box-sizing/boxsizing.php +23 -0
  157. data/templates/box-sizing/manifest.rb +4 -0
  158. data/templates/project/README.md +59 -0
  159. data/templates/project/_base.scss +0 -10
  160. data/templates/project/behaviors/box-sizing/boxsizing.htc +399 -0
  161. data/templates/project/behaviors/box-sizing/boxsizing.php +23 -0
  162. data/templates/project/manifest.rb +3 -0
  163. data/templates/project/screen.scss +0 -8
  164. metadata +200 -43
  165. data/Manifest +0 -39
  166. data/Rakefile +0 -19
  167. data/VERSION +0 -1
  168. data/sass/susy/_background.scss +0 -18
  169. data/sass/susy/_functions.scss +0 -376
  170. data/sass/susy/_grid.scss +0 -286
  171. data/sass/susy/_isolation.scss +0 -51
  172. data/sass/susy/_margin.scss +0 -93
  173. data/sass/susy/_media.scss +0 -112
  174. data/sass/susy/_padding.scss +0 -92
  175. data/sass/susy/_settings.scss +0 -56
  176. data/sass/susy/_support.scss +0 -198
  177. data/sass/susy/_units.scss +0 -159
  178. data/susy.gemspec +0 -35
  179. data/test/config.rb +0 -10
  180. data/test/css/background.css +0 -16
  181. data/test/css/bleed.css +0 -20
  182. data/test/css/functions.css +0 -7
  183. data/test/css/grid.css +0 -134
  184. data/test/css/isolation.css +0 -46
  185. data/test/css/margin.css +0 -20
  186. data/test/css/media.css +0 -101
  187. data/test/css/padding.css +0 -12
  188. data/test/scss/background.scss +0 -11
  189. data/test/scss/bleed.scss +0 -19
  190. data/test/scss/functions.scss +0 -15
  191. data/test/scss/grid.scss +0 -77
  192. data/test/scss/isolation.scss +0 -19
  193. data/test/scss/margin.scss +0 -27
  194. data/test/scss/media.scss +0 -50
  195. data/test/scss/padding.scss +0 -19
@@ -0,0 +1,658 @@
1
+ ---
2
+ title: Reference
3
+ class: guide
4
+ side_content: >
5
+ <p class="version">Version <span>1.0.5</span></p>
6
+ <h2><a href="#ref-basic">Basic Usage</a></h2>
7
+ <h3><a href="#ref-basic-settings">Basic Settings</a></h3>
8
+ <ul>
9
+ <li><a href="#ref-total-columns">$total-columns</a></li>
10
+ <li><a href="#ref-column-width">$column-width</a></li>
11
+ <li><a href="#ref-gutter-width">$gutter-width</a></li>
12
+ <li><a href="#ref-grid-padding">$grid-padding</a></li>
13
+ </ul>
14
+ <h3><a href="#ref-basic-mixins">Basic Mixins</a></h3>
15
+ <ul>
16
+ <li><a href="#ref-container">container()</a></li>
17
+ <li><a href="#ref-span-columns">span-columns()</a></li>
18
+ <li><a href="#ref-omega">omega()</a></li>
19
+ <li><a href="#ref-nth-omega">nth-omega()</a></li>
20
+ </ul>
21
+ <h2><a href="#ref-responsive">Responsive Grids</a></h2>
22
+ <ul>
23
+ <li><a href="#ref-media-layouts">$media-layout</a></li>
24
+ </ul>
25
+ <h3><a href="#ref-responsive-mixins">Responsive Mixins</a></h3>
26
+ <ul>
27
+ <li><a href="#ref-at-breakpoint">at-breakpoint()</a></li>
28
+ <li><a href="#ref-layout">layout()</a></li>
29
+ <li><a href="#ref-container-width">set-container-width()</a></li>
30
+ <li><a href="#ref-with-settings">with-grid-settings()</a></li>
31
+ </ul>
32
+ <h2><a href="#ref-helper">Grid Helpers</a></h2>
33
+ <h3><a href="#ref-helper-sizing">Box Sizing</a></h3>
34
+ <ul>
35
+ <li><a href="#ref-border-box-mixin">border-box-sizing()</a></li>
36
+ </ul>
37
+ <h3><a href="#ref-helper-padding">Padding Mixins</a></h3>
38
+ <ul>
39
+ <li><a href="#ref-prefix">prefix()</a></li>
40
+ <li><a href="#ref-suffix">suffix()</a></li>
41
+ <li><a href="#ref-pad">pad()</a></li>
42
+ </ul>
43
+ <h3><a href="#ref-helper-margin">Margin Mixins</a></h3>
44
+ <ul>
45
+ <li><a href="#ref-pre">pre()</a></li>
46
+ <li><a href="#ref-post">post()</a></li>
47
+ <li><a href="#ref-squish">squish()</a></li>
48
+ <li><a href="#ref-push">push()</a></li>
49
+ <li><a href="#ref-pull">pull()</a></li>
50
+ </ul>
51
+ <h3><a href="#ref-helper-reset">Reset Mixins</a></h3>
52
+ <ul>
53
+ <li><a href="#ref-reset-columns">reset-columns()</a></li>
54
+ <li><a href="#ref-remove-omega">remove-omega()</a></li>
55
+ <li><a href="#ref-remove-nth-omega">remove-nth-omega()</a></li>
56
+ </ul>
57
+ <h3><a href="#ref-helper-other">Other Mixins</a></h3>
58
+ <ul>
59
+ <li><a href="#ref-grid-background">susy-grid-background()</a></li>
60
+ </ul>
61
+ <h3><a href="#ref-helper-functions">Functions</a></h3>
62
+ <ul>
63
+ <li><a href="#ref-columns">columns()</a></li>
64
+ <li><a href="#ref-gutter">gutter()</a></li>
65
+ <li><a href="#ref-space">space()</a></li>
66
+ </ul>
67
+ <h3><a href="#ref-container-override">Container Override Settings</a></h3>
68
+ <ul>
69
+ <li><a href="#ref-container-width">$container-width</a></li>
70
+ <li><a href="#ref-container-style">$container-style</a></li>
71
+ </ul>
72
+ <h3><a href="#ref-direction-override">Direction Override Settings</a></h3>
73
+ <ul>
74
+ <li><a href="#ref-from-direction">$from-direction</a></li>
75
+ <li><a href="#ref-omega-float">$omega-float</a></li>
76
+ </ul>
77
+ <h3><a href="#ref-compass-options">Compass Options</a></h3>
78
+ <ul>
79
+ <li><a href="#ref-base-font-size">$base-font-size</a></li>
80
+ <li><a href="#ref-browser-support">$legacy-support-for-...</a></li>
81
+ </ul>
82
+ <h3><a href="#ref-compass-options">Breakpoint Output</a></h3>
83
+ <ul>
84
+ <li><a href="#ref-media-output">$breakpoint-media-output</a></li>
85
+ <li><a href="#ref-ie-output">$breakpoint-ie-output</a></li>
86
+ <li><a href="#ref-raw-output">$breakpoint-raw-output</a></li>
87
+ </ul>
88
+ ---
89
+
90
+ ## <a href="#ref-basic" id="ref-basic">Basic Usage</a>
91
+
92
+ :::scss
93
+ @import 'susy';
94
+
95
+ - **Container**: The root element of a _Grid_.
96
+ - **Layout**: The total number of _Columns_ in a grid.
97
+ - **Grid Padding**: Padding on the sides of the _Grid_.
98
+ - **Context**: The number of _Columns_ spanned by the parent element.
99
+ - **Omega**: Any _Grid Element_ spanning the last _Column_ in its _Context_.
100
+
101
+ ### <a href="#ref-basic-settings" id="ref-basic-settings">Basic Settings</a>
102
+
103
+ #### <a href="#ref-total-columns" id="ref-total-columns">Total Columns</a>
104
+ The number of Columns in your default Grid Layout.
105
+
106
+ :::scss
107
+ // $total-columns: <number>;
108
+ $total-columns: 12;
109
+
110
+ - `<number>`: Unitless number.
111
+
112
+ #### <a href="#ref-column-width" id="ref-column-width">Column Width</a>
113
+ The width of a single Column in your Grid.
114
+
115
+ :::scss
116
+ // $column-width: <length>;
117
+ $column-width: 4em;
118
+
119
+ - `<length>`: Length in any unit of measurement (em, px, %, etc).
120
+
121
+ #### <a href="#ref-gutter-width" id="ref-gutter-width">Gutter Width</a>
122
+ The space between Columns.
123
+
124
+ :::scss
125
+ // $gutter-width: <length>;
126
+ $gutter-width: 1em;
127
+
128
+ - `<length>`: Units must match `$column-width`.
129
+
130
+ #### <a href="#ref-grid-padding" id="ref-grid-padding">Grid Padding</a>
131
+ Padding on the left and right of a Grid Container.
132
+
133
+ :::scss
134
+ // $grid-padding: <length>;
135
+ $grid-padding: $gutter-width; // 1em
136
+
137
+ - `<length>`: Units should match the container width
138
+ (`$column-width` unless `$container-width` is set directly).
139
+
140
+ ### <a href="#ref-basic-mixins" id="ref-basic-mixins">Basic Mixins</a>
141
+
142
+ #### <a href="#ref-container" id="ref-container">Container</a>
143
+ Establish the outer grid-containing element.
144
+
145
+ :::scss
146
+ // container([$<media-layout>]*)
147
+ .page { @include container; }
148
+
149
+ - `<$media-layout>`: Optional media-layout shortcuts
150
+ (see '[Responsive Grids][responsive]' below).
151
+ Default: `$total-columns`.
152
+
153
+ [responsive]: #ref-responsive
154
+
155
+ #### <a href="#ref-span-columns" id="ref-span-columns">Span Columns</a>
156
+ Align an element to the Susy Grid.
157
+
158
+ :::scss
159
+ // span-columns(<$columns> [<omega> , <$context>, <$padding>, <$from>])
160
+ nav { @include span-columns(3,12); }
161
+ article { @include span-columns(9 omega,12); }
162
+
163
+ - `<$columns>`: The number of _Columns_ to span.
164
+ - `<omega>`: Optional flag to signal the last element in a row.
165
+ - `<$context>`: Current nesting _Context_.
166
+ Default: `$total-columns`.
167
+ - `<$padding>`: Optional padding applied inside an individual grid element.
168
+ Given as a length (same units as the grid)
169
+ or a list of lengths (from-direction to-direction).
170
+ Default: `false`.
171
+ - `<$from>`: The origin direction of your document flow.
172
+ Default: `$from-direction`.
173
+
174
+ #### <a href="#ref-omega" id="ref-omega">Omega</a>
175
+ Apply to any omega element as an override.
176
+
177
+ :::scss
178
+ // omega([<$from>])
179
+ .gallery-image {
180
+ @include span-columns(3,9); // each gallery-image is 3 of 9 cols.
181
+ &:nth-child(3n) { @include omega; } // every third image completes a row.
182
+ }
183
+
184
+ - `<$from>`: The origin direction of your document flow.
185
+ Default: `$from-direction`.
186
+
187
+ #### <a href="#ref-omega" id="ref-nth-omega">Nth-Omega</a>
188
+ Apply to any element as an nth-child omega shortcut.
189
+ Defaults to `:last-child`.
190
+
191
+ :::scss
192
+ // nth-omega([<$n>, <$selector>, <$from>])
193
+ .gallery-image {
194
+ @include span-columns(3,9); // each gallery-image is 3 of 9 cols.
195
+ @include nth-omega(3n); // same as omega example above.
196
+ }
197
+
198
+ - `<$n>`: The keyword or equation to select: `[first | only | last | <equation>]`.
199
+ An equation could be e.g. `3` or `3n` or `'3n+1'`.
200
+ Note that quotes are needed to keep complex equations
201
+ from being simplified by Compass.
202
+ Default: `last`.
203
+ - `<$selector>`: The type of element, and direction to count from:
204
+ `[child | last-child | of-type | last-of-type ]`.
205
+ Default: `child`.
206
+ - `<$from>`: The origin direction of your document flow.
207
+ Default: `$from-direction`.
208
+
209
+ ## <a href="#ref-responsive" id="ref-responsive">Responsive Grids</a>
210
+
211
+ - **Breakpoint**: A min- or max- viewport width at which to change _Layouts_.
212
+ - **Media-Layout**: Shortcut for declaring _Breakpoints_ and _Layouts_ in Susy.
213
+
214
+ ### <a href="#ref-media-layouts" id="ref-media-layouts">Media-Layouts</a>
215
+
216
+ :::scss
217
+ // $media-layout: <min-width> <layout> <max-width> <ie-fallback>;
218
+ // - You must supply either <min-width> or <layout>.
219
+ $media-layout: 12; // Use 12-col layout at matching min-width.
220
+ $media-layout: 30em; // At min 30em, use closest fitting layout.
221
+ $media-layout: 30em 12; // At min 30em, use 12-col layout.
222
+ $media-layout: 12 60em; // Use 12 cols up to max 60em.
223
+ $media-layout: 30em 60em; // Between min 30em & max 60em, use closest layout.
224
+ $media-layout: 30em 12 60em;// Use 12 cols between min 30em & max 60em.
225
+ $media-layout: 60em 12 30em;// Same. Larger length will always be max-width.
226
+ $media-layout : 12 lt-ie9; // Output is included under `.lt-ie9` class,
227
+ // for use with IE conditional comments
228
+ // on the <html> tag.
229
+
230
+ - `<$min/max-width>`: Any length with units, used to set media breakpoints.
231
+ - `<$layout>`: Any (unitless) number of columns to use for the grid
232
+ at a given breakpoint.
233
+ - `<$ie-fallback>`: Any string to use as a fallback class
234
+ when mediaqueries are not available.
235
+ Do not include a leading "`.`" class-signifier,
236
+ simply the class name ("`lt-ie9`", not "`.lt-ie9`").
237
+ This can be anything you want:
238
+ "`no-mediaqueries`", "`ie8`", "`popcorn`", etc.
239
+
240
+ ### <a href="#ref-responsive-mixins" id="ref-responsive-mixins">Responsive Mixins</a>
241
+
242
+ #### <a href="#ref-at-breakpoint" id="ref-at-breakpoint">At-Breakpoint</a>
243
+ At a given min- or max-width Breakpoint, use a given Layout.
244
+
245
+ :::scss
246
+ // at-breakpoint(<$media-layout> [, <$font-size>]) { <@content> }
247
+ @include at-breakpoint(30em 12) {
248
+ .page { @include container; }
249
+ }
250
+
251
+ - `<$media-layout>`: The _Breakpoint/Layout_ combo to use (see above).
252
+ - `<$font-size>`: Browsers interpret em-based media-queries
253
+ using the browser default font size (`16px` in most cases).
254
+ If you have a different base font size for your site,
255
+ we have to adjust for the difference.
256
+ Tell us your base font size, and we'll do the conversion.
257
+ Default: `$base-font-size`.
258
+ - `<@content>`: Nested `@content` block will use the given _Layout_.
259
+
260
+ #### <a href="#ref-layout" id="ref-layout">Layout</a>
261
+ Set an arbitrary Layout to use with any block of content.
262
+
263
+ :::scss
264
+ // layout(<$layout-cols>) { <@content> }
265
+ @include layout(6) {
266
+ .narrow-page { @include container; }
267
+ }
268
+
269
+ - `<$layout-cols>`: The number of _Columns_ to use in the _Layout_.
270
+ - `<@content>`: Nested `@content` block will use the given _Layout_.
271
+
272
+ #### <a href="#ref-container-width" id="ref-container-width">Set Container Width</a>
273
+ Reset the width of a Container for a new Layout context.
274
+ Can be used when `container()` has already been applied to an element,
275
+ for DRYer output than simply using `container` again.
276
+
277
+ :::scss
278
+ // set-container-width([<$columns>])
279
+ @include container;
280
+ @include at-breakpoint(8) {
281
+ @include set-container-width;
282
+ }
283
+
284
+ - `<$columns>`: The number of _Columns_ to be contained.
285
+ Default: Current value of `$total-columns` depending on _Layout_.
286
+
287
+ #### <a href="#ref-with-settings" id="ref-with-settings">With Grid Settings</a>
288
+ Use different grid settings for a block of code -
289
+ whether the same grid at a different breakpoint,
290
+ or a different grid altogether.
291
+
292
+ :::scss
293
+ // with-grid-settings([<columns>, <width>, <gutter>, <padding>]) { <@content> }
294
+ @include with-grid-settings(12,4em,1.5em,1em) {
295
+ .new-grid { @include container; }
296
+ };
297
+
298
+ - `<$columns>`: Overrides the `$total-columns` setting for all contained elements.
299
+ - `<$width>`: Overrides the `$column-width` setting for all contained elements.
300
+ - `<$gutter>`: Overrides the `$gutter-width` setting for all contained elements.
301
+ - `<$padding>`: Overrides the `$grid-padding` setting for all contained elements.
302
+ - `<@content>`: Nested `@content` block will use the given grid settings.
303
+
304
+ ## <a href="#ref-helper" id="ref-helper">Grid Helpers</a>
305
+
306
+ ### <a href="#ref-helper-sizing" id="ref-helper-sizing">Box Sizing</a>
307
+
308
+ #### <a href="#ref-border-box-mixin" id="ref-border-box-mixin">Border-Box Sizing</a>
309
+ Set the default box-model to `border-box`,
310
+ and adjust the grid math accordingly.
311
+
312
+ :::scss
313
+ // border-box-sizing()
314
+ @include border-box-sizing;
315
+
316
+ This will apply border-box model to all elements
317
+ (using the star selector)
318
+ and set `$border-box-sizing` to `true`.
319
+ You can use the variable on it's own to adjust the grid math,
320
+ in cases where you want to apply the box-model separately.
321
+
322
+ ### <a href="#ref-helper-padding" id="ref-helper-padding">Padding Mixins</a>
323
+
324
+ #### <a href="#ref-prefix" id="ref-prefix">Prefix</a>
325
+ Add Columns of empty space as `padding` before an element.
326
+
327
+ :::scss
328
+ // prefix(<$columns> [, <$context>, <$from>])
329
+ .box { @include prefix(3); }
330
+
331
+ - `<$columns>`: The number of _Columns_ to be added as `padding` before.
332
+ - `<$context>`: The _Context_.
333
+ Default: `$total-columns`.
334
+ - `<$from>`: The origin direction of your document flow.
335
+ Default: `$from-direction`.
336
+
337
+ #### <a href="#ref-suffix" id="ref-suffix">Suffix</a>
338
+ Add columns of empty space as padding after an element.
339
+
340
+ :::scss
341
+ // suffix(<$columns> [, <$context>, <$from>])
342
+ .box { @include suffix(2); }
343
+
344
+ - `<$columns>`: The number of _Columns_ to be added as `padding` after.
345
+ - `<$context>`: The _Context_.
346
+ Default: `$total-columns`.
347
+ - `<$from>`: The origin direction of your document flow.
348
+ Default: `$from-direction`.
349
+
350
+ #### <a href="#ref-pad" id="ref-pad">Pad</a>
351
+ Shortcut for adding both Prefix and Suffix `padding`.
352
+
353
+ :::scss
354
+ // pad([<$prefix>, <$suffix>, <$context>, <$from>])
355
+ .box { @include pad(3,2); }
356
+
357
+ - `<$prefix>`: The number of _Columns_ to be added as `padding` before.
358
+ - `<$suffix>`: The number of _Columns_ to be added as `padding` after.
359
+ - `<$context>`: The _Context_.
360
+ Default: `$total-columns`.
361
+ - `<$from>`: The origin direction of your document flow.
362
+ Default: `$from-direction`.
363
+
364
+ ### <a href="#ref-helper-margin" id="ref-helper-margin">Margin Mixins</a>
365
+
366
+ #### <a href="#ref-pre" id="ref-pre">Pre</a>
367
+ Add columns of empty space as margin before an element.
368
+
369
+ :::scss
370
+ // pre(<$columns> [, <$context>, <$from>])
371
+ .box { @include pre(2); }
372
+
373
+ - `<$columns>`: The number of _Columns_ to be added as `margin` before.
374
+ - `<$context>`: The _Context_.
375
+ Default: `$total-columns`.
376
+ - `<$from>`: The origin direction of your document flow.
377
+ Default: `$from-direction`.
378
+
379
+ #### <a href="#ref-post" id="ref-post">Post</a>
380
+ Add columns of empty space as margin after an element.
381
+
382
+ :::scss
383
+ // post(<$columns> [, <$context>, <$from>])
384
+ .box { @include post(3); }
385
+
386
+ - `<$columns>`: The number of _Columns_ to be added as `margin` after.
387
+ - `<$context>`: The _Context_.
388
+ Default: `$total-columns`.
389
+ - `<$from>`: The origin direction of your document flow.
390
+ Default: `$from-direction`.
391
+
392
+ #### <a href="#ref-squish" id="ref-squish">Squish</a>
393
+ Shortcut to add empty space as margin before and after an element.
394
+
395
+ :::scss
396
+ // squish([<$pre>, <$post>, <$context>, <$from>])
397
+ .box { @include squish(2,3); }
398
+
399
+ - `<$pre>`: The number of _Columns_ to be added as `margin` before.
400
+ - `<$post>`: The number of _Columns_ to be added as `margin` after.
401
+ - `<$context>`: The _Context_.
402
+ Default: `$total-columns`.
403
+ - `<$from>`: The origin direction of your document flow.
404
+ Default: `$from-direction`.
405
+
406
+ #### <a href="#ref-push" id="ref-push">Push</a>
407
+ Identical to [pre](#ref-pre).
408
+
409
+ :::scss
410
+ // push(<$columns> [, <$context>, <$from>])
411
+ .box { @include push(3); }
412
+
413
+ #### <a href="#ref-pull" id="ref-pull">Pull</a>
414
+ Add negative margins before an element, to pull it against the flow.
415
+
416
+ :::scss
417
+ // pull(<$columns> [, <$context>, <$from>])
418
+ .box { @include pull(2); }
419
+
420
+ - `<$columns>`: The number of _Columns_ to be subtracted as `margin` before.
421
+ - `<$context>`: The _Context_.
422
+ Default: `$total-columns`.
423
+ - `<$from>`: The origin direction of your document flow.
424
+ Default: `$from-direction`.
425
+
426
+ ### <a href="#ref-helper-reset" id="ref-helper-reset">Reset Mixins</a>
427
+
428
+ #### <a href="#ref-reset-columns" id="ref-reset-columns">Reset Columns</a>
429
+ Resets an element to default block behaviour.
430
+
431
+ :::scss
432
+ // reset-columns([<$from>])
433
+ article { @include span-columns(6); } // articles are 6 cols wide
434
+ #news article { @include reset-columns; } // but news span the full width
435
+ // of their container
436
+
437
+ - `<$from>`: The origin direction of your document flow.
438
+ Default: `$from-direction`.
439
+
440
+
441
+ #### <a href="#ref-remove-omega" id="ref-remove-omega">Remove-Omega</a>
442
+ Apply to any previously-omega element
443
+ to reset it's float direction and margins
444
+ to match non-omega grid elements.
445
+ Note that unlike omega,
446
+ this requires a context when nested.
447
+
448
+ :::scss
449
+ // remove-omega([<$context>, <$from>])
450
+ .gallery-image {
451
+ &:nth-child(3n) { @include remove-omega; } // 3rd images no longer complete rows.
452
+ }
453
+
454
+ - `<$context>`: Current nesting _Context_.
455
+ Default: `$total-columns`.
456
+ - `<$from>`: The origin direction of your document flow.
457
+ Default: `$from-direction`.
458
+
459
+ #### <a href="#ref-remove-nth-omega" id="ref-remove-nth-omega">Remove Nth-Omega</a>
460
+ Apply to any previously nth-omega element
461
+ to reset it's float direction and margins
462
+ to match non-omega grid elements.
463
+ Note that unlike omega,
464
+ this requires a context when nested.
465
+
466
+ :::scss
467
+ // remove-nth-omega([<$n>, <$selector>, <$context>, <$from>])
468
+ .gallery-image {
469
+ @include remove-nth-omega(3n); // same as remove-omega example above.
470
+ }
471
+
472
+ - `<$n>`: The keyword or equation to select: `[first | only | last | <equation>]`.
473
+ An equation could be e.g. `3` or `3n` or `'3n+1'`.
474
+ Note that quotes are needed to keep a complex equation from being simplified by Compass.
475
+ Default: `last`.
476
+ - `<$selector>`: The type of element, and direction to count from:
477
+ `[child | last-child | of-type | last-of-type ]`.
478
+ Default: `child`.
479
+ - `<$context>`: Current nesting _Context_.
480
+ Default: `$total-columns`.
481
+ - `<$from>`: The origin direction of your document flow.
482
+ Default: `$from-direction`.
483
+
484
+ ### <a href="#ref-helper-other" id="ref-helper-other">Other Mixins</a>
485
+
486
+ #### <a href="#ref-grid-background" id="ref-grid-background">Susy Grid Background</a>
487
+ Show the Susy Grid as a background-image on any container.
488
+
489
+ :::scss
490
+ // susy-grid-background();
491
+ .page { @include susy-grid-background; }
492
+
493
+ - If you are using the `<body>` element as your _Container_,
494
+ you need to apply a background to the `<html>` element
495
+ in order for this grid-background to size properly.
496
+ - Some browsers have trouble with sub-pixel rounding on background images.
497
+ Use this for checking general spacing, not pixel-exact alignment.
498
+ Susy columns tend to be more accurate than gradient grid-backgrounds.
499
+
500
+ ### <a href="#ref-helper-functions" id="ref-helper-functions">Functions</a>
501
+
502
+ Where a mixin returns property/value pairs, functions return simple values
503
+ that you can put where you want, and use for advanced math.
504
+
505
+ #### <a href="#ref-columns" id="ref-columns">Columns</a>
506
+ Similar to [span-columns](#ref-span-columns) mixin,
507
+ but returns the math-ready `%` multiplier.
508
+
509
+ :::scss
510
+ // columns(<$columns> [, <$context>])
511
+ .item { width: columns(3,6); }
512
+
513
+ - `<$columns>`: The number of _Columns_ to span,
514
+ - `<$context>`: The _Context_.
515
+ Default: `$total-columns`.
516
+
517
+ #### <a href="#ref-gutter" id="ref-gutter">Gutter</a>
518
+ The `%` width of one gutter in any given context.
519
+
520
+ :::scss
521
+ // gutter([<$context>])
522
+ .item { margin-right: gutter(6) + columns(3,6); }
523
+
524
+ - `<$context>`: The _Context_.
525
+ Default: `$total-columns`.
526
+
527
+ #### <a href="#ref-space" id="ref-space">Space</a>
528
+ Total `%` space taken by Columns, including internal AND external gutters.
529
+
530
+ :::scss
531
+ // space(<$columns> [, <$context>])
532
+ .item { margin-right: space(3,6); }
533
+
534
+ - `<$columns>`: The number of _Columns_ to span,
535
+ - `<$context>`: The _Context_.
536
+ Default: `$total-columns`.
537
+
538
+ ### <a href="#ref-container-override" id="ref-container-override">Container Override Settings</a>
539
+
540
+ #### <a href="#ref-container-width" id="ref-container-width">Container Width</a>
541
+ Override the total width of your grid with an arbitrary length.
542
+
543
+ :::scss
544
+ // $container-width: <length> | <boolean>;
545
+ $container-width: false;
546
+
547
+ - `<length>`: Length in em, px, %, etc.
548
+ - `<boolean>`: True or false.
549
+
550
+ #### <a href="#ref-container-style" id="ref-container-style">Container Style</a>
551
+ Override the type of shell containing your grid.
552
+
553
+ :::scss
554
+ // $container-style: <style>;
555
+ $container-style: magic;
556
+
557
+ - `<style>`: `magic` | `static` | `fluid`.
558
+ - `magic`: Susy's magic grid has a set width,
559
+ but becomes fluid rather than overflowing the viewport at small sizes.
560
+ - `static`: Susy's static grid will retain the width defined in your settings
561
+ at all times.
562
+ - `fluid`: Susy's fluid grid will always be based on the viewport width.
563
+ The percentage will be determined by your grid settings,
564
+ or by `$container-width`, if either is set using `%` units.
565
+ Otherwise it will default to `auto` (100%).
566
+
567
+ ### <a href="#ref-direction-override" id="ref-direction-override">Direction Override Settings</a>
568
+
569
+ #### <a href="#ref-from-direction" id="ref-from-direction">From Direction</a>
570
+ The side of the Susy Grid from which the flow starts.
571
+ For ltr documents, this is the left.
572
+
573
+ :::scss
574
+ // $from-direction: <direction>;
575
+ $from-direction: left;
576
+
577
+ - `<direction>`: `left` | `right`
578
+
579
+ #### <a href="#ref-omega-float" id="ref-omega-float">Omega Float</a>
580
+ The direction that Omega elements should be floated.
581
+
582
+ :::scss
583
+ // $omega-float: <direction>;
584
+ $omega-float: opposite-position($from-direction);
585
+
586
+ - `<direction>`: `left` | `right`
587
+
588
+ ### <a href="#ref-compass-options" id="ref-compass-options">Compass Options</a>
589
+
590
+ #### <a href="#ref-base-font-size" id="ref-base-font-size">Base Font Size</a>
591
+ From the [Compass Vertical Rhythm][rhythm] module,
592
+ Susy uses your base font size to help manage
593
+ em-based media-queries.
594
+
595
+ :::scss
596
+ // $base-font-size: <px-size>;
597
+ $base-font-size: 16px;
598
+
599
+ - `<px-size>`: Any length in `px`.
600
+ This will not actually effect your font size
601
+ unless you use other Vertical Rhythm tools,
602
+ we just need to know.
603
+ See [Compass Docs][base-font-size] for further usage details.
604
+
605
+ [rhythm]: http://compass-style.org/reference/compass/typography/vertical_rhythm/
606
+ [base-font-size]: http://compass-style.org/reference/compass/typography/vertical_rhythm/#const-base-font-size
607
+
608
+ #### <a href="#ref-browser-support" id="ref-browser-support">Browser Support</a>
609
+ Susy recognizes all the [Compass Browser Support][support] variables,
610
+ although only IE6 and IE7 have special cases attached to them currently.
611
+
612
+ :::scss
613
+ // $legacy-support-for-ie : <boolean>;
614
+ // $legacy-support-for-ie6 : <boolean>;
615
+ // $legacy-support-for-ie7 : <boolean>;
616
+ $legacy-support-for-ie : true;
617
+ $legacy-support-for-ie6 : $legacy-support-for-ie;
618
+ $legacy-support-for-ie7 : $legacy-support-for-ie;
619
+
620
+ - `<boolean>`: `true` | `false`
621
+
622
+ [support]: http://compass-style.org/reference/compass/support/
623
+
624
+ ### <a href="#ref-compass-options" id="ref-compass-options">Breakpoint Output</a>
625
+ If you are compiling seperate files for IE-fallbacks,
626
+ it can be useful to output only the modern code in one file
627
+ and only the fallbacks in another file.
628
+ You can make `at-breakpoint` do exactly that
629
+ by using the following settings.
630
+
631
+ #### <a href="#ref-media-output" id="ref-media-output">$breakpoint-media-output</a>
632
+ Turn off media-query output for IE-only stylesheets.
633
+
634
+ :::scss
635
+ // $breakpoint-media-output: <boolean>;
636
+ $breakpoint-media-output: true;
637
+
638
+ - `<boolean>`: `true` | `false`
639
+
640
+ #### <a href="#ref-ie-output" id="ref-ie-output">$breakpoint-ie-output</a>
641
+ Turn off media-query fallback output for non-IE stylesheets.
642
+
643
+ :::scss
644
+ // $breakpoint-ie-output: <boolean>;
645
+ $breakpoint-ie-output: true;
646
+
647
+ - `<boolean>`: `true` | `false`
648
+
649
+ #### <a href="#ref-raw-output" id="ref-raw-output">$breakpoint-raw-output</a>
650
+ Pass through raw output
651
+ without media-queries or fallback classes
652
+ for IE-only stylesheets.
653
+
654
+ :::scss
655
+ // $breakpoint-raw-output: <boolean>;
656
+ $breakpoint-raw-output: false;
657
+
658
+ - `<boolean>`: `true` | `false`