compass_twitter_bootstrap 2.0.1.2 → 2.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.
Files changed (108) hide show
  1. data/README.md +17 -0
  2. data/build/convert.rb +2 -12
  3. data/lib/compass_twitter_bootstrap/version.rb +1 -1
  4. data/stylesheets/_compass_twitter_bootstrap.scss +2 -2
  5. data/stylesheets/_compass_twitter_bootstrap_awesome.scss +66 -0
  6. data/stylesheets/_compass_twitter_bootstrap_responsive.scss +14 -293
  7. data/stylesheets/compass_twitter_bootstrap/_accordion.scss +6 -1
  8. data/stylesheets/compass_twitter_bootstrap/_alerts.scss +3 -15
  9. data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +5 -3
  10. data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +82 -39
  11. data/stylesheets/compass_twitter_bootstrap/_buttons.scss +38 -30
  12. data/stylesheets/compass_twitter_bootstrap/_carousel.scss +5 -5
  13. data/stylesheets/compass_twitter_bootstrap/_close.scss +13 -2
  14. data/stylesheets/compass_twitter_bootstrap/_code.scss +9 -9
  15. data/stylesheets/compass_twitter_bootstrap/_component-animations.scss +10 -8
  16. data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +62 -49
  17. data/stylesheets/compass_twitter_bootstrap/_font-awesome.scss +267 -0
  18. data/stylesheets/compass_twitter_bootstrap/_forms.scss +141 -77
  19. data/stylesheets/compass_twitter_bootstrap/_grid.scss +2 -5
  20. data/stylesheets/compass_twitter_bootstrap/_hero-unit.scss +4 -2
  21. data/stylesheets/compass_twitter_bootstrap/_labels-badges.scss +63 -0
  22. data/stylesheets/compass_twitter_bootstrap/_layouts.scss +3 -3
  23. data/stylesheets/compass_twitter_bootstrap/_mixins.scss +275 -255
  24. data/stylesheets/compass_twitter_bootstrap/_modals.scss +19 -12
  25. data/stylesheets/compass_twitter_bootstrap/_navbar.scss +146 -81
  26. data/stylesheets/compass_twitter_bootstrap/_navs.scss +77 -52
  27. data/stylesheets/compass_twitter_bootstrap/_pager.scss +8 -2
  28. data/stylesheets/compass_twitter_bootstrap/_pagination.scss +6 -5
  29. data/stylesheets/compass_twitter_bootstrap/_popovers.scss +9 -9
  30. data/stylesheets/compass_twitter_bootstrap/_progress-bars.scss +41 -19
  31. data/stylesheets/compass_twitter_bootstrap/_reset.scss +4 -4
  32. data/stylesheets/compass_twitter_bootstrap/_responsive-1200px-min.scss +26 -0
  33. data/stylesheets/compass_twitter_bootstrap/_responsive-767px-max.scss +149 -0
  34. data/stylesheets/compass_twitter_bootstrap/_responsive-768px-979px.scss +17 -0
  35. data/stylesheets/compass_twitter_bootstrap/_responsive-navbar.scss +146 -0
  36. data/stylesheets/compass_twitter_bootstrap/_responsive-utilities.scss +41 -0
  37. data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +4 -4
  38. data/stylesheets/compass_twitter_bootstrap/_sprites.scss +42 -9
  39. data/stylesheets/compass_twitter_bootstrap/_tables.scss +60 -34
  40. data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +18 -6
  41. data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +7 -7
  42. data/stylesheets/compass_twitter_bootstrap/_type.scss +28 -11
  43. data/stylesheets/compass_twitter_bootstrap/_variables.scss +107 -9
  44. data/stylesheets/compass_twitter_bootstrap/_wells.scss +13 -2
  45. data/stylesheets_sass/_compass_twitter_bootstrap.sass +2 -2
  46. data/stylesheets_sass/_compass_twitter_bootstrap_awesome.sass +70 -0
  47. data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +13 -224
  48. data/stylesheets_sass/compass_twitter_bootstrap/_accordion.sass +5 -1
  49. data/stylesheets_sass/compass_twitter_bootstrap/_alerts.sass +3 -14
  50. data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +5 -3
  51. data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +73 -36
  52. data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +39 -28
  53. data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +5 -5
  54. data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +12 -2
  55. data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +10 -9
  56. data/stylesheets_sass/compass_twitter_bootstrap/_component-animations.sass +5 -5
  57. data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +57 -47
  58. data/stylesheets_sass/compass_twitter_bootstrap/_font-awesome.sass +515 -0
  59. data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +140 -76
  60. data/stylesheets_sass/compass_twitter_bootstrap/_grid.sass +2 -5
  61. data/stylesheets_sass/compass_twitter_bootstrap/_hero-unit.sass +4 -2
  62. data/stylesheets_sass/compass_twitter_bootstrap/_labels-badges.sass +85 -0
  63. data/stylesheets_sass/compass_twitter_bootstrap/_layouts.sass +3 -3
  64. data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +277 -260
  65. data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +19 -12
  66. data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +138 -78
  67. data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +77 -51
  68. data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +8 -2
  69. data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +6 -5
  70. data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +9 -9
  71. data/stylesheets_sass/compass_twitter_bootstrap/_progress-bars.sass +44 -19
  72. data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +4 -3
  73. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-1200px-min.sass +17 -0
  74. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-767px-max.sass +115 -0
  75. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-768px-979px.sass +11 -0
  76. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-navbar.sass +115 -0
  77. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-utilities.sass +56 -0
  78. data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +4 -4
  79. data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +70 -7
  80. data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +72 -34
  81. data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +15 -5
  82. data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +7 -7
  83. data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +27 -11
  84. data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +105 -8
  85. data/stylesheets_sass/compass_twitter_bootstrap/_wells.sass +11 -2
  86. data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
  87. data/vendor/assets/fonts/fontawesome-webfont.svg +175 -0
  88. data/vendor/assets/fonts/fontawesome-webfont.svgz +0 -0
  89. data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
  90. data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
  91. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  92. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  93. data/vendor/assets/javascripts/bootstrap-alert.js +28 -32
  94. data/vendor/assets/javascripts/bootstrap-all.js +12 -0
  95. data/vendor/assets/javascripts/bootstrap-button.js +32 -34
  96. data/vendor/assets/javascripts/bootstrap-carousel.js +33 -21
  97. data/vendor/assets/javascripts/bootstrap-collapse.js +47 -26
  98. data/vendor/assets/javascripts/bootstrap-dropdown.js +18 -10
  99. data/vendor/assets/javascripts/bootstrap-modal.js +25 -17
  100. data/vendor/assets/javascripts/bootstrap-popover.js +13 -10
  101. data/vendor/assets/javascripts/bootstrap-scrollspy.js +44 -18
  102. data/vendor/assets/javascripts/bootstrap-tab.js +12 -7
  103. data/vendor/assets/javascripts/bootstrap-tooltip.js +40 -35
  104. data/vendor/assets/javascripts/bootstrap-transition.js +30 -20
  105. data/vendor/assets/javascripts/bootstrap-typeahead.js +29 -15
  106. metadata +29 -9
  107. data/stylesheets/compass_twitter_bootstrap/_labels.scss +0 -32
  108. data/stylesheets_sass/compass_twitter_bootstrap/_labels.sass +0 -42
