minable 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +52 -0
- data/LICENSE +51 -0
- data/Rakefile +9 -0
- data/app/assets/stylesheets/_global.scss +8 -0
- data/app/assets/stylesheets/_minable.scss +36 -0
- data/app/assets/stylesheets/_settings.scss +25 -0
- data/app/assets/stylesheets/_shame.scss +1 -0
- data/app/assets/stylesheets/components/_all.scss +6 -0
- data/app/assets/stylesheets/components/_containers.scss +1 -0
- data/app/assets/stylesheets/components/_footer.scss +1 -0
- data/app/assets/stylesheets/components/_header.scss +1 -0
- data/app/assets/stylesheets/components/_typography.scss +1 -0
- data/app/assets/stylesheets/framework/_all.scss +10 -0
- data/app/assets/stylesheets/framework/_normalize.scss +406 -0
- data/app/assets/stylesheets/framework/_typecsset.scss +340 -0
- data/app/assets/stylesheets/framework/grid/_all.scss +4 -0
- data/app/assets/stylesheets/framework/grid/_grid-core.scss +58 -0
- data/app/assets/stylesheets/framework/grid/_grid-unit.scss +195 -0
- data/app/assets/stylesheets/helpers/_all.scss +5 -0
- data/app/assets/stylesheets/helpers/classes/_all.scss +3 -0
- data/app/assets/stylesheets/helpers/classes/_display-classes.scss +33 -0
- data/app/assets/stylesheets/helpers/functions/_all.scss +3 -0
- data/app/assets/stylesheets/helpers/functions/_strip-unit.scss +4 -0
- data/app/assets/stylesheets/helpers/mixins/_all.scss +4 -0
- data/app/assets/stylesheets/helpers/mixins/_rem-fallback.scss +33 -0
- data/app/assets/stylesheets/helpers/mixins/_replace-text.scss +16 -0
- data/app/assets/stylesheets/modules/_all.scss +1 -0
- data/app/assets/stylesheets/templates/_404.scss +1 -0
- data/app/assets/stylesheets/templates/_all.scss +3 -0
- data/app/assets/stylesheets/templates/_home.scss +1 -0
- data/bin/minable +4 -0
- data/features/install.feature +29 -0
- data/features/step_definitions/minable_steps.rb +24 -0
- data/features/support/env.rb +1 -0
- data/features/support/minable_support.rb +19 -0
- data/features/update.feature +30 -0
- data/features/version.feature +6 -0
- data/lib/minable/engine.rb +4 -0
- data/lib/minable/generator.rb +80 -0
- data/lib/minable/version.rb +3 -0
- data/lib/minable.rb +27 -0
- data/lib/tasks/install.rake +20 -0
- data/minable.gemspec +28 -0
- data/readme.md +56 -0
- metadata +155 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 253f0c4febb790eade84523d080ccb66fa483cf0
|
4
|
+
data.tar.gz: d02cc1ba0104a542d8d43c21b101c5056ceb0b96
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 68e520e502ca365f80739d55802e3176ffdfba4a363e88a52fa5909ca4c08fd91f75eecc1dfa4c335befd98bfdd5b63633af1178b1069d6ac4429167510ec536
|
7
|
+
data.tar.gz: 48e91d693a4cfd90e4716c2f2195a508ff371a65ad622ed2f23e68247e115a68fc67ab2273ac00cf61c2e0f660d03fcea0ead779e9e894ef3c1ed4aa92a32065
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
minable (0.0.1)
|
5
|
+
sass (>= 3.3.0.rc.2)
|
6
|
+
thor
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
aruba (0.5.4)
|
12
|
+
childprocess (>= 0.3.6)
|
13
|
+
cucumber (>= 1.1.1)
|
14
|
+
rspec-expectations (>= 2.7.0)
|
15
|
+
builder (3.2.2)
|
16
|
+
childprocess (0.4.0)
|
17
|
+
ffi (~> 1.0, >= 1.0.11)
|
18
|
+
cucumber (1.3.10)
|
19
|
+
builder (>= 2.1.2)
|
20
|
+
diff-lcs (>= 1.1.3)
|
21
|
+
gherkin (~> 2.12)
|
22
|
+
multi_json (>= 1.7.5, < 2.0)
|
23
|
+
multi_test (>= 0.0.2)
|
24
|
+
diff-lcs (1.2.5)
|
25
|
+
ffi (1.9.3)
|
26
|
+
gherkin (2.12.2)
|
27
|
+
multi_json (~> 1.3)
|
28
|
+
listen (1.1.6)
|
29
|
+
rb-fsevent (>= 0.9.3)
|
30
|
+
rb-inotify (>= 0.9)
|
31
|
+
rb-kqueue (>= 0.2)
|
32
|
+
multi_json (1.8.4)
|
33
|
+
multi_test (0.0.3)
|
34
|
+
rake (10.1.1)
|
35
|
+
rb-fsevent (0.9.4)
|
36
|
+
rb-inotify (0.9.3)
|
37
|
+
ffi (>= 0.5.0)
|
38
|
+
rb-kqueue (0.2.0)
|
39
|
+
ffi (>= 0.5.0)
|
40
|
+
rspec-expectations (2.14.5)
|
41
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
42
|
+
sass (3.3.0.rc.2)
|
43
|
+
listen (~> 1.1.0)
|
44
|
+
thor (0.18.1)
|
45
|
+
|
46
|
+
PLATFORMS
|
47
|
+
ruby
|
48
|
+
|
49
|
+
DEPENDENCIES
|
50
|
+
aruba (~> 0.4)
|
51
|
+
minable!
|
52
|
+
rake
|
data/LICENSE
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
LICENSE
|
2
|
+
|
3
|
+
The MIT License
|
4
|
+
|
5
|
+
Copyright (c) 2014 Joe Dinsdale.
|
6
|
+
Copyright (c) 2011-2013 thoughtbot, inc.
|
7
|
+
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
10
|
+
in the Software without restriction, including without limitation the rights
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
13
|
+
furnished to do so, subject to the following conditions:
|
14
|
+
|
15
|
+
The above copyright notice and this permission notice shall be included in
|
16
|
+
all copies or substantial portions of the Software.
|
17
|
+
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
+
THE SOFTWARE.
|
25
|
+
|
26
|
+
Copyright 2013 Yahoo! Inc. All rights reserved.
|
27
|
+
|
28
|
+
Redistribution and use in source and binary forms, with or without
|
29
|
+
modification, are permitted provided that the following conditions are met:
|
30
|
+
|
31
|
+
* Redistributions of source code must retain the above copyright
|
32
|
+
notice, this list of conditions and the following disclaimer.
|
33
|
+
|
34
|
+
* Redistributions in binary form must reproduce the above copyright
|
35
|
+
notice, this list of conditions and the following disclaimer in the
|
36
|
+
documentation and/or other materials provided with the distribution.
|
37
|
+
|
38
|
+
* Neither the name of the Yahoo! Inc. nor the
|
39
|
+
names of its contributors may be used to endorse or promote products
|
40
|
+
derived from this software without specific prior written permission.
|
41
|
+
|
42
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
43
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
44
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
45
|
+
DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY
|
46
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
47
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
48
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
49
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
50
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
51
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/Rakefile
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
/*!
|
2
|
+
==================================================================
|
3
|
+
|
4
|
+
Author: Joe Dinsdale (Bolser)
|
5
|
+
Author URI: http://www.joedinsdale.co.uk/
|
6
|
+
Description: Website design for Bolser Agency
|
7
|
+
|
8
|
+
==================================================================
|
9
|
+
*/
|
10
|
+
|
11
|
+
// STYLES FOR PUBLISHED VERSION OF SITE. COMPILES TO style.css
|
12
|
+
|
13
|
+
// Import Framework settings
|
14
|
+
@import "settings";
|
15
|
+
|
16
|
+
// Import Framwork Helpers
|
17
|
+
@import "helpers/all";
|
18
|
+
|
19
|
+
// Import Minable Framework
|
20
|
+
@import "framework/all";
|
21
|
+
|
22
|
+
// Import Global styles
|
23
|
+
@import "global.scss";
|
24
|
+
|
25
|
+
// Import Components
|
26
|
+
@import "components/all";
|
27
|
+
|
28
|
+
// Import Modules
|
29
|
+
@import "modules/all";
|
30
|
+
|
31
|
+
// Import Site Templates
|
32
|
+
@import "modules/all";
|
33
|
+
|
34
|
+
|
35
|
+
// For temp "dirty" fixes...
|
36
|
+
@import "shame";
|
@@ -0,0 +1,25 @@
|
|
1
|
+
// Variable declaration. Define any constants for easy updating such as colours, sizes and fonts.
|
2
|
+
|
3
|
+
// Colours (Pre-define colours to use in project)
|
4
|
+
$color-white: #FFF;
|
5
|
+
$color-purple: #703493;
|
6
|
+
$color-dark-grey: #333;
|
7
|
+
|
8
|
+
// Fonts (Pre-define fonts to use in project)
|
9
|
+
|
10
|
+
// Used to calculate rem values etc
|
11
|
+
$browser-default-font-size: 16px;
|
12
|
+
|
13
|
+
$font1: 'Open Sans', "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
|
14
|
+
$font2: 'Gentium Basic', serif;
|
15
|
+
|
16
|
+
// Breakpoints (used by grid to calculate additional breakpoints)
|
17
|
+
$break-m: 767px;
|
18
|
+
$break-s: 430px;
|
19
|
+
|
20
|
+
$breakpoints: m $break-m, s $break-s; // Additional breakpoints, exports to .pure-u-m-1-4 etc
|
21
|
+
|
22
|
+
|
23
|
+
// Grid control
|
24
|
+
$site-width: 1200px; // Max site width (Max width of .min-container elements)
|
25
|
+
$site-gutter: 20px; // Define the gutter between columns in px
|
@@ -0,0 +1 @@
|
|
1
|
+
// The shame file should be used for only TEMP FLITHY FIXES!!! These should never be permanent solutions, refactor imediately!!!
|
@@ -0,0 +1 @@
|
|
1
|
+
// Containers styling to be used for page body content etc
|
@@ -0,0 +1 @@
|
|
1
|
+
// Footer styling
|
@@ -0,0 +1 @@
|
|
1
|
+
// Header styling
|
@@ -0,0 +1 @@
|
|
1
|
+
// Include typography styling, extend framework/typecsset.scss where possible!
|
@@ -0,0 +1,10 @@
|
|
1
|
+
// Import the core Minable Framework core stuff!
|
2
|
+
|
3
|
+
// Import Normalize (git.io/normalize)
|
4
|
+
@import "normalize";
|
5
|
+
|
6
|
+
// Import the Minable grid components
|
7
|
+
@import "grid/all";
|
8
|
+
|
9
|
+
// Import the TypeCSSet (https://github.com/csswizardry/typecsset)
|
10
|
+
@import "typecsset";
|
@@ -0,0 +1,406 @@
|
|
1
|
+
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
|
2
|
+
|
3
|
+
/* ==========================================================================
|
4
|
+
HTML5 display definitions
|
5
|
+
========================================================================== */
|
6
|
+
|
7
|
+
/**
|
8
|
+
* Correct `block` display not defined in IE 8/9.
|
9
|
+
*/
|
10
|
+
|
11
|
+
article,
|
12
|
+
aside,
|
13
|
+
details,
|
14
|
+
figcaption,
|
15
|
+
figure,
|
16
|
+
footer,
|
17
|
+
header,
|
18
|
+
hgroup,
|
19
|
+
main,
|
20
|
+
nav,
|
21
|
+
section,
|
22
|
+
summary {
|
23
|
+
display: block;
|
24
|
+
}
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Correct `inline-block` display not defined in IE 8/9.
|
28
|
+
*/
|
29
|
+
|
30
|
+
audio,
|
31
|
+
canvas,
|
32
|
+
video {
|
33
|
+
display: inline-block;
|
34
|
+
}
|
35
|
+
|
36
|
+
/**
|
37
|
+
* Prevent modern browsers from displaying `audio` without controls.
|
38
|
+
* Remove excess height in iOS 5 devices.
|
39
|
+
*/
|
40
|
+
|
41
|
+
audio:not([controls]) {
|
42
|
+
display: none;
|
43
|
+
height: 0;
|
44
|
+
}
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Address `[hidden]` styling not present in IE 8/9.
|
48
|
+
* Hide the `template` element in IE, Safari, and Firefox < 22.
|
49
|
+
*/
|
50
|
+
|
51
|
+
[hidden],
|
52
|
+
template {
|
53
|
+
display: none;
|
54
|
+
}
|
55
|
+
|
56
|
+
/* ==========================================================================
|
57
|
+
Base
|
58
|
+
========================================================================== */
|
59
|
+
|
60
|
+
/**
|
61
|
+
* 1. Set default font family to sans-serif.
|
62
|
+
* 2. Prevent iOS text size adjust after orientation change, without disabling
|
63
|
+
* user zoom.
|
64
|
+
*/
|
65
|
+
|
66
|
+
html {
|
67
|
+
font-family: sans-serif; /* 1 */
|
68
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
69
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
70
|
+
}
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Remove default margin.
|
74
|
+
*/
|
75
|
+
|
76
|
+
body {
|
77
|
+
margin: 0;
|
78
|
+
}
|
79
|
+
|
80
|
+
/* ==========================================================================
|
81
|
+
Links
|
82
|
+
========================================================================== */
|
83
|
+
|
84
|
+
/**
|
85
|
+
* Remove the gray background color from active links in IE 10.
|
86
|
+
*/
|
87
|
+
|
88
|
+
a {
|
89
|
+
background: transparent;
|
90
|
+
}
|
91
|
+
|
92
|
+
/**
|
93
|
+
* Address `outline` inconsistency between Chrome and other browsers.
|
94
|
+
*/
|
95
|
+
|
96
|
+
a:focus {
|
97
|
+
outline: thin dotted;
|
98
|
+
}
|
99
|
+
|
100
|
+
/**
|
101
|
+
* Improve readability when focused and also mouse hovered in all browsers.
|
102
|
+
*/
|
103
|
+
|
104
|
+
a:active,
|
105
|
+
a:hover {
|
106
|
+
outline: 0;
|
107
|
+
}
|
108
|
+
|
109
|
+
/* ==========================================================================
|
110
|
+
Typography
|
111
|
+
========================================================================== */
|
112
|
+
|
113
|
+
/**
|
114
|
+
* Address variable `h1` font-size and margin within `section` and `article`
|
115
|
+
* contexts in Firefox 4+, Safari 5, and Chrome.
|
116
|
+
*/
|
117
|
+
|
118
|
+
h1 {
|
119
|
+
font-size: 2em;
|
120
|
+
margin: 0.67em 0;
|
121
|
+
}
|
122
|
+
|
123
|
+
/**
|
124
|
+
* Address styling not present in IE 8/9, Safari 5, and Chrome.
|
125
|
+
*/
|
126
|
+
|
127
|
+
abbr[title] {
|
128
|
+
border-bottom: 1px dotted;
|
129
|
+
}
|
130
|
+
|
131
|
+
/**
|
132
|
+
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
|
133
|
+
*/
|
134
|
+
|
135
|
+
b,
|
136
|
+
strong {
|
137
|
+
font-weight: bold;
|
138
|
+
}
|
139
|
+
|
140
|
+
/**
|
141
|
+
* Address styling not present in Safari 5 and Chrome.
|
142
|
+
*/
|
143
|
+
|
144
|
+
dfn {
|
145
|
+
font-style: italic;
|
146
|
+
}
|
147
|
+
|
148
|
+
/**
|
149
|
+
* Address differences between Firefox and other browsers.
|
150
|
+
*/
|
151
|
+
|
152
|
+
hr {
|
153
|
+
-moz-box-sizing: content-box;
|
154
|
+
box-sizing: content-box;
|
155
|
+
height: 0;
|
156
|
+
}
|
157
|
+
|
158
|
+
/**
|
159
|
+
* Address styling not present in IE 8/9.
|
160
|
+
*/
|
161
|
+
|
162
|
+
mark {
|
163
|
+
background: #ff0;
|
164
|
+
color: #000;
|
165
|
+
}
|
166
|
+
|
167
|
+
/**
|
168
|
+
* Correct font family set oddly in Safari 5 and Chrome.
|
169
|
+
*/
|
170
|
+
|
171
|
+
code,
|
172
|
+
kbd,
|
173
|
+
pre,
|
174
|
+
samp {
|
175
|
+
font-family: monospace, serif;
|
176
|
+
font-size: 1em;
|
177
|
+
}
|
178
|
+
|
179
|
+
/**
|
180
|
+
* Improve readability of pre-formatted text in all browsers.
|
181
|
+
*/
|
182
|
+
|
183
|
+
pre {
|
184
|
+
white-space: pre-wrap;
|
185
|
+
}
|
186
|
+
|
187
|
+
/**
|
188
|
+
* Set consistent quote types.
|
189
|
+
*/
|
190
|
+
|
191
|
+
q {
|
192
|
+
quotes: "\201C" "\201D" "\2018" "\2019";
|
193
|
+
}
|
194
|
+
|
195
|
+
/**
|
196
|
+
* Address inconsistent and variable font size in all browsers.
|
197
|
+
*/
|
198
|
+
|
199
|
+
small {
|
200
|
+
font-size: 80%;
|
201
|
+
}
|
202
|
+
|
203
|
+
/**
|
204
|
+
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
205
|
+
*/
|
206
|
+
|
207
|
+
sub,
|
208
|
+
sup {
|
209
|
+
font-size: 75%;
|
210
|
+
line-height: 0;
|
211
|
+
position: relative;
|
212
|
+
vertical-align: baseline;
|
213
|
+
}
|
214
|
+
|
215
|
+
sup {
|
216
|
+
top: -0.5em;
|
217
|
+
}
|
218
|
+
|
219
|
+
sub {
|
220
|
+
bottom: -0.25em;
|
221
|
+
}
|
222
|
+
|
223
|
+
/* ==========================================================================
|
224
|
+
Embedded content
|
225
|
+
========================================================================== */
|
226
|
+
|
227
|
+
/**
|
228
|
+
* Remove border when inside `a` element in IE 8/9.
|
229
|
+
*/
|
230
|
+
|
231
|
+
img {
|
232
|
+
border: 0;
|
233
|
+
}
|
234
|
+
|
235
|
+
/**
|
236
|
+
* Correct overflow displayed oddly in IE 9.
|
237
|
+
*/
|
238
|
+
|
239
|
+
svg:not(:root) {
|
240
|
+
overflow: hidden;
|
241
|
+
}
|
242
|
+
|
243
|
+
/* ==========================================================================
|
244
|
+
Figures
|
245
|
+
========================================================================== */
|
246
|
+
|
247
|
+
/**
|
248
|
+
* Address margin not present in IE 8/9 and Safari 5.
|
249
|
+
*/
|
250
|
+
|
251
|
+
figure {
|
252
|
+
margin: 0;
|
253
|
+
}
|
254
|
+
|
255
|
+
/* ==========================================================================
|
256
|
+
Forms
|
257
|
+
========================================================================== */
|
258
|
+
|
259
|
+
/**
|
260
|
+
* Define consistent border, margin, and padding.
|
261
|
+
*/
|
262
|
+
|
263
|
+
fieldset {
|
264
|
+
border: 1px solid #c0c0c0;
|
265
|
+
margin: 0 2px;
|
266
|
+
padding: 0.35em 0.625em 0.75em;
|
267
|
+
}
|
268
|
+
|
269
|
+
/**
|
270
|
+
* 1. Correct `color` not being inherited in IE 8/9.
|
271
|
+
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
272
|
+
*/
|
273
|
+
|
274
|
+
legend {
|
275
|
+
border: 0; /* 1 */
|
276
|
+
padding: 0; /* 2 */
|
277
|
+
}
|
278
|
+
|
279
|
+
/**
|
280
|
+
* 1. Correct font family not being inherited in all browsers.
|
281
|
+
* 2. Correct font size not being inherited in all browsers.
|
282
|
+
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
|
283
|
+
*/
|
284
|
+
|
285
|
+
button,
|
286
|
+
input,
|
287
|
+
select,
|
288
|
+
textarea {
|
289
|
+
font-family: inherit; /* 1 */
|
290
|
+
font-size: 100%; /* 2 */
|
291
|
+
margin: 0; /* 3 */
|
292
|
+
}
|
293
|
+
|
294
|
+
/**
|
295
|
+
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
296
|
+
* the UA stylesheet.
|
297
|
+
*/
|
298
|
+
|
299
|
+
button,
|
300
|
+
input {
|
301
|
+
line-height: normal;
|
302
|
+
}
|
303
|
+
|
304
|
+
/**
|
305
|
+
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
306
|
+
* All other form control elements do not inherit `text-transform` values.
|
307
|
+
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
|
308
|
+
* Correct `select` style inheritance in Firefox 4+ and Opera.
|
309
|
+
*/
|
310
|
+
|
311
|
+
button,
|
312
|
+
select {
|
313
|
+
text-transform: none;
|
314
|
+
}
|
315
|
+
|
316
|
+
/**
|
317
|
+
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
318
|
+
* and `video` controls.
|
319
|
+
* 2. Correct inability to style clickable `input` types in iOS.
|
320
|
+
* 3. Improve usability and consistency of cursor style between image-type
|
321
|
+
* `input` and others.
|
322
|
+
*/
|
323
|
+
|
324
|
+
button,
|
325
|
+
html input[type="button"], /* 1 */
|
326
|
+
input[type="reset"],
|
327
|
+
input[type="submit"] {
|
328
|
+
-webkit-appearance: button; /* 2 */
|
329
|
+
cursor: pointer; /* 3 */
|
330
|
+
}
|
331
|
+
|
332
|
+
/**
|
333
|
+
* Re-set default cursor for disabled elements.
|
334
|
+
*/
|
335
|
+
|
336
|
+
button[disabled],
|
337
|
+
html input[disabled] {
|
338
|
+
cursor: default;
|
339
|
+
}
|
340
|
+
|
341
|
+
/**
|
342
|
+
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
343
|
+
* 2. Remove excess padding in IE 8/9/10.
|
344
|
+
*/
|
345
|
+
|
346
|
+
input[type="checkbox"],
|
347
|
+
input[type="radio"] {
|
348
|
+
box-sizing: border-box; /* 1 */
|
349
|
+
padding: 0; /* 2 */
|
350
|
+
}
|
351
|
+
|
352
|
+
/**
|
353
|
+
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
|
354
|
+
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
|
355
|
+
* (include `-moz` to future-proof).
|
356
|
+
*/
|
357
|
+
|
358
|
+
input[type="search"] {
|
359
|
+
-webkit-appearance: textfield; /* 1 */
|
360
|
+
-moz-box-sizing: content-box;
|
361
|
+
-webkit-box-sizing: content-box; /* 2 */
|
362
|
+
box-sizing: content-box;
|
363
|
+
}
|
364
|
+
|
365
|
+
/**
|
366
|
+
* Remove inner padding and search cancel button in Safari 5 and Chrome
|
367
|
+
* on OS X.
|
368
|
+
*/
|
369
|
+
|
370
|
+
input[type="search"]::-webkit-search-cancel-button,
|
371
|
+
input[type="search"]::-webkit-search-decoration {
|
372
|
+
-webkit-appearance: none;
|
373
|
+
}
|
374
|
+
|
375
|
+
/**
|
376
|
+
* Remove inner padding and border in Firefox 4+.
|
377
|
+
*/
|
378
|
+
|
379
|
+
button::-moz-focus-inner,
|
380
|
+
input::-moz-focus-inner {
|
381
|
+
border: 0;
|
382
|
+
padding: 0;
|
383
|
+
}
|
384
|
+
|
385
|
+
/**
|
386
|
+
* 1. Remove default vertical scrollbar in IE 8/9.
|
387
|
+
* 2. Improve readability and alignment in all browsers.
|
388
|
+
*/
|
389
|
+
|
390
|
+
textarea {
|
391
|
+
overflow: auto; /* 1 */
|
392
|
+
vertical-align: top; /* 2 */
|
393
|
+
}
|
394
|
+
|
395
|
+
/* ==========================================================================
|
396
|
+
Tables
|
397
|
+
========================================================================== */
|
398
|
+
|
399
|
+
/**
|
400
|
+
* Remove most spacing between table cells.
|
401
|
+
*/
|
402
|
+
|
403
|
+
table {
|
404
|
+
border-collapse: collapse;
|
405
|
+
border-spacing: 0;
|
406
|
+
}
|