pure-sass 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Guardfile +1 -0
- data/README.md +10 -1
- data/Rakefile +72 -10
- data/app/assets/stylesheets/pure/all.css.scss +7 -0
- data/app/assets/stylesheets/pure/base/normalize-context.css.scss +233 -0
- data/app/assets/stylesheets/pure/base/{normalize.css.sass → normalize.css.scss} +307 -204
- data/app/assets/stylesheets/pure/base.css.scss +2 -0
- data/app/assets/stylesheets/pure/buttons/buttons-core.css.scss +27 -0
- data/app/assets/stylesheets/pure/buttons/buttons-theme.css.scss +110 -0
- data/app/assets/stylesheets/pure/buttons/buttons.css.scss +83 -0
- data/app/assets/stylesheets/pure/buttons.css.scss +3 -0
- data/app/assets/stylesheets/pure/defaults.css.scss +44 -0
- data/app/assets/stylesheets/pure/forms/{forms-core.css.sass → forms-core.css.scss} +91 -74
- data/app/assets/stylesheets/pure/forms/forms-r.css.scss +31 -0
- data/app/assets/stylesheets/pure/forms/forms-theme.css.scss +362 -0
- data/app/assets/stylesheets/pure/forms/forms.css.scss +167 -0
- data/app/assets/stylesheets/pure/forms.css.scss +4 -0
- data/app/assets/stylesheets/pure/grids/grids-core.css.scss +24 -0
- data/app/assets/stylesheets/pure/grids/grids-r.css.scss +54 -0
- data/app/assets/stylesheets/pure/grids/grids-units.css.scss +147 -0
- data/app/assets/stylesheets/pure/grids.css.scss +3 -0
- data/app/assets/stylesheets/pure/lists/lists-theme.css.scss +241 -0
- data/app/assets/stylesheets/pure/menus/menus-core.css.scss +111 -0
- data/app/assets/stylesheets/pure/menus/menus-paginator.css.scss +31 -0
- data/app/assets/stylesheets/pure/menus/menus-r.css.scss +14 -0
- data/app/assets/stylesheets/pure/menus/menus.css.scss +78 -0
- data/app/assets/stylesheets/pure/menus.css.scss +4 -0
- data/app/assets/stylesheets/pure/tables/tables-theme.css.scss +72 -0
- data/app/assets/stylesheets/pure/tables/tables.css.scss +82 -0
- data/app/assets/stylesheets/pure/tables.css.scss +2 -0
- data/lib/pure/sass/default_translation.rb +28 -0
- data/lib/pure/sass/translation.rb +24 -0
- data/lib/pure/sass/version.rb +1 -1
- data/lib/pure/sass.rb +2 -0
- data/pure-sass.gemspec +2 -1
- data/spec/acceptance/sass_spec.rb +10 -0
- data/spec/fixtures/buttons.css.handlebars +110 -0
- data/spec/fixtures/form.css.handlebars +362 -0
- data/spec/fixtures/list.css.handlebars +241 -0
- data/spec/fixtures/table.css.handlebars +72 -0
- data/spec/lib/pure/sass/default_translation_spec.rb +18 -0
- data/spec/lib/pure/sass/translation_spec.rb +19 -0
- data/spec/sass_importer.rb +14 -0
- data/spec/spec_helper.rb +2 -1
- metadata +78 -28
- data/app/assets/stylesheets/pure/all.css.sass +0 -7
- data/app/assets/stylesheets/pure/base/normalize-context.css.sass +0 -152
- data/app/assets/stylesheets/pure/base.css.sass +0 -2
- data/app/assets/stylesheets/pure/buttons/buttons-core.css.sass +0 -23
- data/app/assets/stylesheets/pure/buttons/buttons.css.sass +0 -103
- data/app/assets/stylesheets/pure/buttons.css.sass +0 -2
- data/app/assets/stylesheets/pure/defaults.css.sass +0 -0
- data/app/assets/stylesheets/pure/forms/forms-r.css.sass +0 -22
- data/app/assets/stylesheets/pure/forms/forms.css.sass +0 -128
- data/app/assets/stylesheets/pure/forms.css.sass +0 -3
- data/app/assets/stylesheets/pure/grids/grids-core.css.sass +0 -26
- data/app/assets/stylesheets/pure/grids/grids-r.css.sass +0 -34
- data/app/assets/stylesheets/pure/grids/grids-units.css.sass +0 -93
- data/app/assets/stylesheets/pure/grids.css.sass +0 -3
- data/app/assets/stylesheets/pure/menus/menus-core.css.sass +0 -99
- data/app/assets/stylesheets/pure/menus/menus-paginator.css.sass +0 -24
- data/app/assets/stylesheets/pure/menus/menus-r.css.sass +0 -8
- data/app/assets/stylesheets/pure/menus/menus.css.sass +0 -65
- data/app/assets/stylesheets/pure/menus.css.sass +0 -4
- data/app/assets/stylesheets/pure/tables/tables.css.sass +0 -68
- data/app/assets/stylesheets/pure/tables.css.sass +0 -1
- data/spec/assets_spec.rb +0 -21
@@ -1,333 +1,432 @@
|
|
1
|
-
/* THIS FILE IS GENERATED BY A BUILD SCRIPT - DO NOT EDIT!
|
2
|
-
/*! normalize.css v1.1.2 | MIT License | git.io/normalize
|
1
|
+
/* THIS FILE IS GENERATED BY A BUILD SCRIPT - DO NOT EDIT! */
|
2
|
+
/*! normalize.css v1.1.2 | MIT License | git.io/normalize */
|
3
3
|
|
4
4
|
/* ==========================================================================
|
5
|
-
|
6
|
-
|
5
|
+
HTML5 display definitions
|
6
|
+
========================================================================== */
|
7
7
|
|
8
8
|
/**
|
9
9
|
* Correct `block` display not defined in IE 6/7/8/9 and Firefox 3.
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
*/
|
11
|
+
|
12
|
+
article,
|
13
|
+
aside,
|
14
|
+
details,
|
15
|
+
figcaption,
|
16
|
+
figure,
|
17
|
+
footer,
|
18
|
+
header,
|
19
|
+
hgroup,
|
20
|
+
main,
|
21
|
+
nav,
|
22
|
+
section,
|
23
|
+
summary {
|
24
|
+
display: block;
|
25
|
+
}
|
13
26
|
|
14
27
|
/**
|
15
28
|
* Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
|
29
|
+
*/
|
16
30
|
|
17
|
-
audio,
|
18
|
-
|
19
|
-
|
20
|
-
|
31
|
+
audio,
|
32
|
+
canvas,
|
33
|
+
video {
|
34
|
+
display: inline-block;
|
35
|
+
*display: inline;
|
36
|
+
*zoom: 1;
|
37
|
+
}
|
21
38
|
|
22
39
|
/**
|
23
40
|
* Prevent modern browsers from displaying `audio` without controls.
|
24
41
|
* Remove excess height in iOS 5 devices.
|
42
|
+
*/
|
25
43
|
|
26
|
-
audio:not([controls])
|
27
|
-
|
28
|
-
|
44
|
+
audio:not([controls]) {
|
45
|
+
display: none;
|
46
|
+
height: 0;
|
47
|
+
}
|
29
48
|
|
30
49
|
/**
|
31
50
|
* Address styling not present in IE 7/8/9, Firefox 3, and Safari 4.
|
32
51
|
* Known issue: no IE 6 support.
|
52
|
+
*/
|
33
53
|
|
34
|
-
[hidden]
|
35
|
-
|
54
|
+
[hidden] {
|
55
|
+
display: none;
|
56
|
+
}
|
36
57
|
|
37
58
|
/* ==========================================================================
|
38
|
-
|
39
|
-
|
59
|
+
Base
|
60
|
+
========================================================================== */
|
40
61
|
|
41
62
|
/**
|
42
63
|
* 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
|
43
64
|
* `em` units.
|
44
65
|
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
45
66
|
* user zoom.
|
67
|
+
*/
|
46
68
|
|
47
|
-
html
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
-webkit-text-size-adjust: 100%
|
53
|
-
/* 2
|
54
|
-
font-family: sans-serif
|
69
|
+
html {
|
70
|
+
font-size: 100%; /* 1 */
|
71
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
72
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
73
|
+
}
|
55
74
|
|
56
75
|
/**
|
57
76
|
* Address `font-family` inconsistency between `textarea` and other form
|
58
77
|
* elements.
|
78
|
+
*/
|
59
79
|
|
60
|
-
|
61
|
-
|
80
|
+
html,
|
81
|
+
button,
|
82
|
+
input,
|
83
|
+
select,
|
84
|
+
textarea {
|
85
|
+
font-family: sans-serif;
|
86
|
+
}
|
62
87
|
|
63
88
|
/**
|
64
89
|
* Address margins handled incorrectly in IE 6/7.
|
90
|
+
*/
|
65
91
|
|
66
|
-
body
|
67
|
-
|
92
|
+
body {
|
93
|
+
margin: 0;
|
94
|
+
}
|
68
95
|
|
69
96
|
/* ==========================================================================
|
70
|
-
|
71
|
-
|
97
|
+
Links
|
98
|
+
========================================================================== */
|
72
99
|
|
73
100
|
/**
|
74
101
|
* Address `outline` inconsistency between Chrome and other browsers.
|
102
|
+
*/
|
75
103
|
|
76
|
-
a
|
77
|
-
|
78
|
-
|
79
|
-
&:active, &:hover
|
80
|
-
outline: 0
|
104
|
+
a:focus {
|
105
|
+
outline: thin dotted;
|
106
|
+
}
|
81
107
|
|
82
108
|
/**
|
83
109
|
* Improve readability when focused and also mouse hovered in all browsers.
|
110
|
+
*/
|
111
|
+
|
112
|
+
a:active,
|
113
|
+
a:hover {
|
114
|
+
outline: 0;
|
115
|
+
}
|
84
116
|
|
85
117
|
/* ==========================================================================
|
86
|
-
|
87
|
-
|
118
|
+
Typography
|
119
|
+
========================================================================== */
|
88
120
|
|
89
121
|
/**
|
90
122
|
* Address font sizes and margins set differently in IE 6/7.
|
91
123
|
* Address font sizes within `section` and `article` in Firefox 4+, Safari 5,
|
92
124
|
* and Chrome.
|
125
|
+
*/
|
93
126
|
|
94
|
-
h1
|
95
|
-
|
96
|
-
|
127
|
+
h1 {
|
128
|
+
font-size: 2em;
|
129
|
+
margin: 0.67em 0;
|
130
|
+
}
|
97
131
|
|
98
|
-
h2
|
99
|
-
|
100
|
-
|
132
|
+
h2 {
|
133
|
+
font-size: 1.5em;
|
134
|
+
margin: 0.83em 0;
|
135
|
+
}
|
101
136
|
|
102
|
-
h3
|
103
|
-
|
104
|
-
|
137
|
+
h3 {
|
138
|
+
font-size: 1.17em;
|
139
|
+
margin: 1em 0;
|
140
|
+
}
|
105
141
|
|
106
|
-
h4
|
107
|
-
|
108
|
-
|
142
|
+
h4 {
|
143
|
+
font-size: 1em;
|
144
|
+
margin: 1.33em 0;
|
145
|
+
}
|
109
146
|
|
110
|
-
h5
|
111
|
-
|
112
|
-
|
147
|
+
h5 {
|
148
|
+
font-size: 0.83em;
|
149
|
+
margin: 1.67em 0;
|
150
|
+
}
|
113
151
|
|
114
|
-
h6
|
115
|
-
|
116
|
-
|
152
|
+
h6 {
|
153
|
+
font-size: 0.67em;
|
154
|
+
margin: 2.33em 0;
|
155
|
+
}
|
117
156
|
|
118
157
|
/**
|
119
158
|
* Address styling not present in IE 7/8/9, Safari 5, and Chrome.
|
159
|
+
*/
|
120
160
|
|
121
|
-
abbr[title]
|
122
|
-
|
161
|
+
abbr[title] {
|
162
|
+
border-bottom: 1px dotted;
|
163
|
+
}
|
123
164
|
|
124
165
|
/**
|
125
166
|
* Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
|
167
|
+
*/
|
126
168
|
|
127
|
-
b,
|
128
|
-
|
169
|
+
b,
|
170
|
+
strong {
|
171
|
+
font-weight: bold;
|
172
|
+
}
|
129
173
|
|
130
|
-
blockquote
|
131
|
-
|
174
|
+
blockquote {
|
175
|
+
margin: 1em 40px;
|
176
|
+
}
|
132
177
|
|
133
178
|
/**
|
134
179
|
* Address styling not present in Safari 5 and Chrome.
|
180
|
+
*/
|
135
181
|
|
136
|
-
dfn
|
137
|
-
|
182
|
+
dfn {
|
183
|
+
font-style: italic;
|
184
|
+
}
|
138
185
|
|
139
186
|
/**
|
140
187
|
* Address differences between Firefox and other browsers.
|
141
188
|
* Known issue: no IE 6/7 normalization.
|
189
|
+
*/
|
142
190
|
|
143
|
-
hr
|
144
|
-
|
145
|
-
|
146
|
-
|
191
|
+
hr {
|
192
|
+
-moz-box-sizing: content-box;
|
193
|
+
box-sizing: content-box;
|
194
|
+
height: 0;
|
195
|
+
}
|
147
196
|
|
148
197
|
/**
|
149
198
|
* Address styling not present in IE 6/7/8/9.
|
199
|
+
*/
|
150
200
|
|
151
|
-
mark
|
152
|
-
|
153
|
-
|
201
|
+
mark {
|
202
|
+
background: #ff0;
|
203
|
+
color: #000;
|
204
|
+
}
|
154
205
|
|
155
206
|
/**
|
156
207
|
* Address margins set differently in IE 6/7.
|
208
|
+
*/
|
157
209
|
|
158
|
-
p,
|
159
|
-
|
210
|
+
p,
|
211
|
+
pre {
|
212
|
+
margin: 1em 0;
|
213
|
+
}
|
160
214
|
|
161
215
|
/**
|
162
216
|
* Correct font family set oddly in IE 6, Safari 4/5, and Chrome.
|
217
|
+
*/
|
163
218
|
|
164
|
-
code,
|
165
|
-
|
166
|
-
|
167
|
-
|
219
|
+
code,
|
220
|
+
kbd,
|
221
|
+
pre,
|
222
|
+
samp {
|
223
|
+
font-family: monospace, serif;
|
224
|
+
_font-family: 'courier new', monospace;
|
225
|
+
font-size: 1em;
|
226
|
+
}
|
168
227
|
|
169
228
|
/**
|
170
229
|
* Improve readability of pre-formatted text in all browsers.
|
230
|
+
*/
|
171
231
|
|
172
|
-
pre
|
173
|
-
|
174
|
-
|
175
|
-
|
232
|
+
pre {
|
233
|
+
white-space: pre;
|
234
|
+
white-space: pre-wrap;
|
235
|
+
word-wrap: break-word;
|
236
|
+
}
|
176
237
|
|
177
238
|
/**
|
178
239
|
* Address CSS quotes not supported in IE 6/7.
|
240
|
+
*/
|
179
241
|
|
180
|
-
q
|
181
|
-
|
182
|
-
|
183
|
-
content: ''
|
184
|
-
content: none
|
242
|
+
q {
|
243
|
+
quotes: none;
|
244
|
+
}
|
185
245
|
|
186
246
|
/**
|
187
247
|
* Address `quotes` property not supported in Safari 4.
|
248
|
+
*/
|
249
|
+
|
250
|
+
q:before,
|
251
|
+
q:after {
|
252
|
+
content: '';
|
253
|
+
content: none;
|
254
|
+
}
|
188
255
|
|
189
256
|
/**
|
190
257
|
* Address inconsistent and variable font size in all browsers.
|
258
|
+
*/
|
191
259
|
|
192
|
-
small
|
193
|
-
|
260
|
+
small {
|
261
|
+
font-size: 80%;
|
262
|
+
}
|
194
263
|
|
195
264
|
/**
|
196
265
|
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
266
|
+
*/
|
197
267
|
|
198
|
-
sub
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
268
|
+
sub,
|
269
|
+
sup {
|
270
|
+
font-size: 75%;
|
271
|
+
line-height: 0;
|
272
|
+
position: relative;
|
273
|
+
vertical-align: baseline;
|
274
|
+
}
|
203
275
|
|
204
|
-
sup
|
205
|
-
|
206
|
-
|
207
|
-
position: relative
|
208
|
-
vertical-align: baseline
|
209
|
-
top: -0.5em
|
276
|
+
sup {
|
277
|
+
top: -0.5em;
|
278
|
+
}
|
210
279
|
|
211
|
-
sub
|
212
|
-
|
280
|
+
sub {
|
281
|
+
bottom: -0.25em;
|
282
|
+
}
|
213
283
|
|
214
284
|
/* ==========================================================================
|
215
|
-
|
216
|
-
|
285
|
+
Lists
|
286
|
+
========================================================================== */
|
217
287
|
|
218
288
|
/**
|
219
289
|
* Address margins set differently in IE 6/7.
|
290
|
+
*/
|
220
291
|
|
221
|
-
dl,
|
222
|
-
|
292
|
+
dl,
|
293
|
+
menu,
|
294
|
+
ol,
|
295
|
+
ul {
|
296
|
+
margin: 1em 0;
|
297
|
+
}
|
223
298
|
|
224
|
-
dd
|
225
|
-
|
299
|
+
dd {
|
300
|
+
margin: 0 0 0 40px;
|
301
|
+
}
|
226
302
|
|
227
303
|
/**
|
228
304
|
* Address paddings set differently in IE 6/7.
|
305
|
+
*/
|
229
306
|
|
230
|
-
menu,
|
231
|
-
|
307
|
+
menu,
|
308
|
+
ol,
|
309
|
+
ul {
|
310
|
+
padding: 0 0 0 40px;
|
311
|
+
}
|
232
312
|
|
233
313
|
/**
|
234
314
|
* Correct list images handled incorrectly in IE 7.
|
315
|
+
*/
|
235
316
|
|
236
|
-
nav
|
237
|
-
|
238
|
-
list-style: none
|
239
|
-
list-style-image: none
|
317
|
+
nav ul,
|
318
|
+
nav ol {
|
319
|
+
list-style: none;
|
320
|
+
list-style-image: none;
|
321
|
+
}
|
240
322
|
|
241
323
|
/* ==========================================================================
|
242
|
-
|
243
|
-
|
324
|
+
Embedded content
|
325
|
+
========================================================================== */
|
244
326
|
|
245
327
|
/**
|
246
328
|
* 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3.
|
247
329
|
* 2. Improve image quality when scaled in IE 7.
|
330
|
+
*/
|
248
331
|
|
249
|
-
img
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
/* 2
|
332
|
+
img {
|
333
|
+
border: 0; /* 1 */
|
334
|
+
-ms-interpolation-mode: bicubic; /* 2 */
|
335
|
+
}
|
254
336
|
|
255
337
|
/**
|
256
338
|
* Correct overflow displayed oddly in IE 9.
|
339
|
+
*/
|
257
340
|
|
258
|
-
svg:not(:root)
|
259
|
-
|
341
|
+
svg:not(:root) {
|
342
|
+
overflow: hidden;
|
343
|
+
}
|
260
344
|
|
261
345
|
/* ==========================================================================
|
262
|
-
|
263
|
-
|
346
|
+
Figures
|
347
|
+
========================================================================== */
|
264
348
|
|
265
349
|
/**
|
266
350
|
* Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
|
351
|
+
*/
|
267
352
|
|
268
|
-
figure
|
269
|
-
|
353
|
+
figure {
|
354
|
+
margin: 0;
|
355
|
+
}
|
270
356
|
|
271
357
|
/* ==========================================================================
|
272
|
-
|
273
|
-
|
358
|
+
Forms
|
359
|
+
========================================================================== */
|
274
360
|
|
275
361
|
/**
|
276
362
|
* Correct margin displayed oddly in IE 6/7.
|
363
|
+
*/
|
364
|
+
|
365
|
+
form {
|
366
|
+
margin: 0;
|
367
|
+
}
|
277
368
|
|
278
369
|
/**
|
279
370
|
* Define consistent border, margin, and padding.
|
371
|
+
*/
|
280
372
|
|
281
|
-
fieldset
|
282
|
-
|
283
|
-
|
284
|
-
|
373
|
+
fieldset {
|
374
|
+
border: 1px solid #c0c0c0;
|
375
|
+
margin: 0 2px;
|
376
|
+
padding: 0.35em 0.625em 0.75em;
|
377
|
+
}
|
285
378
|
|
286
379
|
/**
|
287
380
|
* 1. Correct color not being inherited in IE 6/7/8/9.
|
288
381
|
* 2. Correct text not wrapping in Firefox 3.
|
289
382
|
* 3. Correct alignment displayed oddly in IE 6/7.
|
383
|
+
*/
|
290
384
|
|
291
|
-
legend
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
*margin-left: -7px
|
298
|
-
/* 3
|
385
|
+
legend {
|
386
|
+
border: 0; /* 1 */
|
387
|
+
padding: 0;
|
388
|
+
white-space: normal; /* 2 */
|
389
|
+
*margin-left: -7px; /* 3 */
|
390
|
+
}
|
299
391
|
|
300
392
|
/**
|
301
393
|
* 1. Correct font size not being inherited in all browsers.
|
302
394
|
* 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5,
|
303
395
|
* and Chrome.
|
304
396
|
* 3. Improve appearance and consistency in all browsers.
|
397
|
+
*/
|
305
398
|
|
306
|
-
button,
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
399
|
+
button,
|
400
|
+
input,
|
401
|
+
select,
|
402
|
+
textarea {
|
403
|
+
font-size: 100%; /* 1 */
|
404
|
+
margin: 0; /* 2 */
|
405
|
+
vertical-align: baseline; /* 3 */
|
406
|
+
*vertical-align: middle; /* 3 */
|
407
|
+
}
|
315
408
|
|
316
409
|
/**
|
317
410
|
* Address Firefox 3+ setting `line-height` on `input` using `!important` in
|
318
411
|
* the UA stylesheet.
|
412
|
+
*/
|
319
413
|
|
320
|
-
button,
|
321
|
-
|
414
|
+
button,
|
415
|
+
input {
|
416
|
+
line-height: normal;
|
417
|
+
}
|
322
418
|
|
323
419
|
/**
|
324
420
|
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
325
421
|
* All other form control elements do not inherit `text-transform` values.
|
326
422
|
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+.
|
327
423
|
* Correct `select` style inheritance in Firefox 4+ and Opera.
|
424
|
+
*/
|
328
425
|
|
329
|
-
button,
|
330
|
-
|
426
|
+
button,
|
427
|
+
select {
|
428
|
+
text-transform: none;
|
429
|
+
}
|
331
430
|
|
332
431
|
/**
|
333
432
|
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
@@ -337,89 +436,93 @@ button, select
|
|
337
436
|
* `input` and others.
|
338
437
|
* 4. Remove inner spacing in IE 7 without affecting normal text inputs.
|
339
438
|
* Known issue: inner spacing remains in IE 6.
|
439
|
+
*/
|
340
440
|
|
341
|
-
button,
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
/* 4
|
348
|
-
|
349
|
-
input
|
350
|
-
&[type="reset"], &[type="submit"]
|
351
|
-
-webkit-appearance: button
|
352
|
-
/* 2
|
353
|
-
cursor: pointer
|
354
|
-
/* 3
|
355
|
-
*overflow: visible
|
356
|
-
/* 4
|
441
|
+
button,
|
442
|
+
html input[type="button"], /* 1 */
|
443
|
+
input[type="reset"],
|
444
|
+
input[type="submit"] {
|
445
|
+
-webkit-appearance: button; /* 2 */
|
446
|
+
cursor: pointer; /* 3 */
|
447
|
+
*overflow: visible; /* 4 */
|
448
|
+
}
|
357
449
|
|
358
450
|
/**
|
359
451
|
* Re-set default cursor for disabled elements.
|
452
|
+
*/
|
360
453
|
|
361
|
-
button[disabled],
|
362
|
-
|
454
|
+
button[disabled],
|
455
|
+
html input[disabled] {
|
456
|
+
cursor: default;
|
457
|
+
}
|
363
458
|
|
364
459
|
/**
|
365
460
|
* 1. Address box sizing set to content-box in IE 8/9.
|
366
461
|
* 2. Remove excess padding in IE 8/9.
|
367
462
|
* 3. Remove excess padding in IE 7.
|
368
463
|
* Known issue: excess padding remains in IE 6.
|
464
|
+
*/
|
369
465
|
|
370
|
-
input
|
371
|
-
|
372
|
-
box-sizing: border-box
|
373
|
-
/*
|
374
|
-
|
375
|
-
/*
|
376
|
-
|
377
|
-
/* 3
|
378
|
-
*width: 13px
|
379
|
-
/* 3
|
380
|
-
&[type="search"]
|
381
|
-
-webkit-appearance: textfield
|
382
|
-
/* 1
|
383
|
-
-moz-box-sizing: content-box
|
384
|
-
-webkit-box-sizing: content-box
|
385
|
-
/* 2
|
386
|
-
box-sizing: content-box
|
387
|
-
&::-webkit-search-cancel-button, &::-webkit-search-decoration
|
388
|
-
-webkit-appearance: none
|
466
|
+
input[type="checkbox"],
|
467
|
+
input[type="radio"] {
|
468
|
+
box-sizing: border-box; /* 1 */
|
469
|
+
padding: 0; /* 2 */
|
470
|
+
*height: 13px; /* 3 */
|
471
|
+
*width: 13px; /* 3 */
|
472
|
+
}
|
389
473
|
|
390
474
|
/**
|
391
475
|
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
392
476
|
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
393
477
|
* (include `-moz` to future-proof).
|
478
|
+
*/
|
479
|
+
|
480
|
+
input[type="search"] {
|
481
|
+
-webkit-appearance: textfield; /* 1 */
|
482
|
+
-moz-box-sizing: content-box;
|
483
|
+
-webkit-box-sizing: content-box; /* 2 */
|
484
|
+
box-sizing: content-box;
|
485
|
+
}
|
394
486
|
|
395
487
|
/**
|
396
488
|
* Remove inner padding and search cancel button in Safari 5 and Chrome
|
397
489
|
* on OS X.
|
490
|
+
*/
|
491
|
+
|
492
|
+
input[type="search"]::-webkit-search-cancel-button,
|
493
|
+
input[type="search"]::-webkit-search-decoration {
|
494
|
+
-webkit-appearance: none;
|
495
|
+
}
|
398
496
|
|
399
497
|
/**
|
400
498
|
* Remove inner padding and border in Firefox 3+.
|
499
|
+
*/
|
401
500
|
|
402
|
-
button::-moz-focus-inner,
|
403
|
-
|
404
|
-
|
501
|
+
button::-moz-focus-inner,
|
502
|
+
input::-moz-focus-inner {
|
503
|
+
border: 0;
|
504
|
+
padding: 0;
|
505
|
+
}
|
405
506
|
|
406
507
|
/**
|
407
508
|
* 1. Remove default vertical scrollbar in IE 6/7/8/9.
|
408
509
|
* 2. Improve readability and alignment in all browsers.
|
510
|
+
*/
|
409
511
|
|
410
|
-
textarea
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
/* 2
|
512
|
+
textarea {
|
513
|
+
overflow: auto; /* 1 */
|
514
|
+
vertical-align: top; /* 2 */
|
515
|
+
}
|
415
516
|
|
416
517
|
/* ==========================================================================
|
417
|
-
|
418
|
-
|
518
|
+
Tables
|
519
|
+
========================================================================== */
|
419
520
|
|
420
521
|
/**
|
421
522
|
* Remove most spacing between table cells.
|
523
|
+
*/
|
422
524
|
|
423
|
-
table
|
424
|
-
|
425
|
-
|
525
|
+
table {
|
526
|
+
border-collapse: collapse;
|
527
|
+
border-spacing: 0;
|
528
|
+
}
|