compass-recipes 0.3.0.alpha.1 → 0.3.0.alpha.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. data/README.md +39 -26
  2. data/VERSION +1 -1
  3. data/lib/compass-recipes/sass_extensions.rb +1 -1
  4. data/stylesheets/_recipes.scss +6 -3
  5. data/stylesheets/recipes/_color.scss +17 -21
  6. data/stylesheets/recipes/_effect.scss +9 -6
  7. data/stylesheets/recipes/_font.scss +16 -7
  8. data/stylesheets/recipes/_google-webfont.scss +4 -0
  9. data/stylesheets/recipes/_icon-font.scss +56 -74
  10. data/stylesheets/recipes/_icons.scss +6 -0
  11. data/stylesheets/recipes/_media-queries.scss +8 -14
  12. data/stylesheets/recipes/_shape.scss +9 -8
  13. data/stylesheets/recipes/_shared.scss +4 -5
  14. data/stylesheets/recipes/background/_blueprint-grid.scss +8 -8
  15. data/stylesheets/recipes/background/_carbon-fiber.scss +8 -9
  16. data/stylesheets/recipes/background/_checkerboard.scss +9 -9
  17. data/stylesheets/recipes/background/_cicada.scss +8 -8
  18. data/stylesheets/recipes/background/_gradients.scss +28 -30
  19. data/stylesheets/recipes/background/_houndstooth.scss +8 -9
  20. data/stylesheets/recipes/background/_lined-paper.scss +8 -8
  21. data/stylesheets/recipes/background/_madras.scss +13 -13
  22. data/stylesheets/recipes/background/_noise.scss +23 -23
  23. data/stylesheets/recipes/background/_polka-dot.scss +8 -9
  24. data/stylesheets/recipes/background/_radial-overlay.scss +5 -5
  25. data/stylesheets/recipes/background/_rainbow.scss +4 -3
  26. data/stylesheets/recipes/background/_stripes.scss +14 -14
  27. data/stylesheets/recipes/background/_tablecloth.scss +8 -9
  28. data/stylesheets/recipes/background/_tartan.scss +13 -12
  29. data/stylesheets/recipes/base/_normalize.scss +475 -343
  30. data/stylesheets/recipes/color/_name.scss +2 -2
  31. data/stylesheets/recipes/effect/_bevel.scss +4 -0
  32. data/stylesheets/recipes/effect/_corner-folded.scss +11 -11
  33. data/stylesheets/recipes/effect/_corners-tucked.scss +7 -8
  34. data/stylesheets/recipes/effect/_cutout.scss +4 -0
  35. data/stylesheets/recipes/effect/_folded-corner.scss +10 -10
  36. data/stylesheets/recipes/effect/_glass.scss +20 -17
  37. data/stylesheets/recipes/effect/_ribbon.scss +12 -3
  38. data/stylesheets/recipes/effect/_scatter.scss +5 -6
  39. data/stylesheets/recipes/effect/_tape.scss +8 -9
  40. data/stylesheets/recipes/form/element/_inline.scss +8 -7
  41. data/stylesheets/recipes/helper/_gravatar.scss +3 -3
  42. data/stylesheets/recipes/layout/_flexible-box-model.scss +17 -18
  43. data/stylesheets/recipes/layout/_vertical-align.scss +24 -26
  44. data/stylesheets/recipes/shadow/_drop.scss +8 -8
  45. data/stylesheets/recipes/shadow/_top-edge.scss +13 -14
  46. data/stylesheets/recipes/shadow/drop/_curled-corners.scss +7 -6
  47. data/stylesheets/recipes/shadow/drop/_curved.scss +7 -6
  48. data/stylesheets/recipes/shadow/drop/_flying.scss +7 -6
  49. data/stylesheets/recipes/shadow/drop/_lifted-corners.scss +32 -14
  50. data/stylesheets/recipes/shadow/drop/_perspective.scss +7 -6
  51. data/stylesheets/recipes/shadow/drop/_raised.scss +7 -6
  52. data/stylesheets/recipes/shadow/drop/_transform-requirement.scss +9 -8
  53. data/stylesheets/recipes/shape/_ellipse.scss +6 -5
  54. data/stylesheets/recipes/shape/_polygon.scss +6 -5
  55. data/stylesheets/recipes/shape/_symbol.scss +6 -5
  56. data/stylesheets/recipes/shape/polygon/_hexagon.scss +6 -5
  57. data/stylesheets/recipes/shape/polygon/_octagon.scss +5 -5
  58. data/stylesheets/recipes/shape/polygon/_parallelogram.scss +5 -5
  59. data/stylesheets/recipes/shape/polygon/_pentagon.scss +6 -5
  60. data/stylesheets/recipes/shape/polygon/_rectangle.scss +6 -5
  61. data/stylesheets/recipes/shape/polygon/_rhombus.scss +6 -5
  62. data/stylesheets/recipes/shape/polygon/_square.scss +6 -5
  63. data/stylesheets/recipes/shape/polygon/_star.scss +6 -6
  64. data/stylesheets/recipes/shape/polygon/_trapezoid.scss +6 -5
  65. data/stylesheets/recipes/shape/polygon/_triangle.scss +6 -5
  66. data/stylesheets/recipes/shape/symbol/_diamond.scss +9 -8
  67. data/stylesheets/recipes/shape/symbol/_egg.scss +6 -5
  68. data/stylesheets/recipes/shape/symbol/_heart.scss +7 -6
  69. data/stylesheets/recipes/shape/symbol/_infinity.scss +7 -6
  70. data/stylesheets/recipes/shape/symbol/_pacman.scss +6 -5
  71. data/stylesheets/recipes/shape/symbol/_yin-yang.scss +7 -6
  72. data/stylesheets/recipes/shared/_clearfix.scss +9 -12
  73. data/stylesheets/recipes/shared/_pseudo-element.scss +9 -6
  74. data/stylesheets/recipes/ui/_convex.scss +8 -7
  75. data/stylesheets/recipes/ui/_glossy.scss +10 -10
  76. data/stylesheets/recipes/ui/_gradient.scss +8 -7
  77. data/stylesheets/recipes/ui/_keyboard.scss +11 -12
  78. data/stylesheets/recipes/ui/_overlay.scss +5 -7
  79. data/stylesheets/recipes/ui/_separator.scss +8 -8
  80. data/stylesheets/recipes/ui/helper/_arrow.scss +6 -0
  81. data/stylesheets/recipes/ui/loader/_pulse.scss +5 -5
  82. data/stylesheets/recipes/ui/menu/_dropdown.scss +5 -5
  83. metadata +12 -24
  84. data/lib/compass-recipes/sass_extensions/highres.rb +0 -31
  85. data/stylesheets/recipes/animation/_fade.scss +0 -29
  86. data/stylesheets/recipes/effect/_ribbon-tied.scss +0 -133
  87. data/stylesheets/recipes/shared/_user-select.scss +0 -6
  88. data/stylesheets/recipes/ui/_button.scss +0 -122
  89. data/stylesheets/recipes/ui/button/_state-selectors.scss +0 -40
  90. data/stylesheets/recipes/ui/button/style/_default.scss +0 -12
  91. data/stylesheets/recipes/ui/button/style/todo/_bonbon.scss +0 -489
  92. data/stylesheets/recipes/ui/button/style/todo/_bourbon.scss +0 -169
  93. data/stylesheets/recipes/ui/button/style/todo/_fancy.sass +0 -178
  94. data/stylesheets/recipes/ui/button/style/todo/_necolas-animated.scss +0 -81
  95. data/stylesheets/recipes/ui/button/style/todo/_ubuwaits.scss +0 -654
  96. data/stylesheets/recipes/ui/helper/_tag.scss +0 -14
