bootstrapped-rails 2.0.7.1 → 2.0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/lib/bootstrapped-rails/version.rb +1 -1
  2. data/readme.md +1 -9
  3. data/vendor/assets/stylesheets/{bootstrapped/responsive.scss → _bootstrap-responsive.scss} +28 -33
  4. data/vendor/assets/stylesheets/_bootstrap.scss +63 -0
  5. data/vendor/assets/stylesheets/bootstrapped-responsive.css.scss +1 -0
  6. data/vendor/assets/stylesheets/{bootstrapped/accordion.scss → bootstrapped-sass/_accordion.scss} +1 -1
  7. data/vendor/assets/stylesheets/{bootstrapped/alerts.scss → bootstrapped-sass/_alerts.scss} +8 -16
  8. data/vendor/assets/stylesheets/{bootstrapped/breadcrumbs.scss → bootstrapped-sass/_breadcrumbs.scss} +2 -2
  9. data/vendor/assets/stylesheets/{bootstrapped/button-groups.scss → bootstrapped-sass/_button-groups.scss} +8 -19
  10. data/vendor/assets/stylesheets/bootstrapped-sass/_buttons.scss +163 -0
  11. data/vendor/assets/stylesheets/{bootstrapped/carousel.scss → bootstrapped-sass/_carousel.scss} +7 -12
  12. data/vendor/assets/stylesheets/{bootstrapped/close.scss → bootstrapped-sass/_close.scss} +2 -2
  13. data/vendor/assets/stylesheets/{bootstrapped/code.scss → bootstrapped-sass/_code.scss} +16 -4
  14. data/vendor/assets/stylesheets/{bootstrapped/component-animations.scss → bootstrapped-sass/_component-animations.scss} +1 -1
  15. data/vendor/assets/stylesheets/{bootstrapped/dropdowns.scss → bootstrapped-sass/_dropdowns.scss} +6 -11
  16. data/vendor/assets/stylesheets/{bootstrapped/forms.scss → bootstrapped-sass/_forms.scss} +71 -124
  17. data/vendor/assets/stylesheets/bootstrapped-sass/_grid.scss +8 -0
  18. data/vendor/assets/stylesheets/{bootstrapped/hero-unit.scss → bootstrapped-sass/_hero-unit.scss} +1 -1
  19. data/vendor/assets/stylesheets/bootstrapped-sass/_labels.scss +32 -0
  20. data/vendor/assets/stylesheets/{bootstrapped/layouts.scss → bootstrapped-sass/_layouts.scss} +0 -0
  21. data/vendor/assets/stylesheets/{bootstrapped/mixins.scss → bootstrapped-sass/_mixins.scss} +109 -90
  22. data/vendor/assets/stylesheets/{bootstrapped/modals.scss → bootstrapped-sass/_modals.scss} +15 -4
  23. data/vendor/assets/stylesheets/{bootstrapped/navbar.scss → bootstrapped-sass/_navbar.scss} +32 -42
  24. data/vendor/assets/stylesheets/{bootstrapped/navs.scss → bootstrapped-sass/_navs.scss} +42 -60
  25. data/vendor/assets/stylesheets/{bootstrapped/pager.scss → bootstrapped-sass/_pager.scss} +1 -1
  26. data/vendor/assets/stylesheets/{bootstrapped/pagination.scss → bootstrapped-sass/_pagination.scss} +5 -7
  27. data/vendor/assets/stylesheets/{bootstrapped/popovers.scss → bootstrapped-sass/_popovers.scss} +5 -5
  28. data/vendor/assets/stylesheets/{bootstrapped/progress-bars.scss → bootstrapped-sass/_progress-bars.scss} +1 -1
  29. data/vendor/assets/stylesheets/{bootstrapped/reset.scss → bootstrapped-sass/_reset.scss} +11 -32
  30. data/vendor/assets/stylesheets/{bootstrapped/scaffolding.scss → bootstrapped-sass/_scaffolding.scss} +1 -1
  31. data/vendor/assets/stylesheets/{bootstrapped/sprites.scss → bootstrapped-sass/_sprites.scss} +0 -0
  32. data/vendor/assets/stylesheets/{bootstrapped/tables.scss → bootstrapped-sass/_tables.scss} +26 -30
  33. data/vendor/assets/stylesheets/{bootstrapped/thumbnails.scss → bootstrapped-sass/_thumbnails.scss} +3 -3
  34. data/vendor/assets/stylesheets/{bootstrapped/tooltip.scss → bootstrapped-sass/_tooltip.scss} +5 -5
  35. data/vendor/assets/stylesheets/{bootstrapped/type.scss → bootstrapped-sass/_type.scss} +7 -15
  36. data/vendor/assets/stylesheets/{bootstrapped/utilities.scss → bootstrapped-sass/_utilities.scss} +1 -1
  37. data/vendor/assets/stylesheets/bootstrapped-sass/_variables.scss +103 -0
  38. data/vendor/assets/stylesheets/{bootstrapped/wells.scss → bootstrapped-sass/_wells.scss} +1 -1
  39. data/vendor/assets/stylesheets/{bootstrapped → bootstrapped-sass}/fontawesome-webfont.eot +0 -0
  40. data/vendor/assets/stylesheets/{bootstrapped → bootstrapped-sass}/fontawesome-webfont.svg +0 -0
  41. data/vendor/assets/stylesheets/{bootstrapped → bootstrapped-sass}/fontawesome-webfont.svgz +0 -0
  42. data/vendor/assets/stylesheets/{bootstrapped → bootstrapped-sass}/fontawesome-webfont.ttf +0 -0
  43. data/vendor/assets/stylesheets/{bootstrapped → bootstrapped-sass}/fontawesome-webfont.woff +0 -0
  44. data/vendor/assets/stylesheets/bootstrapped.css.scss +1 -0
  45. data/vendor/assets/stylesheets/bootstrapped.css.scss.css +1 -0
  46. data/vendor/assets/stylesheets/custom_partials/transition.scss +1 -1
  47. data/vendor/assets/stylesheets/fontawesome-webfont.eot +0 -0
  48. data/vendor/assets/stylesheets/fontawesome-webfont.svg +175 -0
  49. data/vendor/assets/stylesheets/fontawesome-webfont.svgz +0 -0
  50. data/vendor/assets/stylesheets/fontawesome-webfont.ttf +0 -0
  51. data/vendor/assets/stylesheets/fontawesome-webfont.woff +0 -0
  52. metadata +56 -55
  53. data/vendor/assets/stylesheets/bootstrap-xtra/mixins.scss +0 -19
  54. data/vendor/assets/stylesheets/bootstrap-xtra/patterns_xtra.scss +0 -178
  55. data/vendor/assets/stylesheets/bootstrap-xtra/type_xtra.css +0 -12
  56. data/vendor/assets/stylesheets/bootstrap-xtra/variables_xtra.scss +0 -13
  57. data/vendor/assets/stylesheets/bootstrap-xtra/xtra.scss +0 -24
  58. data/vendor/assets/stylesheets/bootstrapped.css +0 -4
  59. data/vendor/assets/stylesheets/bootstrapped/bootstrap.scss +0 -62
  60. data/vendor/assets/stylesheets/bootstrapped/buttons.scss +0 -189
  61. data/vendor/assets/stylesheets/bootstrapped/grid.scss +0 -8
  62. data/vendor/assets/stylesheets/bootstrapped/labels.scss +0 -16
  63. data/vendor/assets/stylesheets/bootstrapped/variables.scss +0 -99