@@ -42,13 +42,13 @@ input,
42
42
  button,
43
43
  select,
44
44
  textarea {
45
- @include font-shorthand($baseFontSize,normal,$baseLineHeight); // Set size, weight, line-height here
45
+ @include bootstrap-font-shorthand($baseFontSize,normal,$baseLineHeight); // Set size, weight, line-height here
46
46
  }
47
47
  input,
48
48
  button,
49
49
  select,
50
50
  textarea {
51
- @include font-family-sans-serif(); // And only set font-family here for those that need it (note the missing label element)
51
+ font-family: $baseFontFamily; // And only set font-family here for those that need it (note the missing label element)
52
52
  }
53
53
 
54
54
  // Identify controls by their labels
@@ -71,8 +71,9 @@ select,
71
71
  font-size: $baseFontSize;
72
72
  line-height: $baseLineHeight;
73
73
  color: $gray;
74
- border: 1px solid #ccc;
75
- @include border-radius(3px);
74
+ background-color: $inputBackground;
75
+ border: 1px solid $inputBorder;
76
+ @include bootstrap-border-radius($inputBorderRadius);
76
77
  }
77
78
  .uneditable-textarea {
78
79
  width: auto;
@@ -97,8 +98,9 @@ input[type="radio"] {
97
98
  *margin-top: 0; /* IE7 */
98
99
  line-height: normal;
99
100
  cursor: pointer;
100
- @include border-radius(0);
101
+ background-color: transparent;
101
102
  border: 0 \9; /* IE9 and down */
103
+ @include bootstrap-border-radius(0);
102
104
  }
103
105
  input[type="image"] {
104
106
  border: 0;
@@ -109,10 +111,10 @@ input[type="file"] {
109
111
  width: auto;
110
112
  padding: initial;
111
113
  line-height: initial;
112
- border: initial;
113
- background-color: $white;
114
+ background-color: $inputBackground;
114
115
  background-color: initial;
115
- @include box-shadow(none);
116
+ border: initial;
117
+ @include bootstrap-box-shadow(none);
116
118
  }
117
119
 
118
120
  // Help out input buttons
@@ -139,7 +141,7 @@ input[type="file"] {
139
141
  // Chrome on Linux and Mobile Safari need background-color
140
142
  select {
141
143
  width: 220px; // default input width + 10px of padding that doesn't get applied
142
- background-color: $white;
144
+ background-color: $inputBackground;
143
145
  }
144
146
 
145
147
  // Make multiple select elements height not fixed
@@ -150,7 +152,7 @@ select[size] {
150
152
 
151
153
  // Remove shadow from image inputs
152
154
  input[type="image"] {
153
- @include box-shadow(none);
155
+ @include bootstrap-box-shadow(none);
154
156
  }
155
157
 
156
158
  // Make textarea height behave
@@ -171,8 +173,10 @@ input[type="hidden"] {
171
173
  // Indent the labels to position radios/checkboxes as hanging
172
174
  .radio,
173
175
  .checkbox {
176
+ min-height: 18px; // clear the floating input if there is no label text
174
177
  padding-left: 18px;
175
178
  }
179
+
176
180
  .radio input[type="radio"],
177
181
  .checkbox input[type="checkbox"] {
178
182
  float: left;
@@ -206,24 +210,23 @@ input[type="hidden"] {
206
210
 
207
211
  input,
208
212
  textarea {
209
- @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
213
+ @include bootstrap-box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
210
214
  $transition: border linear .2s, box-shadow linear .2s;
211
- @include transition($transition);
215
+ @include bootstrap-transition($transition);
212
216
  }
213
217
  input:focus,
214
218
  textarea:focus {
215
219
  border-color: rgba(82,168,236,.8);
216
- $shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
217
- @include box-shadow($shadow);
218
220
  outline: 0;
219
221
  outline: thin dotted \9; /* IE6-9 */
222
+ @include bootstrap-box-shadow("inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)");
220
223
  }
221
224
  input[type="file"]:focus,
222
225
  input[type="radio"]:focus,
223
226
  input[type="checkbox"]:focus,
224
227
  select:focus {
225
- @include box-shadow(none); // override for file inputs
226
- @include tab-focus();
228
+ @include bootstrap-tab-focus();
229
+ @include bootstrap-box-shadow(none); // override for file inputs
227
230
  }
228
231
 
229
232
 
@@ -243,7 +246,12 @@ select:focus {
243
246
  input[class*="span"],
244
247
  select[class*="span"],
245
248
  textarea[class*="span"],
246
- .uneditable-input {
249
+ .uneditable-input[class*="span"],
250
+ // Redeclare since the fluid row class is more specific
251
+ .row-fluid input[class*="span"],
252
+ .row-fluid select[class*="span"],
253
+ .row-fluid textarea[class*="span"],
254
+ .row-fluid .uneditable-input[class*="span"] {
247
255
  float: none;
248
256
  margin-left: 0;
249
257
  }
@@ -253,7 +261,7 @@ textarea[class*="span"],
253
261
  // GRID SIZING FOR INPUTS
254
262
  // ----------------------
255
263
 
256
- @include inputGridSystem-generate($gridColumns, $gridColumnWidth, $gridGutterWidth);
264
+ @include bootstrap-grid-input($gridColumnWidth, $gridGutterWidth);
257
265
 
258
266
 
259
267
 
@@ -268,9 +276,16 @@ textarea[disabled],
268
276
  input[readonly],
269
277
  select[readonly],
270
278
  textarea[readonly] {
271
- background-color: #f5f5f5;
272
- border-color: #ddd;
273
279
  cursor: not-allowed;
280
+ background-color: $inputDisabledBackground;
281
+ border-color: #ddd;
282
+ }
283
+ // Explicitly reset the colors here
284
+ input[type="radio"][disabled],
285
+ input[type="checkbox"][disabled],
286
+ input[type="radio"][readonly],
287
+ input[type="checkbox"][readonly] {
288
+ background-color: transparent;
274
289
  }
275
290
 
276
291
 
@@ -281,15 +296,15 @@ textarea[readonly] {
281
296
 
282
297
  // Warning
283
298
  .control-group.warning {
284
- @include formFieldState($warningText, $warningText, $warningBackground);
299
+ @include bootstrap-formFieldState($warningText, $warningText, $warningBackground);
285
300
  }
286
301
  // Error
287
302
  .control-group.error {
288
- @include formFieldState($errorText, $errorText, $errorBackground);
303
+ @include bootstrap-formFieldState($errorText, $errorText, $errorBackground);
289
304
  }
290
305
  // Success
291
306
  .control-group.success {
292
- @include formFieldState($successText, $successText, $successBackground);
307
+ @include bootstrap-formFieldState($successText, $successText, $successBackground);
293
308
  }
294
309
 
295
310
  // HTML5 invalid states
@@ -301,7 +316,7 @@ select:focus:required:invalid {
301
316
  border-color: #ee5f5b;
302
317
  &:focus {
303
318
  border-color: darken(#ee5f5b, 10%);
304
- @include box-shadow(0 0 6px lighten(#ee5f5b, 20%));
319
+ @include bootstrap-box-shadow(0 0 6px lighten(#ee5f5b, 20%));
305
320
  }
306
321
  }
307
322
 
@@ -314,38 +329,42 @@ select:focus:required:invalid {
314
329
  padding: ($baseLineHeight - 1) 20px $baseLineHeight;
315
330
  margin-top: $baseLineHeight;
316
331
  margin-bottom: $baseLineHeight;
317
- background-color: #f5f5f5;
332
+ background-color: $formActionsBackground;
318
333
  border-top: 1px solid #ddd;
334
+ @include bootstrap-clearfix(); // Adding clearfix to allow for .pull-right button containers
319
335
  }
320
336
 
321
337
  // For text that needs to appear as an input but should not be an input
322
338
  .uneditable-input {
323
- display: block;
324
- background-color: $white;
325
- border-color: #eee;
326
- @include box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
339
+ overflow: hidden; // prevent text from wrapping, but still cut it off like an input does
340
+ white-space: nowrap;
327
341
  cursor: not-allowed;
342
+ background-color: $inputBackground;
343
+ border-color: #eee;
344
+ @include bootstrap-box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
328
345
  }
329
346
 
330
347
  // Placeholder text gets special styles; can't be bundled together though for some reason
331
- @include placeholder($grayLight);
348
+ @include bootstrap-placeholder($grayLight);
332
349
 
333
350
 
334
351
 
335
352
  // HELP TEXT
336
353
  // ---------
337
354
 
355
+ .help-block,
356
+ .help-inline {
357
+ color: $gray; // lighten the text some for contrast
358
+ }
359
+
338
360
  .help-block {
339
361
  display: block; // account for any element using help-block
340
- margin-top: 5px;
341
- margin-bottom: 0;
342
- color: $grayLight;
362
+ margin-bottom: $baseLineHeight / 2;
343
363
  }
344
364
 
345
365
  .help-inline {
346
366
  display: inline-block;
347
- @include ie7-inline-block();
348
- margin-bottom: 9px;
367
+ @include bootstrap-ie7-inline-block();
349
368
  vertical-align: middle;
350
369
  padding-left: 5px;
351
370
  }
@@ -359,12 +378,17 @@ select:focus:required:invalid {
359
378
  .input-prepend,
360
379
  .input-append {
361
380
  margin-bottom: 5px;
362
- @include clearfix(); // Clear the float to prevent wrapping
381
+ @include bootstrap-clearfix(); // Clear the float to prevent wrapping
363
382
  input,
383
+ select,
364
384
  .uneditable-input {
365
- @include border-radius(0 3px 3px 0);
385
+ position: relative; // placed here by default so that on :focus we can place the input above the .add-on for full border and box-shadow goodness
386
+ margin-bottom: 0; // prevent bottom margin from screwing up alignment in stacked forms
387
+ *margin-left: 0;
388
+ vertical-align: middle;
389
+ @include bootstrap-border-radius(0 $inputBorderRadius $inputBorderRadius 0);
390
+ // Make input on top when focused so blue border and shadow always show
366
391
  &:focus {
367
- position: relative;
368
392
  z-index: 2;
369
393
  }
370
394
  }
@@ -372,21 +396,23 @@ select:focus:required:invalid {
372
396
  border-left-color: #ccc;
373
397
  }
374
398
  .add-on {
375
- float: left;
376
- display: block;
399
+ display: inline-block;
377
400
  width: auto;
378
- min-width: 16px;
379
401
  height: $baseLineHeight;
380
- margin-right: -1px;
402
+ min-width: 16px;
381
403
  padding: 4px 5px;
382
404
  font-weight: normal;
383
405
  line-height: $baseLineHeight;
384
- color: $grayLight;
385
406
  text-align: center;
386
407
  text-shadow: 0 1px 0 $white;
387
- background-color: #f5f5f5;
408
+ vertical-align: middle;
409
+ background-color: $grayLighter;
388
410
  border: 1px solid #ccc;
389
- @include border-radius(3px 0 0 3px);
411
+ }
412
+ .add-on,
413
+ .btn {
414
+ margin-left: -1px;
415
+ @include bootstrap-border-radius(0);
390
416
  }
391
417
  .active {
392
418
  background-color: lighten($green, 30);
@@ -394,33 +420,46 @@ select:focus:required:invalid {
394
420
  }
395
421
  }
396
422
  .input-prepend {
397
- .add-on {
398
- *margin-top: 1px; /* IE6-7 */
423
+ .add-on,
424
+ .btn {
425
+ margin-right: -1px;
426
+ }
427
+ .add-on:first-child,
428
+ .btn:first-child {
429
+ @include bootstrap-border-radius($inputBorderRadius 0 0 $inputBorderRadius);
399
430
  }
400
431
  }
401
432
  .input-append {
402
433
  input,
434
+ select,
403
435
  .uneditable-input {
404
- float: left;
405
- @include border-radius(3px 0 0 3px);
436
+ @include bootstrap-border-radius($inputBorderRadius 0 0 $inputBorderRadius);
406
437
  }
407
438
  .uneditable-input {
439
+ border-right-color: #ccc;
408
440
  border-left-color: #eee;
409
- border-right-color: #ccc;
410
441
  }
411
- .add-on {
412
- margin-right: 0;
413
- margin-left: -1px;
414
- @include border-radius(0 3px 3px 0);
442
+ .add-on:last-child,
443
+ .btn:last-child {
444
+ @include bootstrap-border-radius(0 $inputBorderRadius $inputBorderRadius 0);
415
445
  }
416
- input:first-child {
417
- // In IE7, having a hasLayout container (from clearfix's zoom:1) can make the first input
418
- // inherit the sum of its ancestors' margins.
419
- *margin-left: -160px;
420
-
421
- &+.add-on {
422
- *margin-left: -21px;
423
- }
446
+ }
447
+ // Remove all border-radius for inputs with both prepend and append
448
+ .input-prepend.input-append {
449
+ input,
450
+ select,
451
+ .uneditable-input {
452
+ @include bootstrap-border-radius(0);
453
+ }
454
+ .add-on:first-child,
455
+ .btn:first-child {
456
+ margin-right: -1px;
457
+ @include bootstrap-border-radius($inputBorderRadius 0 0 $inputBorderRadius);
458
+ }
459
+ .add-on:last-child,
460
+ .btn:last-child {
461
+ margin-left: -1px;
462
+ @include bootstrap-border-radius(0 $inputBorderRadius $inputBorderRadius 0);
424
463
  }
425
464
  }
426
465
 
@@ -430,10 +469,12 @@ select:focus:required:invalid {
430
469
  // -----------
431
470
 
432
471
  .search-query {
433
- padding-left: 14px;
434
472
  padding-right: 14px;
473
+ padding-right: 4px \9;
474
+ padding-left: 14px;
475
+ padding-left: 4px \9; /* IE7-8 doesn't have border-radius, so don't indent the padding */
435
476
  margin-bottom: 0; // remove the default margin on all inputs
436
- @include border-radius(14px);
477
+ @include bootstrap-border-radius(14px);
437
478
  }
438
479
 
439
480
 
@@ -451,8 +492,11 @@ select:focus:required:invalid {
451
492
  textarea,
452
493
  select,
453
494
  .help-inline,
454
- .uneditable-input {
495
+ .uneditable-input,
496
+ .input-prepend,
497
+ .input-append {
455
498
  display: inline-block;
499
+ @include bootstrap-ie7-inline-block();
456
500
  margin-bottom: 0;
457
501
  }
458
502
  // Re-hide hidden elements due to specifity
@@ -461,28 +505,35 @@ select:focus:required:invalid {
461
505
  }
462
506
  }
463
507
  .form-search label,
464
- .form-inline label,
508
+ .form-inline label {
509
+ display: inline-block;
510
+ }
511
+ // Remove margin for input-prepend/-append
465
512
  .form-search .input-append,
466
513
  .form-inline .input-append,
467
514
  .form-search .input-prepend,
468
515
  .form-inline .input-prepend {
469
- display: inline-block;
470
- }
471
- // Make the prepend and append add-on vertical-align: middle;
472
- .form-search .input-append .add-on,
473
- .form-inline .input-prepend .add-on,
474
- .form-search .input-append .add-on,
475
- .form-inline .input-prepend .add-on {
476
- vertical-align: middle;
516
+ margin-bottom: 0;
477
517
  }
478
- // Inline checkbox/radio labels
518
+ // Inline checkbox/radio labels (remove padding on left)
479
519
  .form-search .radio,
480
- .form-inline .radio,
481
520
  .form-search .checkbox,
521
+ .form-inline .radio,
482
522
  .form-inline .checkbox {
523
+ padding-left: 0;
483
524
  margin-bottom: 0;
484
525
  vertical-align: middle;
485
526
  }
527
+ // Remove float and margin, set to inline-block
528
+ .form-search .radio input[type="radio"],
529
+ .form-search .checkbox input[type="checkbox"],
530
+ .form-inline .radio input[type="radio"],
531
+ .form-inline .checkbox input[type="checkbox"] {
532
+ float: left;
533
+ margin-right: 3px;
534
+ margin-left: 0;
535
+ }
536
+
486
537
 
487
538
  // Margin to space out fieldsets
488
539
  .control-group {
@@ -502,7 +553,7 @@ legend + .control-group {
502
553
  // Increase spacing between groups
503
554
  .control-group {
504
555
  margin-bottom: $baseLineHeight;
505
- @include clearfix();
556
+ @include bootstrap-clearfix();
506
557
  }
507
558
  // Float the labels left
508
559
  .control-label {
@@ -513,7 +564,20 @@ legend + .control-group {
513
564
  }
514
565
  // Move over all input controls and content
515
566
  .controls {
567
+ // Super jank IE7 fix to ensure the inputs in .input-append and input-prepend
568
+ // don't inherit the margin of the parent, in this case .controls
569
+ *display: inline-block;
570
+ *padding-left: 20px;
516
571
  margin-left: 160px;
572
+ *margin-left: 0;
573
+ &:first-child {
574
+ *padding-left: 160px;
575
+ }
576
+ }
577
+ // Remove bottom margin on block level help text since that's accounted for on .control-group
578
+ .help-block {
579
+ margin-top: $baseLineHeight / 2;
580
+ margin-bottom: 0;
517
581
  }
518
582
  // Move over buttons in .form-actions to align with .controls
519
583
  .form-actions {
@@ -1,8 +1,5 @@
1
- // GRID SYSTEM
2
- // -----------
3
-
4
1
  // Fixed (940px)
5
- @include gridSystem-generate($gridColumns, $gridColumnWidth, $gridGutterWidth);
2
+ @include bootstrap-grid-core($gridColumnWidth, $gridGutterWidth);
6
3
 
7
4
  // Fluid (940px)
8
- @include fluidGridSystem-generate($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth);
5
+ @include bootstrap-grid-fluid($fluidGridColumnWidth, $fluidGridGutterWidth);