bootstrap-on-rails 0.0.2 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +16 -7
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +47 -47
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/bootstrap/affix.js +48 -32
- data/app/assets/javascripts/bootstrap/alert.js +14 -20
- data/app/assets/javascripts/bootstrap/button.js +34 -33
- data/app/assets/javascripts/bootstrap/carousel.js +60 -54
- data/app/assets/javascripts/bootstrap/collapse.js +27 -36
- data/app/assets/javascripts/bootstrap/dropdown.js +36 -39
- data/app/assets/javascripts/bootstrap/modal.js +90 -56
- data/app/assets/javascripts/bootstrap/popover.js +21 -25
- data/app/assets/javascripts/bootstrap/scrollspy.js +56 -44
- data/app/assets/javascripts/bootstrap/tab.js +17 -24
- data/app/assets/javascripts/bootstrap/tooltip.js +158 -87
- data/app/assets/javascripts/bootstrap/transition.js +24 -21
- data/app/assets/stylesheets/bootstrap/alerts.less +4 -3
- data/app/assets/stylesheets/bootstrap/badges.less +27 -23
- data/app/assets/stylesheets/bootstrap/bootstrap.less +3 -2
- data/app/assets/stylesheets/bootstrap/breadcrumbs.less +4 -1
- data/app/assets/stylesheets/bootstrap/button-groups.less +36 -49
- data/app/assets/stylesheets/bootstrap/buttons.less +16 -17
- data/app/assets/stylesheets/bootstrap/carousel.less +18 -6
- data/app/assets/stylesheets/bootstrap/close.less +0 -0
- data/app/assets/stylesheets/bootstrap/code.less +16 -1
- data/app/assets/stylesheets/bootstrap/component-animations.less +6 -4
- data/app/assets/stylesheets/bootstrap/dropdowns.less +33 -10
- data/app/assets/stylesheets/bootstrap/forms.less +236 -60
- data/app/assets/stylesheets/bootstrap/glyphicons.less +5 -9
- data/app/assets/stylesheets/bootstrap/grid.less +40 -49
- data/app/assets/stylesheets/bootstrap/input-groups.less +51 -21
- data/app/assets/stylesheets/bootstrap/jumbotron.less +15 -7
- data/app/assets/stylesheets/bootstrap/labels.less +7 -1
- data/app/assets/stylesheets/bootstrap/list-group.less +47 -4
- data/app/assets/stylesheets/bootstrap/media.less +0 -0
- data/app/assets/stylesheets/bootstrap/mixins.less +35 -854
- data/app/assets/stylesheets/bootstrap/mixins/alerts.less +14 -0
- data/app/assets/stylesheets/bootstrap/mixins/background-variant.less +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/border-radius.less +18 -0
- data/app/assets/stylesheets/bootstrap/mixins/buttons.less +50 -0
- data/app/assets/stylesheets/bootstrap/mixins/center-block.less +7 -0
- data/app/assets/stylesheets/bootstrap/mixins/clearfix.less +22 -0
- data/app/assets/stylesheets/bootstrap/mixins/forms.less +81 -0
- data/app/assets/stylesheets/bootstrap/mixins/gradients.less +59 -0
- data/app/assets/stylesheets/bootstrap/mixins/grid-framework.less +91 -0
- data/app/assets/stylesheets/bootstrap/mixins/grid.less +122 -0
- data/app/assets/stylesheets/bootstrap/mixins/hide-text.less +21 -0
- data/app/assets/stylesheets/bootstrap/mixins/image.less +34 -0
- data/app/assets/stylesheets/bootstrap/mixins/labels.less +12 -0
- data/app/assets/stylesheets/bootstrap/mixins/list-group.less +29 -0
- data/app/assets/stylesheets/bootstrap/mixins/nav-divider.less +10 -0
- data/app/assets/stylesheets/bootstrap/mixins/nav-vertical-align.less +9 -0
- data/app/assets/stylesheets/bootstrap/mixins/opacity.less +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/pagination.less +23 -0
- data/app/assets/stylesheets/bootstrap/mixins/panels.less +24 -0
- data/app/assets/stylesheets/bootstrap/mixins/progress-bar.less +10 -0
- data/app/assets/stylesheets/bootstrap/mixins/reset-filter.less +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/resize.less +6 -0
- data/app/assets/stylesheets/bootstrap/mixins/responsive-visibility.less +15 -0
- data/app/assets/stylesheets/bootstrap/mixins/size.less +10 -0
- data/app/assets/stylesheets/bootstrap/mixins/tab-focus.less +9 -0
- data/app/assets/stylesheets/bootstrap/mixins/table-row.less +28 -0
- data/app/assets/stylesheets/bootstrap/mixins/text-emphasis.less +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/text-overflow.less +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/vendor-prefixes.less +224 -0
- data/app/assets/stylesheets/bootstrap/modals.less +38 -20
- data/app/assets/stylesheets/bootstrap/navbar.less +103 -72
- data/app/assets/stylesheets/bootstrap/navs.less +3 -23
- data/app/assets/stylesheets/bootstrap/normalize.less +153 -134
- data/app/assets/stylesheets/bootstrap/pager.less +5 -5
- data/app/assets/stylesheets/bootstrap/pagination.less +6 -3
- data/app/assets/stylesheets/bootstrap/panels.less +117 -46
- data/app/assets/stylesheets/bootstrap/popovers.less +12 -12
- data/app/assets/stylesheets/bootstrap/print.less +0 -4
- data/app/assets/stylesheets/bootstrap/progress-bars.less +27 -14
- data/app/assets/stylesheets/bootstrap/responsive-embed.less +34 -0
- data/app/assets/stylesheets/bootstrap/responsive-utilities.less +109 -124
- data/app/assets/stylesheets/bootstrap/scaffolding.less +34 -3
- data/app/assets/stylesheets/bootstrap/tables.less +23 -26
- data/app/assets/stylesheets/bootstrap/theme.less +12 -1
- data/app/assets/stylesheets/bootstrap/thumbnails.less +10 -4
- data/app/assets/stylesheets/bootstrap/tooltip.less +1 -1
- data/app/assets/stylesheets/bootstrap/type.less +151 -117
- data/app/assets/stylesheets/bootstrap/utilities.less +1 -0
- data/app/assets/stylesheets/bootstrap/variables.less +399 -190
- data/app/assets/stylesheets/bootstrap/wells.less +1 -1
- data/bootstrap-on-rails.gemspec +1 -1
- data/lib/bootstrap-on-rails/version.rb +1 -1
- metadata +33 -3
@@ -10,7 +10,7 @@
|
|
10
10
|
margin-bottom: 0;
|
11
11
|
padding-left: 0; // Override default ul/ol
|
12
12
|
list-style: none;
|
13
|
-
.clearfix
|
13
|
+
&:extend(.clearfix all);
|
14
14
|
|
15
15
|
> li {
|
16
16
|
position: relative;
|
@@ -48,11 +48,6 @@
|
|
48
48
|
&:focus {
|
49
49
|
background-color: @nav-link-hover-bg;
|
50
50
|
border-color: @link-color;
|
51
|
-
|
52
|
-
.caret {
|
53
|
-
border-top-color: @link-hover-color;
|
54
|
-
border-bottom-color: @link-hover-color;
|
55
|
-
}
|
56
51
|
}
|
57
52
|
}
|
58
53
|
|
@@ -96,7 +91,7 @@
|
|
96
91
|
}
|
97
92
|
}
|
98
93
|
|
99
|
-
// Active state, and
|
94
|
+
// Active state, and its :hover to override normal :hover
|
100
95
|
&.active > a {
|
101
96
|
&,
|
102
97
|
&:hover,
|
@@ -138,11 +133,6 @@
|
|
138
133
|
&:focus {
|
139
134
|
color: @nav-pills-active-link-hover-color;
|
140
135
|
background-color: @nav-pills-active-link-hover-bg;
|
141
|
-
|
142
|
-
.caret {
|
143
|
-
border-top-color: @nav-pills-active-link-hover-color;
|
144
|
-
border-bottom-color: @nav-pills-active-link-hover-color;
|
145
|
-
}
|
146
136
|
}
|
147
137
|
}
|
148
138
|
}
|
@@ -172,7 +162,7 @@
|
|
172
162
|
|
173
163
|
> li {
|
174
164
|
float: none;
|
175
|
-
|
165
|
+
> a {
|
176
166
|
text-align: center;
|
177
167
|
margin-bottom: 5px;
|
178
168
|
}
|
@@ -243,16 +233,6 @@
|
|
243
233
|
// Dropdowns
|
244
234
|
// -------------------------
|
245
235
|
|
246
|
-
// Make dropdown carets use link color in navs
|
247
|
-
.nav .caret {
|
248
|
-
border-top-color: @link-color;
|
249
|
-
border-bottom-color: @link-color;
|
250
|
-
}
|
251
|
-
.nav a:hover .caret {
|
252
|
-
border-top-color: @link-hover-color;
|
253
|
-
border-bottom-color: @link-hover-color;
|
254
|
-
}
|
255
|
-
|
256
236
|
// Specific dropdowns
|
257
237
|
.nav-tabs .dropdown-menu {
|
258
238
|
// make dropdown border overlap tab border
|
@@ -1,11 +1,32 @@
|
|
1
|
-
/*! normalize.css
|
1
|
+
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */
|
2
|
+
|
3
|
+
//
|
4
|
+
// 1. Set default font family to sans-serif.
|
5
|
+
// 2. Prevent iOS text size adjust after orientation change, without disabling
|
6
|
+
// user zoom.
|
7
|
+
//
|
8
|
+
|
9
|
+
html {
|
10
|
+
font-family: sans-serif; // 1
|
11
|
+
-ms-text-size-adjust: 100%; // 2
|
12
|
+
-webkit-text-size-adjust: 100%; // 2
|
13
|
+
}
|
14
|
+
|
15
|
+
//
|
16
|
+
// Remove default margin.
|
17
|
+
//
|
18
|
+
|
19
|
+
body {
|
20
|
+
margin: 0;
|
21
|
+
}
|
2
22
|
|
3
|
-
// ==========================================================================
|
4
23
|
// HTML5 display definitions
|
5
24
|
// ==========================================================================
|
6
25
|
|
7
26
|
//
|
8
|
-
// Correct `block` display not defined in IE 8/9.
|
27
|
+
// Correct `block` display not defined for any HTML5 element in IE 8/9.
|
28
|
+
// Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox.
|
29
|
+
// Correct `block` display not defined for `main` in IE 11.
|
9
30
|
//
|
10
31
|
|
11
32
|
article,
|
@@ -24,13 +45,16 @@ summary {
|
|
24
45
|
}
|
25
46
|
|
26
47
|
//
|
27
|
-
// Correct `inline-block` display not defined in IE 8/9.
|
48
|
+
// 1. Correct `inline-block` display not defined in IE 8/9.
|
49
|
+
// 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
28
50
|
//
|
29
51
|
|
30
52
|
audio,
|
31
53
|
canvas,
|
54
|
+
progress,
|
32
55
|
video {
|
33
|
-
display: inline-block;
|
56
|
+
display: inline-block; // 1
|
57
|
+
vertical-align: baseline; // 2
|
34
58
|
}
|
35
59
|
|
36
60
|
//
|
@@ -44,8 +68,8 @@ audio:not([controls]) {
|
|
44
68
|
}
|
45
69
|
|
46
70
|
//
|
47
|
-
// Address `[hidden]` styling not present in IE 8/9.
|
48
|
-
// Hide the `template` element in IE, Safari, and Firefox < 22.
|
71
|
+
// Address `[hidden]` styling not present in IE 8/9/10.
|
72
|
+
// Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
49
73
|
//
|
50
74
|
|
51
75
|
[hidden],
|
@@ -53,31 +77,6 @@ template {
|
|
53
77
|
display: none;
|
54
78
|
}
|
55
79
|
|
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
80
|
// Links
|
82
81
|
// ==========================================================================
|
83
82
|
|
@@ -89,14 +88,6 @@ a {
|
|
89
88
|
background: transparent;
|
90
89
|
}
|
91
90
|
|
92
|
-
//
|
93
|
-
// Address `outline` inconsistency between Chrome and other browsers.
|
94
|
-
//
|
95
|
-
|
96
|
-
a:focus {
|
97
|
-
outline: thin dotted;
|
98
|
-
}
|
99
|
-
|
100
91
|
//
|
101
92
|
// Improve readability when focused and also mouse hovered in all browsers.
|
102
93
|
//
|
@@ -106,22 +97,11 @@ a:hover {
|
|
106
97
|
outline: 0;
|
107
98
|
}
|
108
99
|
|
109
|
-
//
|
110
|
-
// Typography
|
100
|
+
// Text-level semantics
|
111
101
|
// ==========================================================================
|
112
102
|
|
113
103
|
//
|
114
|
-
// Address
|
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.
|
104
|
+
// Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
125
105
|
//
|
126
106
|
|
127
107
|
abbr[title] {
|
@@ -129,7 +109,7 @@ abbr[title] {
|
|
129
109
|
}
|
130
110
|
|
131
111
|
//
|
132
|
-
// Address style set to `bolder` in Firefox 4+, Safari
|
112
|
+
// Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
133
113
|
//
|
134
114
|
|
135
115
|
b,
|
@@ -138,7 +118,7 @@ strong {
|
|
138
118
|
}
|
139
119
|
|
140
120
|
//
|
141
|
-
// Address styling not present in Safari
|
121
|
+
// Address styling not present in Safari and Chrome.
|
142
122
|
//
|
143
123
|
|
144
124
|
dfn {
|
@@ -146,13 +126,13 @@ dfn {
|
|
146
126
|
}
|
147
127
|
|
148
128
|
//
|
149
|
-
// Address
|
129
|
+
// Address variable `h1` font-size and margin within `section` and `article`
|
130
|
+
// contexts in Firefox 4+, Safari, and Chrome.
|
150
131
|
//
|
151
132
|
|
152
|
-
|
153
|
-
-
|
154
|
-
|
155
|
-
height: 0;
|
133
|
+
h1 {
|
134
|
+
font-size: 2em;
|
135
|
+
margin: 0.67em 0;
|
156
136
|
}
|
157
137
|
|
158
138
|
//
|
@@ -164,34 +144,6 @@ mark {
|
|
164
144
|
color: #000;
|
165
145
|
}
|
166
146
|
|
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
147
|
//
|
196
148
|
// Address inconsistent and variable font size in all browsers.
|
197
149
|
//
|
@@ -220,12 +172,11 @@ sub {
|
|
220
172
|
bottom: -0.25em;
|
221
173
|
}
|
222
174
|
|
223
|
-
// ==========================================================================
|
224
175
|
// Embedded content
|
225
176
|
// ==========================================================================
|
226
177
|
|
227
178
|
//
|
228
|
-
// Remove border when inside `a` element in IE 8/9.
|
179
|
+
// Remove border when inside `a` element in IE 8/9/10.
|
229
180
|
//
|
230
181
|
|
231
182
|
img {
|
@@ -233,79 +184,92 @@ img {
|
|
233
184
|
}
|
234
185
|
|
235
186
|
//
|
236
|
-
// Correct overflow
|
187
|
+
// Correct overflow not hidden in IE 9/10/11.
|
237
188
|
//
|
238
189
|
|
239
190
|
svg:not(:root) {
|
240
191
|
overflow: hidden;
|
241
192
|
}
|
242
193
|
|
243
|
-
//
|
244
|
-
// Figures
|
194
|
+
// Grouping content
|
245
195
|
// ==========================================================================
|
246
196
|
|
247
197
|
//
|
248
|
-
// Address margin not present in IE 8/9 and Safari
|
198
|
+
// Address margin not present in IE 8/9 and Safari.
|
249
199
|
//
|
250
200
|
|
251
201
|
figure {
|
252
|
-
margin:
|
202
|
+
margin: 1em 40px;
|
253
203
|
}
|
254
204
|
|
255
|
-
//
|
256
|
-
//
|
257
|
-
//
|
205
|
+
//
|
206
|
+
// Address differences between Firefox and other browsers.
|
207
|
+
//
|
208
|
+
|
209
|
+
hr {
|
210
|
+
-moz-box-sizing: content-box;
|
211
|
+
box-sizing: content-box;
|
212
|
+
height: 0;
|
213
|
+
}
|
258
214
|
|
259
215
|
//
|
260
|
-
//
|
216
|
+
// Contain overflow in all browsers.
|
261
217
|
//
|
262
218
|
|
263
|
-
|
264
|
-
|
265
|
-
margin: 0 2px;
|
266
|
-
padding: 0.35em 0.625em 0.75em;
|
219
|
+
pre {
|
220
|
+
overflow: auto;
|
267
221
|
}
|
268
222
|
|
269
223
|
//
|
270
|
-
//
|
271
|
-
// 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
224
|
+
// Address odd `em`-unit font size rendering in all browsers.
|
272
225
|
//
|
273
226
|
|
274
|
-
|
275
|
-
|
276
|
-
|
227
|
+
code,
|
228
|
+
kbd,
|
229
|
+
pre,
|
230
|
+
samp {
|
231
|
+
font-family: monospace, monospace;
|
232
|
+
font-size: 1em;
|
277
233
|
}
|
278
234
|
|
235
|
+
// Forms
|
236
|
+
// ==========================================================================
|
237
|
+
|
238
|
+
//
|
239
|
+
// Known limitation: by default, Chrome and Safari on OS X allow very limited
|
240
|
+
// styling of `select`, unless a `border` property is set.
|
241
|
+
//
|
242
|
+
|
279
243
|
//
|
280
|
-
// 1. Correct
|
281
|
-
//
|
282
|
-
//
|
244
|
+
// 1. Correct color not being inherited.
|
245
|
+
// Known issue: affects color of disabled elements.
|
246
|
+
// 2. Correct font properties not being inherited.
|
247
|
+
// 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
|
283
248
|
//
|
284
249
|
|
285
250
|
button,
|
286
251
|
input,
|
252
|
+
optgroup,
|
287
253
|
select,
|
288
254
|
textarea {
|
289
|
-
|
290
|
-
font
|
255
|
+
color: inherit; // 1
|
256
|
+
font: inherit; // 2
|
291
257
|
margin: 0; // 3
|
292
258
|
}
|
293
259
|
|
294
260
|
//
|
295
|
-
// Address
|
296
|
-
// the UA stylesheet.
|
261
|
+
// Address `overflow` set to `hidden` in IE 8/9/10/11.
|
297
262
|
//
|
298
263
|
|
299
|
-
button
|
300
|
-
|
301
|
-
line-height: normal;
|
264
|
+
button {
|
265
|
+
overflow: visible;
|
302
266
|
}
|
303
267
|
|
304
268
|
//
|
305
269
|
// Address inconsistent `text-transform` inheritance for `button` and `select`.
|
306
270
|
// All other form control elements do not inherit `text-transform` values.
|
307
|
-
// Correct `button` style inheritance in
|
308
|
-
// Correct `select` style inheritance in Firefox
|
271
|
+
// Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
272
|
+
// Correct `select` style inheritance in Firefox.
|
309
273
|
//
|
310
274
|
|
311
275
|
button,
|
@@ -338,6 +302,28 @@ html input[disabled] {
|
|
338
302
|
cursor: default;
|
339
303
|
}
|
340
304
|
|
305
|
+
//
|
306
|
+
// Remove inner padding and border in Firefox 4+.
|
307
|
+
//
|
308
|
+
|
309
|
+
button::-moz-focus-inner,
|
310
|
+
input::-moz-focus-inner {
|
311
|
+
border: 0;
|
312
|
+
padding: 0;
|
313
|
+
}
|
314
|
+
|
315
|
+
//
|
316
|
+
// Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
317
|
+
// the UA stylesheet.
|
318
|
+
//
|
319
|
+
|
320
|
+
input {
|
321
|
+
line-height: normal;
|
322
|
+
}
|
323
|
+
|
324
|
+
//
|
325
|
+
// It's recommended that you don't attempt to style these elements.
|
326
|
+
// Firefox's implementation doesn't respect box-sizing, padding, or width.
|
341
327
|
//
|
342
328
|
// 1. Address box sizing set to `content-box` in IE 8/9/10.
|
343
329
|
// 2. Remove excess padding in IE 8/9/10.
|
@@ -350,8 +336,19 @@ input[type="radio"] {
|
|
350
336
|
}
|
351
337
|
|
352
338
|
//
|
353
|
-
//
|
354
|
-
//
|
339
|
+
// Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
340
|
+
// `font-size` values of the `input`, it causes the cursor style of the
|
341
|
+
// decrement button to change from `default` to `text`.
|
342
|
+
//
|
343
|
+
|
344
|
+
input[type="number"]::-webkit-inner-spin-button,
|
345
|
+
input[type="number"]::-webkit-outer-spin-button {
|
346
|
+
height: auto;
|
347
|
+
}
|
348
|
+
|
349
|
+
//
|
350
|
+
// 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
351
|
+
// 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
355
352
|
// (include `-moz` to future-proof).
|
356
353
|
//
|
357
354
|
|
@@ -363,8 +360,9 @@ input[type="search"] {
|
|
363
360
|
}
|
364
361
|
|
365
362
|
//
|
366
|
-
// Remove inner padding and search cancel button in Safari
|
367
|
-
//
|
363
|
+
// Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
364
|
+
// Safari (but not Chrome) clips the cancel button when the search input has
|
365
|
+
// padding (and `textfield` appearance).
|
368
366
|
//
|
369
367
|
|
370
368
|
input[type="search"]::-webkit-search-cancel-button,
|
@@ -373,26 +371,42 @@ input[type="search"]::-webkit-search-decoration {
|
|
373
371
|
}
|
374
372
|
|
375
373
|
//
|
376
|
-
//
|
374
|
+
// Define consistent border, margin, and padding.
|
377
375
|
//
|
378
376
|
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
padding: 0;
|
377
|
+
fieldset {
|
378
|
+
border: 1px solid #c0c0c0;
|
379
|
+
margin: 0 2px;
|
380
|
+
padding: 0.35em 0.625em 0.75em;
|
383
381
|
}
|
384
382
|
|
385
383
|
//
|
386
|
-
// 1.
|
387
|
-
// 2.
|
384
|
+
// 1. Correct `color` not being inherited in IE 8/9/10/11.
|
385
|
+
// 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
386
|
+
//
|
387
|
+
|
388
|
+
legend {
|
389
|
+
border: 0; // 1
|
390
|
+
padding: 0; // 2
|
391
|
+
}
|
392
|
+
|
393
|
+
//
|
394
|
+
// Remove default vertical scrollbar in IE 8/9/10/11.
|
388
395
|
//
|
389
396
|
|
390
397
|
textarea {
|
391
|
-
overflow: auto;
|
392
|
-
|
398
|
+
overflow: auto;
|
399
|
+
}
|
400
|
+
|
401
|
+
//
|
402
|
+
// Don't inherit the `font-weight` (applied by a rule above).
|
403
|
+
// NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
404
|
+
//
|
405
|
+
|
406
|
+
optgroup {
|
407
|
+
font-weight: bold;
|
393
408
|
}
|
394
409
|
|
395
|
-
// ==========================================================================
|
396
410
|
// Tables
|
397
411
|
// ==========================================================================
|
398
412
|
|
@@ -404,3 +418,8 @@ table {
|
|
404
418
|
border-collapse: collapse;
|
405
419
|
border-spacing: 0;
|
406
420
|
}
|
421
|
+
|
422
|
+
td,
|
423
|
+
th {
|
424
|
+
padding: 0;
|
425
|
+
}
|