@@ -1,15 +1,16 @@
1
- /**
2
- *
3
- * Before compass 0.11.5, you need to add
4
- * Compass::BrowserSupport.add_support("repeating-linear-gradient", "webkit", "moz", "o", "ms")
5
- * To your configuration (config.rb)
6
- * @see https://github.com/chriseppstein/compass/issues/401
7
- *
8
- * @link http://lea.verou.me/css3patterns/#tartan
9
- *
10
- * @author Marta Armada http://swwweet.com/ for the original pattern
11
- * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx for the sass mixin
12
- */
1
+ ////
2
+ // Background tartan
3
+ //
4
+ // Before compass 0.11.5, you need to add
5
+ // Compass::BrowserSupport.add_support("repeating-linear-gradient", "webkit", "moz", "o", "ms")
6
+ // To your configuration (config.rb)
7
+ // @see https://github.com/chriseppstein/compass/issues/401
8
+ //
9
+ // @link http://lea.verou.me/css3patterns/#tartan
10
+ //
11
+ // @author Marta Armada http://swwweet.com/ for the original pattern
12
+ // @author Maxime Thirouin m@moox.fr @MoOx
13
+ ///
13
14
 
14
15
  @import "compass/css3/images";
15
16
 
@@ -1,444 +1,576 @@
1
- /**
2
- * Normalize.css
3
- * Opposite approche from CSS reset
4
- *
5
- * Based on normalize.css commit 9576d48fc234c5224b1fc4dccba2f5965243843d
6
- *
7
- * @link http://github.com/necolas/normalize.css
8
- */
9
-
10
- /*! normalize.css 2011-07-12T10:51 UTC · http://github.com/necolas/normalize.css */
11
-
12
- /* =============================================================================
13
- HTML5 element display
14
- ========================================================================== */
1
+ ////
2
+ // _Normalize.scss
3
+ // Opposite approche from CSS reset
4
+ //
5
+ // Based on normalize.scss commit c1c17352526ef2344a68451f40c8eec7a21ef8da
6
+ //
7
+ // @link https://github.com/necolas/normalize.css
8
+ // @link https://github.com/JohnAlbin/normalize.css-with-sass-or-compass/blob/normalize-with-compass/normalize.scss
9
+ ///
10
+
11
+ // normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css
12
+
13
+ // =============================================================================
14
+ // Variables and Imports
15
+ //
16
+ // If you have a base partial (and you should), you should probably move these
17
+ // lines to your base partial.
18
+ // =============================================================================
19
+
20
+ // The base font size.
21
+ // $base-font-size: 16px; // Overrides default set in Vertical Rhythm partial.
22
+
23
+ // The base line height determines the basic unit of vertical rhythm.
24
+ // $base-line-height: 24px; // Overrides default set in Vertical Rhythm partial.
25
+
26
+ // Setting this to false will result in smaller output, but no support for ie6 hacks.
27
+ // $legacy-support-for-ie6: true; // Overrides default set in Support partial.
28
+
29
+ // Setting this to false will result in smaller output, but no support for ie7 hacks.
30
+ // $legacy-support-for-ie7: true; // Overrides default set in Support partial.
31
+
32
+ // The default font family. You should set $base-font-family in your _base partial.
33
+ $base-font-family: sans-serif !default;
34
+
35
+ // After the default variables are set, import the required Compass partials.
36
+ @import "compass/support";
37
+ @import "compass/css3/box-sizing";
38
+ @import "compass/typography/vertical_rhythm";
39
+
40
+
41
+ // =============================================================================
42
+ // HTML5 display definitions
43
+ // =============================================================================
15
44
  @mixin base-normalize-html5