@@ -27,16 +27,13 @@
27
27
  line-height: 1;
28
28
  }
29
29
 
30
- .active,
31
- .next,
32
- .prev { display: block; }
30
+ .active, .next, .prev { display: block; }
33
31
 
34
32
  .active {
35
33
  left: 0;
36
34
  }
37
35
 
38
- .next,
39
- .prev {
36
+ .next, .prev {
40
37
  position: absolute;
41
38
  top: 0;
42
39
  width: 100%;
@@ -48,8 +45,7 @@
48
45
  .prev {
49
46
  left: -100%;
50
47
  }
51
- .next.left,
52
- .prev.right {
48
+ .next.left, .prev.right {
53
49
  left: 0;
54
50
  }
55
51
 
@@ -80,14 +76,14 @@
80
76
  background: $grayDarker;
81
77
  border: 3px solid $white;
82
78
  @include border-radius(23px);
83
- @include opacity(50);
79
+ @include opacity(0.5);
84
80
 
85
81
  // we can't have this transition here
86
82
  // because webkit cancels the carousel
87
83
  // animation if you trip this while
88
84
  // in the middle of another animation
89
85
  // ;_;
90
- // .transition(opacity .2s linear);
86
+ // @include transition(opacity .2s linear);
91
87
 
92
88
  // Reposition the right one
93
89
  &.right {
@@ -99,7 +95,7 @@
99
95
  &:hover {
100
96
  color: $white;
101
97
  text-decoration: none;
102
- @include opacity(90);
98
+ @include opacity(0.9);
103
99
  }
104
100
  }
105
101
 
@@ -115,7 +111,6 @@
115
111
  background: $grayDark;
116
112
  background: rgba(0,0,0,.75);
117
113
  }
118
- .carousel-caption h4,
119
- .carousel-caption p {
114
+ .carousel-caption h4, .carousel-caption p {
120
115
  color: $white;
121
116
  }
@@ -8,11 +8,11 @@
8
8
  line-height: $baseLineHeight;
9
9
  color: $black;
10
10
  text-shadow: 0 1px 0 rgba(255,255,255,1);
11
- @include opacity(20);
11
+ @include opacity(0.2);
12
12
  &:hover {
13
13
  color: $black;
14
14
  text-decoration: none;
15
- @include opacity(40);
15
+ @include opacity(0.4);
16
16
  cursor: pointer;
17
17
  }
18
18
  }
@@ -1,22 +1,25 @@
1
- // Code.less
1
+ // Code.css.scss
2
2
  // Code typography styles for the <code> and <pre> elements
3
3
  // --------------------------------------------------------
4
4
 
5
5
  // Inline and block code styles
6
- code,
7
- pre {
6
+ code, pre {
8
7
  padding: 0 3px 2px;
9
- @include font-family-monospace;
8
+ @include font-family-monospace();
10
9
  font-size: $baseFontSize - 1;
11
10
  color: $grayDark;
12
11
  @include border-radius(3px);
13
12
  }
13
+
14
+ // Inline code
14
15
  code {
15
16
  padding: 3px 4px;
16
17
  color: #d14;
17
18
  background-color: #f7f7f9;
18
19
  border: 1px solid #e1e1e8;
19
20
  }
21
+
22
+ // Blocks of code
20
23
  pre {
21
24
  display: block;
22
25
  padding: ($baseLineHeight - 1) / 2;
@@ -30,6 +33,7 @@ pre {
30
33
  white-space: pre;
31
34
  white-space: pre-wrap;
32
35
  word-break: break-all;
36
+ word-wrap: break-word;
33
37
 
34
38
  // Make prettyprint styles more spaced out for readability
35
39
  &.prettyprint {
@@ -39,6 +43,14 @@ pre {
39
43
  // Account for some code outputs that place code tags in pre tags
40
44
  code {
41
45
  padding: 0;
46
+ color: inherit;
42
47
  background-color: transparent;
48
+ border: 0;
43
49
  }
44
50
  }
51
+
52
+ // Enable scrollable blocks of code
53
+ .pre-scrollable {
54
+ max-height: 340px;
55
+ overflow-y: scroll;
56
+ }
@@ -15,4 +15,4 @@
15
15
  overflow:hidden;
16
16
  height: 0;
17
17
  &.in { height: auto; }
18
- }
18
+ }
@@ -9,8 +9,7 @@
9
9
  // The caret makes the toggle a bit too tall in IE7
10
10
  *margin-bottom: -3px;
11
11
  }
12
- .dropdown-toggle:active,
13
- .open .dropdown-toggle {
12
+ .dropdown-toggle:active, .open .dropdown-toggle {
14
13
  outline: 0;
15
14
  }
16
15
  // Dropdown arrow/caret
@@ -26,16 +25,15 @@
26
25
  border-left: 4px solid transparent;
27
26
  border-right: 4px solid transparent;
28
27
  border-top: 4px solid $black;
29
- @include opacity(30);
28
+ @include opacity(0.3);
30
29
  content: "\2193";
31
30
  }
32
31
  .dropdown .caret {
33
32
  margin-top: 8px;
34
33
  margin-left: 2px;
35
34
  }
36
- .dropdown:hover .caret,
37
- .open.dropdown .caret {
38
- @include opacity(100);
35
+ .dropdown:hover .caret, .open.dropdown .caret {
36
+ @include opacity(1);
39
37
  }
40
38
  // The dropdown menu (ul)
41
39
  .dropdown-menu {
@@ -46,7 +44,6 @@
46
44
  float: left;
47
45
  display: none; // none by default, but block on "open" of the menu
48
46
  min-width: 160px;
49
- max-width: 220px;
50
47
  _width: 160px;
51
48
  padding: 4px 0;
52
49
  margin: 0; // override default ul
@@ -93,16 +90,14 @@
93
90
  padding: 3px 15px;
94
91
  clear: both;
95
92
  font-weight: normal;
96
- line-height: 18px;
93
+ line-height: $baseLineHeight;
97
94
  color: $gray;
98
95
  white-space: nowrap;
99
96
  }
100
97
  }
101
98
 
102
99
  // Hover state
103
- .dropdown-menu li > a:hover,
104
- .dropdown-menu .active > a,
105
- .dropdown-menu .active > a:hover {
100
+ .dropdown-menu li > a:hover, .dropdown-menu .active > a, .dropdown-menu .active > a:hover {
106
101
  color: $white;
107
102
  text-decoration: none;
108
103
  background-color: $linkColor;
@@ -28,15 +28,21 @@ legend {
28
28
  color: $grayDark;
29
29
  border: 0;
30
30
  border-bottom: 1px solid #eee;
31
+
32
+ // Small
33
+ small {
34
+ font-size: $baseLineHeight * .75;
35
+ color: $grayLight;
36
+ }
31
37
  }
32
38
 
33
39
  // Set font for forms
34
- label,
35
- input,
36
- button,
37
- select,
38
- textarea {
39
- @include font-sans-serif($baseFontSize,normal,$baseLineHeight);
40
+ label, input, button, select, textarea {
41
+ @include font-shorthand($baseFontSize, normal, $baseLineHeight); // Set size, weight, line-height here
42
+ }
43
+
44
+ input, button, select, textarea {
45
+ @include font-family-sans-serif(); // And only set font-family here for those that need it (note the missing label element)
40
46
  }
41
47
 
42
48
  // Identify controls by their labels
@@ -47,10 +53,7 @@ label {
47
53
  }
48
54
 
49
55
  // Inputs, Textareas, Selects
50
- input,
51
- textarea,
52
- select,
53
- .uneditable-input {
56
+ input, textarea, select, .uneditable-input {
54
57
  display: inline-block;
55
58
  width: 210px;
56
59
  height: $baseLineHeight;
@@ -68,29 +71,29 @@ select,
68
71
  }
69
72
 
70
73
  // Inputs within a label
71
- label input,
72
- label textarea,
73
- label select {
74
+ label input, label textarea, label select {
74
75
  display: block;
75
76
  }
76
77
 
77
78
  // Mini reset for unique input types
78
- input[type="image"],
79
- input[type="checkbox"],
80
- input[type="radio"] {
79
+ input[type="image"], input[type="checkbox"], input[type="radio"] {
81
80
  width: auto;
82
81
  height: auto;
83
82
  padding: 0;
84
83
  margin: 3px 0;
85
84
  *margin-top: 0; /* IE7 */
86
85
  line-height: normal;
87
- border: 0;
88
86
  cursor: pointer;
89
87
  @include border-radius(0);
88
+ border: 0 \9; /* IE9 and down */
89
+ }
90
+ input[type="image"] {
91
+ border: 0;
90
92
  }
91
93
 
92
94
  // Reset the file input to browser defaults
93
95
  input[type="file"] {
96
+ width: auto;
94
97
  padding: initial;
95
98
  line-height: initial;
96
99
  border: initial;
@@ -100,21 +103,23 @@ input[type="file"] {
100
103
  }
101
104
 
102
105
  // Help out input buttons
103
- input[type="button"],
104
- input[type="reset"],
105
- input[type="submit"] {
106
+ input[type="button"], input[type="reset"], input[type="submit"] {
106
107
  width: auto;
107
108
  height: auto;
108
109
  }
109
110
 
110
111
  // Set the height of select and file controls to match text inputs
111
- select,
112
- input[type="file"] {
112
+ select, input[type="file"] {
113
113
  height: 28px; /* In IE7, the height of the select element cannot be changed by height, only font-size */
114
114
  *margin-top: 4px; /* For IE7, add top margin to align select with labels */
115
115
  line-height: 28px;
116
116
  }
117
117
 
118
+ // Reset line-height for IE
119
+ input[type="file"] {
120
+ line-height: 18px \9;
121
+ }
122
+
118
123
  // Chrome on Linux and Mobile Safari need background-color
119
124
  select {
120
125
  width: 220px; // default input width + 10px of padding that doesn't get applied
@@ -122,8 +127,7 @@ select {
122
127
  }
123
128
 
124
129
  // Make multiple select elements height not fixed
125
- select[multiple],
126
- select[size] {
130
+ select[multiple], select[size] {
127
131
  height: auto;
128
132
  }
129
133
 
@@ -148,61 +152,49 @@ input[type="hidden"] {
148
152
  // -------------------
149
153
 
150
154
  // Indent the labels to position radios/checkboxes as hanging
151
- .radio,
152
- .checkbox {
155
+ .radio, .checkbox {
153
156
  padding-left: 18px;
154
157
  }
155
- .radio input[type="radio"],
156
- .checkbox input[type="checkbox"] {
158
+ .radio input[type="radio"], .checkbox input[type="checkbox"] {
157
159
  float: left;
158
160
  margin-left: -18px;
159
161
  }
160
162
 
161
163
  // Move the options list down to align with labels
162
- .controls > .radio:first-child,
163
- .controls > .checkbox:first-child {
164
+ .controls > .radio:first-child, .controls > .checkbox:first-child {
164
165
  padding-top: 5px; // has to be padding because margin collaspes
165
166
  }
166
167
 
167
168
  // Radios and checkboxes on same line
168
- .radio.inline,
169
- .checkbox.inline {
169
+ // TODO v3: Convert .inline to .control-inline
170
+ .radio.inline, .checkbox.inline {
170
171
  display: inline-block;
172
+ padding-top: 5px;
171
173
  margin-bottom: 0;
172
174
  vertical-align: middle;
173
175
  }
174
- .radio.inline + .radio.inline,
175
- .checkbox.inline + .checkbox.inline {
176
+ .radio.inline + .radio.inline, .checkbox.inline + .checkbox.inline {
176
177
  margin-left: 10px; // space out consecutive inline controls
177
178
  }
178
- // But don't forget to remove their padding on first-child
179
- .controls > .radio.inline:first-child,
180
- .controls > .checkbox.inline:first-child {
181
- padding-top: 0;
182
- }
183
179
 
184
180
 
185
181
 
186
182
  // FOCUS STATE
187
183
  // -----------
188
184
 
189
- input,
190
- textarea {
185
+ input, textarea {
191
186
  @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
192
187
  $transition: border linear .2s, box-shadow linear .2s;
193
188
  @include transition($transition);
194
189
  }
195
- input:focus,
196
- textarea:focus {
190
+ input:focus, textarea:focus {
197
191
  border-color: rgba(82,168,236,.8);
198
192
  $shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
199
193
  @include box-shadow($shadow);
200
194
  outline: 0;
201
- outline: thin dotted \9; /* IE6-8 */
195
+ outline: thin dotted \9; /* IE6-9 */
202
196
  }
203
- input[type="file"]:focus,
204
- input[type="checkbox"]:focus,
205
- select:focus {
197
+ input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus, select:focus {
206
198
  @include box-shadow(none); // override for file inputs
207
199
  @include tab-focus();
208
200
  }
@@ -221,10 +213,7 @@ select:focus {
221
213
  .input-xxlarge { width: 530px; }
222
214
 
223
215
  // Grid style input sizes
224
- input[class*="span"],
225
- select[class*="span"],
226
- textarea[class*="span"],
227
- .uneditable-input {
216
+ input[class*="span"], select[class*="span"], textarea[class*="span"], .uneditable-input {
228
217
  float: none;
229
218
  margin-left: 0;
230
219
  }
@@ -234,8 +223,7 @@ textarea[class*="span"],
234
223
  // GRID SIZING FOR INPUTS
235
224
  // ----------------------
236
225
 
237
- @include input-grid-system-generate($gridColumns, $gridColumnWidth, $gridGutterWidth);
238
-
226
+ @include inputGridSystemGenerate($gridColumns, $gridColumnWidth, $gridGutterWidth);
239
227
 
240
228
 
241
229
 
@@ -244,12 +232,7 @@ textarea[class*="span"],
244
232
  // --------------
245
233
 
246
234
  // Disabled and read-only inputs
247
- input[disabled],
248
- select[disabled],
249
- textarea[disabled],
250
- input[readonly],
251
- select[readonly],
252
- textarea[readonly] {
235
+ input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly] {
253
236
  background-color: #f5f5f5;
254
237
  border-color: #ddd;
255
238
  cursor: not-allowed;
@@ -261,51 +244,22 @@ textarea[readonly] {
261
244
  // FORM FIELD FEEDBACK STATES
262
245
  // --------------------------
263
246
 
264
- // Mixin for form field states
265
- @mixin form-field-state($textColor: #555, $borderColor: #ccc, $backgroundColor: #f5f5f5) {
266
- // Set the text color
267
- > label,
268
- .help-block,
269
- .help-inline {
270
- color: $textColor;
271
- }
272
- // Style inputs accordingly
273
- input,
274
- select,
275
- textarea {
276
- color: $textColor;
277
- border-color: $borderColor;
278
- &:focus {
279
- border-color: darken($borderColor, 10%);
280
- @include box-shadow(0 0 6px lighten($borderColor, 20%));
281
- }
282
- }
283
- // Give a small background color for input-prepend/-append
284
- .input-prepend .add-on,
285
- .input-append .add-on {
286
- color: $textColor;
287
- background-color: $backgroundColor;
288
- border-color: $textColor;
289
- }
290
- }
291
247
  // Warning
292
248
  .control-group.warning {
293
- @include form-field-state($warningText, $warningText, $warningBackground);
249
+ @include formFieldState($warningText, $warningText, $warningBackground);
294
250
  }
295
251
  // Error
296
252
  .control-group.error {
297
- @include form-field-state($errorText, $errorText, $errorBackground);
253
+ @include formFieldState($errorText, $errorText, $errorBackground);
298
254
  }
299
255
  // Success
300
256
  .control-group.success {
301
- @include form-field-state($successText, $successText, $successBackground);
257
+ @include formFieldState($successText, $successText, $successBackground);
302
258
  }
303
259
 
304
260
  // HTML5 invalid states
305
261
  // Shares styles with the .control-group.error above
306
- input:focus:required:invalid,
307
- textarea:focus:required:invalid,
308
- select:focus:required:invalid {
262
+ input:focus:required:invalid, textarea:focus:required:invalid, select:focus:required:invalid {
309
263
  color: #b94a48;
310
264
  border-color: #ee5f5b;
311
265
  &:focus {
@@ -345,6 +299,7 @@ select:focus:required:invalid {
345
299
  // ---------
346
300
 
347
301
  .help-block {
302
+ display: block; // account for any element using help-block
348
303
  margin-top: 5px;
349
304
  margin-bottom: 0;
350
305
  color: $grayLight;
@@ -364,12 +319,10 @@ select:focus:required:invalid {
364
319
  // ------------
365
320
 
366
321
  // Allow us to put symbols and text within the input field for a cleaner look
367
- .input-prepend,
368
- .input-append {
322
+ .input-prepend, .input-append {
369
323
  margin-bottom: 5px;
370
324
  @include clearfix(); // Clear the float to prevent wrapping
371
- input,
372
- .uneditable-input {
325
+ input, .uneditable-input {
373
326
  @include border-radius(0 3px 3px 0);
374
327
  &:focus {
375
328
  position: relative;
@@ -377,7 +330,8 @@ select:focus:required:invalid {
377
330
  }
378
331
  }
379
332
  .uneditable-input {
380
- border-left-color: #ccc;
333
+ border-left-color: #eee;
334
+ border-right-color: #ccc;
381
335
  }
382
336
  .add-on {
383
337
  float: left;
@@ -407,13 +361,12 @@ select:focus:required:invalid {
407
361
  }
408
362
  }
409
363
  .input-append {
410
- input,
411
- .uneditable-input {
364
+ input, .uneditable-input {
412
365
  float: left;
413
366
  @include border-radius(3px 0 0 3px);
414
367
  }
415
368
  .uneditable-input {
416
- border-right-color: #ccc;
369
+ border-right-color: #ccc;
417
370
  }
418
371
  .add-on {
419
372
  margin-right: 0;
@@ -451,31 +404,24 @@ select:focus:required:invalid {
451
404
  // Common properties
452
405
  // -----------------
453
406
 
454
- .form-search,
455
- .form-inline,
456
- .form-horizontal {
457
- input,
458
- textarea,
459
- select,
460
- .help-inline,
461
- .uneditable-input {
407
+ .form-search, .form-inline, .form-horizontal {
408
+ input, textarea, select, .help-inline, .uneditable-input {
462
409
  display: inline-block;
463
410
  margin-bottom: 0;
464
411
  }
412
+ // Re-hide elemnts due to specifity
413
+ .hide { display: none; }
465
414
  }
466
- .form-search label,
467
- .form-inline label,
468
- .form-search .input-append,
469
- .form-inline .input-append,
470
- .form-search .input-prepend,
471
- .form-inline .input-prepend {
415
+ .form-search label, .form-inline label, .form-search .input-append, .form-inline .input-append, .form-search .input-prepend, .form-inline .input-prepend {
472
416
  display: inline-block;
473
417
  }
474
418
  // Make the prepend and append add-on vertical-align: middle;
475
- .form-search .input-append .add-on,
476
- .form-inline .input-prepend .add-on,
477
- .form-search .input-append .add-on,
478
- .form-inline .input-prepend .add-on {
419
+ .form-search .input-append .add-on, .form-inline .input-prepend .add-on, .form-search .input-append .add-on, .form-inline .input-prepend .add-on {
420
+ vertical-align: middle;
421
+ }
422
+ // Inline checkbox/radio labels
423
+ .form-search .radio, .form-inline .radio, .form-search .checkbox, .form-inline .checkbox {
424
+ margin-bottom: 0;
479
425
  vertical-align: middle;
480
426
  }
481
427
 
@@ -484,22 +430,23 @@ select:focus:required:invalid {
484
430
  margin-bottom: $baseLineHeight / 2;
485
431
  }
486
432
 
433
+ // Legend collapses margin, so next elements is responsible for spacing
434
+ legend + .control-group {
435
+ margin-top: $baseLineHeight;
436
+ -webkit-margin-top-collapse: separate;
437
+ }
438
+
487
439
  // Horizontal-specific styles
488
440
  // --------------------------
489
441
 
490
442
  .form-horizontal {
491
- // Legend collapses margin, so we're relegated to padding
492
- legend + .control-group {
493
- margin-top: $baseLineHeight;
494
- -webkit-margin-top-collapse: separate;
495
- }
496
443
  // Increase spacing between groups
497
444
  .control-group {
498
445
  margin-bottom: $baseLineHeight;
499
446
  @include clearfix();
500
447
  }
501
448
  // Float the labels left
502
- .control-group > label {
449
+ .control-label {
503
450
  float: left;
504
451
  width: 140px;
505
452
  padding-top: 5px;