pure-place-rails 0.0.1

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