16
45
  {
17
- /*
18
- * Corrects block display not defined in IE6/7/8/9 & FF3
19
- */
20
-
21
- article,
22
- aside,
23
- details,
24
- figcaption,
25
- figure,
26
- footer,
27
- header,
28
- hgroup,
29
- nav,
30
- section {
31
- display: block;
32
- }
46
+ //
47
+ // Corrects block display not defined in IE6/7/8/9 & FF3
48
+ //
49
+
50
+ article,
51
+ aside,
52
+ details,
53
+ figcaption,
54
+ figure,
55
+ footer,
56
+ header,
57
+ hgroup,
58
+ nav,
59
+ section,
60
+ summary {
61
+ display: block;
62
+ }
33
63
 
34
- /*
35
- * Corrects inline-block display not defined in IE6/7/8/9 & FF3
36
- * Known limitation: IE6 will not apply style for 'audio[controls]'
37
- */
64
+ //
65
+ // Corrects inline-block display not defined in IE6/7/8/9 & FF3
66
+ //
38
67
 
39
- audio[controls],
40
- canvas,
41
- video {
42
- display: inline-block;
68
+ audio,
69
+ canvas,
70
+ video {
71
+ display: inline-block;
72
+ @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
43
73
  *display: inline;
44
74
  *zoom: 1;
45
75
  }
46
76
  }
47
77
 
48
- /* =============================================================================
49
- Base
50
- ========================================================================== */
78
+ //
79
+ // Prevents modern browsers from displaying 'audio' without controls
80
+ // Remove excess height in iOS5 devices
81
+ //
82
+
83
+ audio:not([controls]) {
84
+ display: none;
85
+ height: 0;
86
+ }
87
+
88
+ //
89
+ // Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
90
+ // Known issue: no IE6 support
91
+ //
92
+
93
+ [hidden] {
94
+ display: none;
95
+ }
96
+ }
97
+
98
+ // =============================================================================
99
+ // Base
100
+ // =============================================================================
51
101
  @mixin base-normalize-page
