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.
- data/README.md +39 -26
- data/VERSION +1 -1
- data/lib/compass-recipes/sass_extensions.rb +1 -1
- data/stylesheets/_recipes.scss +6 -3
- data/stylesheets/recipes/_color.scss +17 -21
- data/stylesheets/recipes/_effect.scss +9 -6
- data/stylesheets/recipes/_font.scss +16 -7
- data/stylesheets/recipes/_google-webfont.scss +4 -0
- data/stylesheets/recipes/_icon-font.scss +56 -74
- data/stylesheets/recipes/_icons.scss +6 -0
- data/stylesheets/recipes/_media-queries.scss +8 -14
- data/stylesheets/recipes/_shape.scss +9 -8
- data/stylesheets/recipes/_shared.scss +4 -5
- data/stylesheets/recipes/background/_blueprint-grid.scss +8 -8
- data/stylesheets/recipes/background/_carbon-fiber.scss +8 -9
- data/stylesheets/recipes/background/_checkerboard.scss +9 -9
- data/stylesheets/recipes/background/_cicada.scss +8 -8
- data/stylesheets/recipes/background/_gradients.scss +28 -30
- data/stylesheets/recipes/background/_houndstooth.scss +8 -9
- data/stylesheets/recipes/background/_lined-paper.scss +8 -8
- data/stylesheets/recipes/background/_madras.scss +13 -13
- data/stylesheets/recipes/background/_noise.scss +23 -23
- data/stylesheets/recipes/background/_polka-dot.scss +8 -9
- data/stylesheets/recipes/background/_radial-overlay.scss +5 -5
- data/stylesheets/recipes/background/_rainbow.scss +4 -3
- data/stylesheets/recipes/background/_stripes.scss +14 -14
- data/stylesheets/recipes/background/_tablecloth.scss +8 -9
- data/stylesheets/recipes/background/_tartan.scss +13 -12
- data/stylesheets/recipes/base/_normalize.scss +475 -343
- data/stylesheets/recipes/color/_name.scss +2 -2
- data/stylesheets/recipes/effect/_bevel.scss +4 -0
- data/stylesheets/recipes/effect/_corner-folded.scss +11 -11
- data/stylesheets/recipes/effect/_corners-tucked.scss +7 -8
- data/stylesheets/recipes/effect/_cutout.scss +4 -0
- data/stylesheets/recipes/effect/_folded-corner.scss +10 -10
- data/stylesheets/recipes/effect/_glass.scss +20 -17
- data/stylesheets/recipes/effect/_ribbon.scss +12 -3
- data/stylesheets/recipes/effect/_scatter.scss +5 -6
- data/stylesheets/recipes/effect/_tape.scss +8 -9
- data/stylesheets/recipes/form/element/_inline.scss +8 -7
- data/stylesheets/recipes/helper/_gravatar.scss +3 -3
- data/stylesheets/recipes/layout/_flexible-box-model.scss +17 -18
- data/stylesheets/recipes/layout/_vertical-align.scss +24 -26
- data/stylesheets/recipes/shadow/_drop.scss +8 -8
- data/stylesheets/recipes/shadow/_top-edge.scss +13 -14
- data/stylesheets/recipes/shadow/drop/_curled-corners.scss +7 -6
- data/stylesheets/recipes/shadow/drop/_curved.scss +7 -6
- data/stylesheets/recipes/shadow/drop/_flying.scss +7 -6
- data/stylesheets/recipes/shadow/drop/_lifted-corners.scss +32 -14
- data/stylesheets/recipes/shadow/drop/_perspective.scss +7 -6
- data/stylesheets/recipes/shadow/drop/_raised.scss +7 -6
- data/stylesheets/recipes/shadow/drop/_transform-requirement.scss +9 -8
- data/stylesheets/recipes/shape/_ellipse.scss +6 -5
- data/stylesheets/recipes/shape/_polygon.scss +6 -5
- data/stylesheets/recipes/shape/_symbol.scss +6 -5
- data/stylesheets/recipes/shape/polygon/_hexagon.scss +6 -5
- data/stylesheets/recipes/shape/polygon/_octagon.scss +5 -5
- data/stylesheets/recipes/shape/polygon/_parallelogram.scss +5 -5
- data/stylesheets/recipes/shape/polygon/_pentagon.scss +6 -5
- data/stylesheets/recipes/shape/polygon/_rectangle.scss +6 -5
- data/stylesheets/recipes/shape/polygon/_rhombus.scss +6 -5
- data/stylesheets/recipes/shape/polygon/_square.scss +6 -5
- data/stylesheets/recipes/shape/polygon/_star.scss +6 -6
- data/stylesheets/recipes/shape/polygon/_trapezoid.scss +6 -5
- data/stylesheets/recipes/shape/polygon/_triangle.scss +6 -5
- data/stylesheets/recipes/shape/symbol/_diamond.scss +9 -8
- data/stylesheets/recipes/shape/symbol/_egg.scss +6 -5
- data/stylesheets/recipes/shape/symbol/_heart.scss +7 -6
- data/stylesheets/recipes/shape/symbol/_infinity.scss +7 -6
- data/stylesheets/recipes/shape/symbol/_pacman.scss +6 -5
- data/stylesheets/recipes/shape/symbol/_yin-yang.scss +7 -6
- data/stylesheets/recipes/shared/_clearfix.scss +9 -12
- data/stylesheets/recipes/shared/_pseudo-element.scss +9 -6
- data/stylesheets/recipes/ui/_convex.scss +8 -7
- data/stylesheets/recipes/ui/_glossy.scss +10 -10
- data/stylesheets/recipes/ui/_gradient.scss +8 -7
- data/stylesheets/recipes/ui/_keyboard.scss +11 -12
- data/stylesheets/recipes/ui/_overlay.scss +5 -7
- data/stylesheets/recipes/ui/_separator.scss +8 -8
- data/stylesheets/recipes/ui/helper/_arrow.scss +6 -0
- data/stylesheets/recipes/ui/loader/_pulse.scss +5 -5
- data/stylesheets/recipes/ui/menu/_dropdown.scss +5 -5
- metadata +12 -24
- data/lib/compass-recipes/sass_extensions/highres.rb +0 -31
- data/stylesheets/recipes/animation/_fade.scss +0 -29
- data/stylesheets/recipes/effect/_ribbon-tied.scss +0 -133
- data/stylesheets/recipes/shared/_user-select.scss +0 -6
- data/stylesheets/recipes/ui/_button.scss +0 -122
- data/stylesheets/recipes/ui/button/_state-selectors.scss +0 -40
- data/stylesheets/recipes/ui/button/style/_default.scss +0 -12
- data/stylesheets/recipes/ui/button/style/todo/_bonbon.scss +0 -489
- data/stylesheets/recipes/ui/button/style/todo/_bourbon.scss +0 -169
- data/stylesheets/recipes/ui/button/style/todo/_fancy.sass +0 -178
- data/stylesheets/recipes/ui/button/style/todo/_necolas-animated.scss +0 -81
- data/stylesheets/recipes/ui/button/style/todo/_ubuwaits.scss +0 -654
- data/stylesheets/recipes/ui/helper/_tag.scss +0 -14
@@ -1,15 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
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
|
-
|
36
|
-
|
37
|
-
*/
|
64
|
+
//
|
65
|
+
// Corrects inline-block display not defined in IE6/7/8/9 & FF3
|
66
|
+
//
|
38
67
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
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
|
-
|
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
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
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
|
-
|
73
|
-
|
118
|
+
//
|
119
|
+
// Addresses font-family inconsistency between 'textarea' and other form elements.
|
120
|
+
//
|
74
121
|
|
75
|
-
|
76
|
-
|
77
|
-
|
122
|
+
html,
|
123
|
+
button,
|
124
|
+
input,
|
125
|
+
select,
|
126
|
+
textarea {
|
127
|
+
font-family: $base-font-family;
|
128
|
+
}
|
78
129
|
|
79
|
-
|
80
|
-
|
81
|
-
|
130
|
+
//
|
131
|
+
// Addresses margins handled incorrectly in IE6/7
|
132
|
+
//
|
82
133
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
select,
|
87
|
-
textarea {
|
88
|
-
font-family: sans-serif;
|
89
|
-
}
|
134
|
+
body {
|
135
|
+
margin: 0;
|
136
|
+
}
|
90
137
|
}
|
91
138
|
|
92
|
-
|
93
|
-
|
94
|
-
|
139
|
+
// =============================================================================
|
140
|
+
// Links
|
141
|
+
// =============================================================================
|
95
142
|
@mixin base-normalize-links
|
96
143
|
{
|
97
|
-
|
98
|
-
|
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
|
-
|
110
|
-
|
111
|
-
|
148
|
+
a:focus {
|
149
|
+
outline: thin dotted;
|
150
|
+
}
|
112
151
|
|
113
|
-
|
114
|
-
|
115
|
-
|
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
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
157
|
+
a:hover,
|
158
|
+
a:active {
|
159
|
+
outline: 0;
|
160
|
+
}
|
122
161
|
}
|
123
162
|
|
124
|
-
|
125
|
-
|
126
|
-
|
163
|
+
// =============================================================================
|
164
|
+
// Typography
|
165
|
+
// =============================================================================
|
127
166
|
@mixin base-normalize-typography
|
128
167
|
{
|
129
|
-
|
130
|
-
|
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
|
-
|
134
|
-
|
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
|
-
|
139
|
-
|
185
|
+
h2 {
|
186
|
+
@include adjust-font-size-to( 1.5 * $base-font-size );
|
187
|
+
}
|
140
188
|
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
}
|
189
|
+
h3 {
|
190
|
+
@include adjust-font-size-to( 1.17 * $base-font-size );
|
191
|
+
}
|
145
192
|
|
146
|
-
|
147
|
-
|
148
|
-
|
193
|
+
h4 {
|
194
|
+
@include adjust-font-size-to( 1 * $base-font-size );
|
195
|
+
}
|
149
196
|
|
150
|
-
|
151
|
-
|
152
|
-
|
197
|
+
h5 {
|
198
|
+
@include adjust-font-size-to( 0.83 * $base-font-size );
|
199
|
+
}
|
153
200
|
|
154
|
-
|
155
|
-
|
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
|
-
|
163
|
-
|
164
|
-
|
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
|
-
|
169
|
-
|
170
|
-
*/
|
245
|
+
//
|
246
|
+
// Addresses margins set differently in IE6/7
|
247
|
+
//
|
171
248
|
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
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
|
-
|
183
|
-
|
271
|
+
//
|
272
|
+
// Improves readability of pre-formatted text in all browsers
|
273
|
+
//
|
184
274
|
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
275
|
+
pre {
|
276
|
+
white-space: pre;
|
277
|
+
white-space: pre-wrap;
|
278
|
+
word-wrap: break-word;
|
279
|
+
}
|
190
280
|
|
191
|
-
|
192
|
-
|
193
|
-
|
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
|
-
|
286
|
+
// 1
|
197
287
|
|
198
|
-
|
199
|
-
|
200
|
-
|
288
|
+
q {
|
289
|
+
quotes: none;
|
290
|
+
}
|
201
291
|
|
202
|
-
|
292
|
+
// 2
|
203
293
|
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
294
|
+
q:before,
|
295
|
+
q:after {
|
296
|
+
content: '';
|
297
|
+
content: none;
|
298
|
+
}
|
209
299
|
|
210
|
-
|
211
|
-
|
212
|
-
|
300
|
+
small {
|
301
|
+
font-size: 75%;
|
302
|
+
}
|
213
303
|
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
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
|
-
|
228
|
-
|
229
|
-
|
317
|
+
sup {
|
318
|
+
top: -0.5em;
|
319
|
+
}
|
230
320
|
|
231
|
-
|
232
|
-
|
233
|
-
|
321
|
+
sub {
|
322
|
+
bottom: -0.25em;
|
323
|
+
}
|
234
324
|
}
|
235
325
|
|
236
|
-
|
237
|
-
|
238
|
-
|
326
|
+
// =============================================================================
|
327
|
+
// Lists
|
328
|
+
// =============================================================================
|
239
329
|
@mixin base-normalize-lists
|
240
330
|
{
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
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
|
-
|
248
|
-
|
249
|
-
|
343
|
+
dd {
|
344
|
+
margin: 0 0 0 40px;
|
345
|
+
}
|
250
346
|
|
251
|
-
|
252
|
-
|
253
|
-
|
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
|
-
|
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
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
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
|
-
|
275
|
-
|
384
|
+
//
|
385
|
+
// Corrects overflow displayed oddly in IE9
|
386
|
+
//
|
276
387
|
|
277
|
-
|
278
|
-
|
279
|
-
|
388
|
+
svg:not(:root) {
|
389
|
+
overflow: hidden;
|
390
|
+
}
|
280
391
|
}
|
281
392
|
|
282
|
-
|
283
|
-
|
284
|
-
|
393
|
+
// =============================================================================
|
394
|
+
// Figures
|
395
|
+
// =============================================================================
|
285
396
|
@mixin base-normalize-figures
|
286
397
|
{
|
287
|
-
|
288
|
-
|
289
|
-
|
398
|
+
//
|
399
|
+
// Addresses margin not present in IE6/7/8/9, S5, O11
|
400
|
+
//
|
290
401
|
|
291
|
-
|
292
|
-
|
293
|
-
|
402
|
+
figure {
|
403
|
+
margin: 0;
|
404
|
+
}
|
294
405
|
}
|
295
406
|
|
296
|
-
|
297
|
-
|
298
|
-
|
407
|
+
// =============================================================================
|
408
|
+
// Forms
|
409
|
+
// =============================================================================
|
299
410
|
@mixin base-normalize-forms
|
300
411
|
{
|
301
|
-
|
302
|
-
|
303
|
-
|
412
|
+
//
|
413
|
+
// Corrects margin displayed oddly in IE6/7
|
414
|
+
//
|
304
415
|
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
/*
|
310
|
-
* Define consistent margin and padding
|
311
|
-
*/
|
416
|
+
form {
|
417
|
+
margin: 0;
|
418
|
+
}
|
312
419
|
|
313
|
-
|
314
|
-
|
315
|
-
|
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
|
-
|
320
|
-
|
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
|
-
|
324
|
-
|
325
|
-
|
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
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
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
|
-
|
346
|
-
|
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
|
-
|
357
|
-
|
358
|
-
|
471
|
+
button,
|
472
|
+
input {
|
473
|
+
line-height: normal; // 1
|
474
|
+
}
|
359
475
|
|
360
|
-
|
361
|
-
|
362
|
-
|
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
|
-
|
367
|
-
|
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
|
-
|
380
|
-
|
498
|
+
button[disabled],
|
499
|
+
input[disabled] {
|
500
|
+
cursor: default;
|
501
|
+
}
|
381
502
|
|
382
|
-
|
383
|
-
|
384
|
-
|
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
|
-
|
389
|
-
|
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
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
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
|
-
|
401
|
-
|
530
|
+
//
|
531
|
+
// Removes inner padding and search cancel button in S5, Chrome on OS X
|
532
|
+
//
|
402
533
|
|
403
|
-
|
404
|
-
|
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
|
-
|
409
|
-
|
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
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
544
|
+
button::-moz-focus-inner,
|
545
|
+
input::-moz-focus-inner {
|
546
|
+
border: 0;
|
547
|
+
padding: 0;
|
548
|
+
}
|
417
549
|
|
418
|
-
|
419
|
-
|
420
|
-
|
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
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
555
|
+
textarea {
|
556
|
+
overflow: auto; // 1
|
557
|
+
vertical-align: top; // 2
|
558
|
+
}
|
427
559
|
}
|
428
560
|
|
429
|
-
|
430
|
-
|
431
|
-
|
561
|
+
// =============================================================================
|
562
|
+
// Tables
|
563
|
+
// =============================================================================
|
432
564
|
@mixin base-normalize-table
|
433
565
|
{
|
434
|
-
|
435
|
-
|
436
|
-
|
566
|
+
//
|
567
|
+
// Remove most spacing between table cells
|
568
|
+
//
|
437
569
|
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
570
|
+
table {
|
571
|
+
border-collapse: collapse;
|
572
|
+
border-spacing: 0;
|
573
|
+
}
|
442
574
|
}
|
443
575
|
|
444
576
|
@mixin base-normalize
|