52
102
  {
53
- /*
54
- * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
55
- * http://clagnut.com/blog/348/#c790
56
- * 2. Keeps page centred in all browsers regardless of content height
57
- * 3. Removes Android and iOS tap highlight color to prevent entire container being highlighted
58
- * www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/
59
- * 4. Prevents iOS text size adjust after orientation change, without disabling user zoom
60
- * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
61
- */
62
-
63
- html {
64
- font-size: 100%; /* 1 */
65
- overflow-y: scroll; /* 2 */
66
- -webkit-tap-highlight-color: rgba(0,0,0,0); /* 3 */
67
- -webkit-text-size-adjust: 100%; /* 4 */
68
- -ms-text-size-adjust: 100%; /* 4 */
69
- }
103
+ //
104
+ // 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
105
+ // http://clagnut.com/blog/348/#c790
106
+ // 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
107
+ // www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
108
+ //
109
+
110
+ html {
111
+ font-size: 100% * ($base-font-size / 16px); // 1
112
+ -webkit-text-size-adjust: 100%; // 2
113
+ -ms-text-size-adjust: 100%; // 2
114
+ // Establishes a vertical rhythm unit using $base-line-height.
115
+ @include adjust-leading-to(1);
116
+ }
70
117
 
71
- /*
72
- * Addresses margins handled incorrectly in IE6/7
73
- */
118
+ //
119
+ // Addresses font-family inconsistency between 'textarea' and other form elements.
120
+ //
74
121
 
75
- body {
76
- margin: 0;
77
- }
122
+ html,
123
+ button,
124
+ input,
125
+ select,
126
+ textarea {
127
+ font-family: $base-font-family;
128
+ }
78
129
 
79
- /*
80
- * Addresses font-family inconsistency between 'textarea' and other form elements.
81
- */
130
+ //
131
+ // Addresses margins handled incorrectly in IE6/7
132
+ //
82
133
 
83
- body,
84
- button,
85
- input,
86
- select,
87
- textarea {
88
- font-family: sans-serif;
89
- }
134
+ body {
135
+ margin: 0;
136
+ }
90
137
  }
91
138
 
92
- /* =============================================================================
93
- Links
94
- ========================================================================== */
139
+ // =============================================================================
140
+ // Links
141
+ // =============================================================================
95
142
  @mixin base-normalize-links
96
143
  {
97
- a {
98
- color: #00e;
99
- }
100
-
101
- a:visited {
102
- color: #551a8b;
103
- }
104
-
105
- /*
106
- * Addresses outline displayed oddly in Chrome
107
- */
144
+ //
145
+ // Addresses outline displayed oddly in Chrome
146
+ //
108
147
 
109
- a:focus {
110
- outline: thin dotted;
111
- }
148
+ a:focus {
149
+ outline: thin dotted;
150
+ }
112
151
 
113
- /*
114
- * Improves readability when focused and also mouse hovered in all browsers
115
- * people.opera.com/patrickl/experiments/keyboard/test
116
- */
152
+ //
153
+ // Improves readability when focused and also mouse hovered in all browsers
154
+ // people.opera.com/patrickl/experiments/keyboard/test
155
+ //
117
156
 
118
- a:hover,
119
- a:active {
120
- outline: 0;
121
- }
157
+ a:hover,
158
+ a:active {
159
+ outline: 0;
160
+ }
122
161
  }
123
162
 
124
- /* =============================================================================
125
- Typography
126
- ========================================================================== */
163
+ // =============================================================================
164
+ // Typography
165
+ // =============================================================================
127
166
  @mixin base-normalize-typography
128
167
  {
129
- /*
130
- * Addresses styling not present in IE7/8/9, S5, Chrome
131
- */
168
+ //
169
+ // Addresses font sizes and margins set differently in IE6/7
170
+ // Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5
171
+ //
172
+
173
+ h1, h2, h3, h4, h5, h6 {
174
+ // Sets 1 unit of vertical rhythm on the top margin.
175
+ @include leader(1);
176
+ // Sets 1 unit of vertical rhythm on the bottom margin.
177
+ @include trailer(1);
178
+ }
132
179
 
133
- abbr[title] {
134
- border-bottom: 1px dotted;
135
- }
180
+ h1 {
181
+ // Sets the font-size and line-height while keeping a proper vertical rhythm.
182
+ @include adjust-font-size-to( 2 * $base-font-size );
183
+ }
136
184
 
137
- /*
138
- * Addresses style set to 'bolder' in FF3/4, S4/5, Chrome
139
- */
185
+ h2 {
186
+ @include adjust-font-size-to( 1.5 * $base-font-size );
187
+ }
140
188
 
141
- b,
142
- strong {
143
- font-weight: bold;
144
- }
189
+ h3 {
190
+ @include adjust-font-size-to( 1.17 * $base-font-size );
191
+ }
145
192
 
146
- blockquote {
147
- margin: 1em 40px;
148
- }
193
+ h4 {
194
+ @include adjust-font-size-to( 1 * $base-font-size );
195
+ }
149
196
 
150
- /*
151
- * Addresses styling not present in S5, Chrome
152
- */
197
+ h5 {
198
+ @include adjust-font-size-to( 0.83 * $base-font-size );
199
+ }
153
200
 
154
- dfn {
155
- font-style: italic;
156
- }
201
+ h6 {
202
+ @include adjust-font-size-to( 0.75 * $base-font-size );
203
+ }
157
204
 
158
- /*
159
- * Addresses styling not present in IE6/7/8/9
160
- */
161
205
 
162
- mark {
163
- background: #ff0;
164
- color: #000;
165
- }
206
+ //
207
+ // Addresses styling not present in IE7/8/9, S5, Chrome
208
+ //
209
+
210
+ abbr[title] {
211
+ border-bottom: 1px dotted;
212
+ }
213
+
214
+ //
215
+ // Addresses style set to 'bolder' in FF3+, S4/5, Chrome
216
+ //
217
+
218
+ b,
219
+ strong {
220
+ font-weight: bold;
221
+ }
222
+
223
+ blockquote {
224
+ // Sets 1 unit of vertical rhythm on the top and bottom margin.
225
+ margin: rhythm(1) 40px;
226
+ }
227
+
228
+ //
229
+ // Addresses styling not present in S5, Chrome
230
+ //
231
+
232
+ dfn {
233
+ font-style: italic;
234
+ }
235
+
236
+ //
237
+ // Addresses styling not present in IE6/7/8/9
238
+ //
239
+
240
+ mark {
241
+ background: #ff0;
242
+ color: #000;
243
+ }
166
244
 
167
- /*
168
- * Corrects font family set oddly in IE6, S5, Chrome
169
- * en.wikipedia.org/wiki/User:Davidgothberg/Test59
170
- */
245
+ //
246
+ // Addresses margins set differently in IE6/7
247
+ //
171
248
 
172
- pre,
173
- code,
174
- kbd,
175
- samp {
176
- font-family: monospace, monospace;
249
+ p,
250
+ pre {
251
+ // Sets 1 unit of vertical rhythm on the top and bottom margin.
252
+ margin: rhythm(1) 0;
253
+ }
254
+
255
+ //
256
+ // Corrects font family set oddly in IE6, S4/5, Chrome
257
+ // en.wikipedia.org/wiki/User:Davidgothberg/Test59
258
+ //
259
+
260
+ pre,
261
+ code,
262
+ kbd,
263
+ samp {
264
+ font-family: monospace, serif;
265
+ @if $legacy-support-for-ie6 {
177
266
  _font-family: 'courier new', monospace;
178
- font-size: 1em;
179
267
  }
268
+ @include adjust-font-size-to( 1 * $base-font-size );
269
+ }
180
270
 
181
- /*
182
- * Improves readability of pre-formatted text in all browsers
183
- */
271
+ //
272
+ // Improves readability of pre-formatted text in all browsers
273
+ //
184
274
 
185
- pre {
186
- white-space: pre;
187
- white-space: pre-wrap;
188
- word-wrap: break-word;
189
- }
275
+ pre {
276
+ white-space: pre;
277
+ white-space: pre-wrap;
278
+ word-wrap: break-word;
279
+ }
190
280
 
191
- /*
192
- * 1. Addresses CSS quotes not supported in IE6/7
193
- * 2. Addresses quote property not supported in S4
194
- */
281
+ //
282
+ // 1. Addresses CSS quotes not supported in IE6/7
283
+ // 2. Addresses quote property not supported in S4
284
+ //
195
285
 
196
- /* 1 */
286
+ // 1
197
287
 
198
- q {
199
- quotes: none;
200
- }
288
+ q {
289
+ quotes: none;
290
+ }
201
291
 
202
- /* 2 */
292
+ // 2
203
293
 
204
- q:before,
205
- q:after {
206
- content: '';
207
- content: none;
208
- }
294
+ q:before,
295
+ q:after {
296
+ content: '';
297
+ content: none;
298
+ }
209
299
 
210
- small {
211
- font-size: 75%;
212
- }
300
+ small {
301
+ font-size: 75%;
302
+ }
213
303
 
214
- /*
215
- * Prevents sub and sup affecting line-height in all browsers
216
- * gist.github.com/413930
217
- */
218
-
219
- sub,
220
- sup {
221
- font-size: 75%;
222
- line-height: 0;
223
- position: relative;
224
- vertical-align: baseline;
225
- }
304
+ //
305
+ // Prevents sub and sup affecting line-height in all browsers
306
+ // gist.github.com/413930
307
+ //
308
+
309
+ sub,
310
+ sup {
311
+ font-size: 75%;
312
+ line-height: 0;
313
+ position: relative;
314
+ vertical-align: baseline;
315
+ }
226
316
 
227
- sup {
228
- top: -0.5em;
229
- }
317
+ sup {
318
+ top: -0.5em;
319
+ }
230
320
 
231
- sub {
232
- bottom: -0.25em;
233
- }
321
+ sub {
322
+ bottom: -0.25em;
323
+ }
234
324
  }
235
325
 
236
- /* =============================================================================
237
- Lists
238
- ========================================================================== */
326
+ // =============================================================================
327
+ // Lists
328
+ // =============================================================================
239
329
  @mixin base-normalize-lists
240
330
  {
241
- ul,
242
- ol {
243
- margin: 1em 0;
244
- padding: 0 0 0 40px;
245
- }
331
+ //
332
+ // Addresses margins set differently in IE6/7
333
+ //
334
+
335
+ dl,
336
+ menu,
337
+ ol,
338
+ ul {
339
+ // Sets 1 unit of vertical rhythm on the top and bottom margin.
340
+ margin: rhythm(1) 0;
341
+ }
246
342
 
247
- dd {
248
- margin: 0 0 0 40px;
249
- }
343
+ dd {
344
+ margin: 0 0 0 40px;
345
+ }
250
346
 
251
- nav ul,
252
- nav ol {
253
- list-style: none;
254
- }
347
+ //
348
+ // Addresses paddings set differently in IE6/7
349
+ //
350
+
351
+ menu,
352
+ ol,
353
+ ul {
354
+ padding: 0 0 0 40px;
255
355
  }
256
356
 
257
- /* =============================================================================
258
- Embedded content
259
- ========================================================================== */
357
+ //
358
+ // Corrects list images handled incorrectly in IE7
359
+ //
360
+
361
+ nav ul,
362
+ nav ol {
363
+ list-style: none;
364
+ list-style-image: none;
365
+ }
366
+ }
367
+
368
+ // =============================================================================
369
+ // Embedded content
370
+ // =============================================================================
260
371
  @mixin base-normalize-embed
261
372
  {
262
- /*
263
- * 1. Removes border when inside 'a' element in IE6/7/8/9
264
- * 2. Improves image quality when scaled in IE7
265
- * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
266
- */
267
-
268
- img {
269
- border: 0; /* 1 */
270
- -ms-interpolation-mode: bicubic; /* 2 */
271
- }
373
+ //
374
+ // 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
375
+ // 2. Improves image quality when scaled in IE7
376
+ // code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
377
+ //
378
+
379
+ img {
380
+ border: 0; // 1
381
+ -ms-interpolation-mode: bicubic; // 2
382
+ }
272
383
 
273
- /*
274
- * Corrects overflow displayed oddly in IE9
275
- */
384
+ //
385
+ // Corrects overflow displayed oddly in IE9
386
+ //
276
387
 
277
- svg:not(:root) {
278
- overflow: hidden;
279
- }
388
+ svg:not(:root) {
389
+ overflow: hidden;
390
+ }
280
391
  }
281
392
 
282
- /* =============================================================================
283
- Figures
284
- ========================================================================== */
393
+ // =============================================================================
394
+ // Figures
395
+ // =============================================================================
285
396
  @mixin base-normalize-figures
286
397
  {
287
- /*
288
- * Addresses margin not present in IE6/7/8/9, S5, O11
289
- */
398
+ //
399
+ // Addresses margin not present in IE6/7/8/9, S5, O11
400
+ //
290
401
 
291
- figure {
292
- margin: 0;
293
- }
402
+ figure {
403
+ margin: 0;
404
+ }
294
405
  }
295
406
 
296
- /* =============================================================================
297
- Forms
298
- ========================================================================== */
407
+ // =============================================================================
408
+ // Forms
409
+ // =============================================================================
299
410
  @mixin base-normalize-forms
300
411
  {
301
- /*
302
- * Corrects margin displayed oddly in IE6/7
303
- */
412
+ //
413
+ // Corrects margin displayed oddly in IE6/7
414
+ //
304
415
 
305
- form {
306
- margin: 0;
307
- }
308
-
309
- /*
310
- * Define consistent margin and padding
311
- */
416
+ form {
417
+ margin: 0;
418
+ }
312
419
 
313
- fieldset {
314
- margin: 0 2px;
315
- padding: 0.35em 0.625em 0.75em;
316
- }
420
+ //
421
+ // Define consistent border, margin, and padding
422
+ //
423
+
424
+ fieldset {
425
+ border-color: #c0c0c0;
426
+ margin: 0 2px;
427
+ // Apply borders and padding that keep the vertical rhythm.
428
+ @include apply-side-rhythm-border(top, $width: 1px, $lines: 0.35);
429
+ @include apply-side-rhythm-border(bottom, $width: 1px, $lines: 0.65);
430
+ @include apply-side-rhythm-border(left, $width: 1px, $lines: 0.625);
431
+ @include apply-side-rhythm-border(right, $width: 1px, $lines: 0.625);
432
+ }
317
433
 
318
- /*
319
- * 1. Corrects color not being inherited in IE6/7/8/9
320
- * 2. Corrects alignment displayed oddly in IE6/7
321
- */
434
+ //
435
+ // 1. Corrects color not being inherited in IE6/7/8/9
436
+ // 2. Corrects text not wrapping in FF3
437
+ // 3. Corrects alignment displayed oddly in IE6/7
438
+ //
322
439
 
323
- legend {
324
- border: 0; /* 1 */
325
- *margin-left: -7px; /* 2 */
440
+ legend {
441
+ border: 0; // 1
442
+ padding: 0;
443
+ white-space: normal; // 2
444
+ @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
445
+ *margin-left: -7px; // 3
326
446
  }
447
+ }
327
448
 
328
- /*
329
- * 1. Corrects font size not being inherited in all browsers
330
- * 2. Addresses margins set differently in IE6/7, F3/4, S5, Chrome
331
- * 3. Improves appearance and consistency in all browsers
332
- */
333
-
334
- button,
335
- input,
336
- select,
337
- textarea {
338
- font-size: 100%; /* 1 */
339
- margin: 0; /* 2 */
340
- vertical-align: baseline; /* 3 */
341
- *vertical-align: middle; /* 3 */
449
+ //
450
+ // 1. Corrects font size not being inherited in all browsers
451
+ // 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
452
+ // 3. Improves appearance and consistency in all browsers
453
+ //
454
+
455
+ button,
456
+ input,
457
+ select,
458
+ textarea {
459
+ font-size: 100%; // 1
460
+ margin: 0; // 2
461
+ vertical-align: baseline; // 3
462
+ @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
463
+ *vertical-align: middle; // 3
342
464
  }
465
+ }
343
466
 
344
- /*
345
- * 1. Addresses FF3/4 setting line-height using !important in the UA stylesheet
346
- * 2. Corrects inner spacing displayed oddly in IE6/7
347
- */
348
-
349
- button,
350
- input {
351
- line-height: normal; /* 1 */
352
- *overflow: visible; /* 2 */
353
- }
467
+ //
468
+ // Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
469
+ //
354
470
 
355
- /*
356
- * Corrects overlap and whitespace issue for buttons and inputs in IE6/7
357
- * Known issue: reintroduces inner spacing
358
- */
471
+ button,
472
+ input {
473
+ line-height: normal; // 1
474
+ }
359
475
 
360
- table button,
361
- table input {
362
- *overflow: auto;
476
+ //
477
+ // 1. Improves usability and consistency of cursor style between image-type 'input' and others
478
+ // 2. Corrects inability to style clickable 'input' types in iOS
479
+ // 3. Removes inner spacing in IE7 without affecting normal text inputs
480
+ // Known issue: inner spacing remains in IE6
481
+ //
482
+
483
+ button,
484
+ input[type="button"],
485
+ input[type="reset"],
486
+ input[type="submit"] {
487
+ cursor: pointer; // 1
488
+ -webkit-appearance: button; // 2
489
+ @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
490
+ *overflow: visible; // 3
363
491
  }
492
+ }
364
493
 
365
- /*
366
- * 1. Improves usability and consistency of cursor style between image-type 'input' and others
367
- * 2. Corrects inability to style clickable 'input' types in iOS
368
- */
369
-
370
- button,
371
- html input[type="button"],
372
- input[type="reset"],
373
- input[type="submit"] {
374
- cursor: pointer; /* 1 */
375
- -webkit-appearance: button; /* 2 */
376
- }
494
+ //
495
+ // Re-set default cursor for disabled elements
496
+ //
377
497
 
378
- /*
379
- * Addresses box sizing set to content-box in IE8/9
380
- */
498
+ button[disabled],
499
+ input[disabled] {
500
+ cursor: default;
501
+ }
381
502
 
382
- input[type="checkbox"],
383
- input[type="radio"] {
384
- box-sizing: border-box;
503
+ //
504
+ // 1. Addresses box sizing set to content-box in IE8/9
505
+ // 2. Removes excess padding in IE8/9
506
+ // 3. Removes excess padding in IE7
507
+ // Known issue: excess padding remains in IE6
508
+ //
509
+
510
+ input[type="checkbox"],
511
+ input[type="radio"] {
512
+ @include box-sizing(border-box); // 1
513
+ padding: 0; // 2
514
+ @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
515
+ *height: 13px; // 3
516
+ *width: 13px; // 3
385
517
  }
518
+ }
386
519
 
387
- /*
388
- * 1. Addresses appearance set to searchfield in S5, Chrome
389
- * 2. Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof)
390
- */
520
+ //
521
+ // 1. Addresses appearance set to searchfield in S5, Chrome
522
+ // 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
523
+ //
391
524
 
392
- input[type="search"] {
393
- -webkit-appearance: textfield; /* 1 */
394
- -moz-box-sizing: content-box;
395
- -webkit-box-sizing: content-box; /* 2 */
396
- box-sizing: content-box;
397
- }
525
+ input[type="search"] {
526
+ -webkit-appearance: textfield; // 1
527
+ @include box-sizing(content-box); // 2
528
+ }
398
529
 
399
- /*
400
- * Corrects inner padding displayed oddly in S5, Chrome on OSX
401
- */
530
+ //
531
+ // Removes inner padding and search cancel button in S5, Chrome on OS X
532
+ //
402
533
 
403
- input[type="search"]::-webkit-search-decoration {
404
- -webkit-appearance: none;
405
- }
534
+ input[type="search"]::-webkit-search-decoration,
535
+ input[type="search"]::-webkit-search-cancel-button {
536
+ -webkit-appearance: none;
537
+ }
406
538
 
407
- /*
408
- * Corrects inner padding and border displayed oddly in FF3/4
409
- * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
410
- */
539
+ //
540
+ // Removes inner padding and border in FF3+
541
+ // www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
542
+ //
411
543
 
412
- button::-moz-focus-inner,
413
- input::-moz-focus-inner {
414
- border: 0;
415
- padding: 0;
416
- }
544
+ button::-moz-focus-inner,
545
+ input::-moz-focus-inner {
546
+ border: 0;
547
+ padding: 0;
548
+ }
417
549
 
418
- /*
419
- * 1. Removes default vertical scrollbar in IE6/7/8/9
420
- * 2. Improves readability and alignment in all browsers
421
- */
550
+ //
551
+ // 1. Removes default vertical scrollbar in IE6/7/8/9
552
+ // 2. Improves readability and alignment in all browsers
553
+ //
422
554
 
423
- textarea {
424
- overflow: auto; /* 1 */
425
- vertical-align: top; /* 2 */
426
- }
555
+ textarea {
556
+ overflow: auto; // 1
557
+ vertical-align: top; // 2
558
+ }
427
559
  }
428
560
 
429
- /* =============================================================================
430
- Tables
431
- ========================================================================== */
561
+ // =============================================================================
562
+ // Tables
563
+ // =============================================================================
432
564
  @mixin base-normalize-table
433
565
  {
434
- /*
435
- * Remove most spacing between table cells
436
- */
566
+ //
567
+ // Remove most spacing between table cells
568
+ //
437
569
 
438
- table {
439
- border-collapse: collapse;
440
- border-spacing: 0;
441
- }
570
+ table {
571
+ border-collapse: collapse;
572
+ border-spacing: 0;
573
+ }
442
574
  }
443
575
 
444
576
  @mixin base-normalize