anjlab-bootstrap-rails 3.0.2.0 → 3.0.3.0

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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -6
  3. data/Rakefile +6 -6
  4. data/app/assets/javascripts/twitter/bootstrap/affix.js +1 -1
  5. data/app/assets/javascripts/twitter/bootstrap/alert.js +1 -1
  6. data/app/assets/javascripts/twitter/bootstrap/button.js +11 -5
  7. data/app/assets/javascripts/twitter/bootstrap/carousel.js +5 -5
  8. data/app/assets/javascripts/twitter/bootstrap/collapse.js +1 -1
  9. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +5 -5
  10. data/app/assets/javascripts/twitter/bootstrap/modal.js +1 -1
  11. data/app/assets/javascripts/twitter/bootstrap/popover.js +1 -1
  12. data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +2 -2
  13. data/app/assets/javascripts/twitter/bootstrap/tab.js +1 -1
  14. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +1 -1
  15. data/app/assets/javascripts/twitter/bootstrap/transition.js +1 -1
  16. data/app/assets/stylesheets/twitter/bootstrap/_badges.scss +6 -6
  17. data/app/assets/stylesheets/twitter/bootstrap/_button-groups.scss +7 -33
  18. data/app/assets/stylesheets/twitter/bootstrap/_buttons.scss +1 -3
  19. data/app/assets/stylesheets/twitter/bootstrap/_carousel.scss +1 -0
  20. data/app/assets/stylesheets/twitter/bootstrap/_component-animations.scss +1 -1
  21. data/app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +3 -8
  22. data/app/assets/stylesheets/twitter/bootstrap/_forms.scss +11 -0
  23. data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +12 -26
  24. data/app/assets/stylesheets/twitter/bootstrap/_input-groups.scss +1 -1
  25. data/app/assets/stylesheets/twitter/bootstrap/_jumbotron.scss +8 -2
  26. data/app/assets/stylesheets/twitter/bootstrap/_labels.scss +6 -0
  27. data/app/assets/stylesheets/twitter/bootstrap/_mixins.scss +32 -45
  28. data/app/assets/stylesheets/twitter/bootstrap/_modals.scss +2 -5
  29. data/app/assets/stylesheets/twitter/bootstrap/_navbar.scss +41 -53
  30. data/app/assets/stylesheets/twitter/bootstrap/_navs.scss +0 -20
  31. data/app/assets/stylesheets/twitter/bootstrap/_panels.scss +11 -1
  32. data/app/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +0 -12
  33. data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +17 -22
  34. data/app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +9 -3
  35. data/app/assets/stylesheets/twitter/bootstrap/_type.scss +54 -52
  36. data/app/assets/stylesheets/twitter/bootstrap/_variables.scss +16 -11
  37. data/bootstrap-rails.gemspec +1 -1
  38. data/lib/bootstrap-rails/version.rb +1 -1
  39. metadata +3 -4
@@ -304,6 +304,11 @@ input[type="checkbox"],
304
304
  display: inline-block;
305
305
  }
306
306
 
307
+ // Override `width: 100%;` when not within a `.form-group`
308
+ select.form-control {
309
+ width: auto;
310
+ }
311
+
307
312
  // Remove default margin on radios/checkboxes that were used for stacking, and
308
313
  // then undo the floating of radios and checkboxes to match (which also avoids
309
314
  // a bug in WebKit: https://github.com/twbs/bootstrap/issues/1969).
@@ -342,6 +347,12 @@ input[type="checkbox"],
342
347
  margin-bottom: 0;
343
348
  padding-top: ($padding-base-vertical + 1); // Default padding plus a border
344
349
  }
350
+ // Account for padding we're adding to ensure the alignment and of help text
351
+ // and other content below items
352
+ .radio,
353
+ .checkbox {
354
+ min-height: $line-height-computed + ($padding-base-vertical + 1);
355
+ }
345
356
 
346
357
  // Make form groups behave like rows
347
358
  .form-group {
@@ -5,6 +5,16 @@
5
5
  // Set the container width, and override it for fixed navbars in media queries
6
6
  .container {
7
7
  @include container-fixed();
8
+
9
+ @media (min-width: $screen-sm) {
10
+ width: $container-sm;
11
+ }
12
+ @media (min-width: $screen-md) {
13
+ width: $container-md;
14
+ }
15
+ @media (min-width: $screen-lg-min) {
16
+ width: $container-lg;
17
+ }
8
18
  }
9
19
 
10
20
  // mobile first defaults
@@ -18,11 +28,8 @@
18
28
 
19
29
  // Extra small grid
20
30
  //
21
- // Grid classes for extra small devices like smartphones. No offset, push, or
22
- // pull classes are present here due to the size of the target.
23
- //
24
- // Note that `.col-xs-12` doesn't get floated on purpose--there's no need since
25
- // it's full-width.
31
+ // Columns, offsets, pushes, and pulls for extra small devices like
32
+ // smartphones.
26
33
 
27
34
  @include make-grid-columns-float(xs);
28
35
  @include make-grid($grid-columns, xs, width);
@@ -35,15 +42,8 @@
35
42
  //
36
43
  // Columns, offsets, pushes, and pulls for the small device range, from phones
37
44
  // to tablets.
38
- //
39
- // Note that `.col-sm-12` doesn't get floated on purpose--there's no need since
40
- // it's full-width.
41
45
 
42
46
  @media (min-width: $screen-sm-min) {
43
- .container {
44
- width: $container-sm;
45
- }
46
-
47
47
  @include make-grid-columns-float(sm);
48
48
  @include make-grid($grid-columns, sm, width);
49
49
  @include make-grid($grid-columns, sm, pull);
@@ -55,15 +55,8 @@
55
55
  // Medium grid
56
56
  //
57
57
  // Columns, offsets, pushes, and pulls for the desktop device range.
58
- //
59
- // Note that `.col-md-12` doesn't get floated on purpose--there's no need since
60
- // it's full-width.
61
58
 
62
59
  @media (min-width: $screen-md-min) {
63
- .container {
64
- width: $container-md;
65
- }
66
-
67
60
  @include make-grid-columns-float(md);
68
61
  @include make-grid($grid-columns, md, width);
69
62
  @include make-grid($grid-columns, md, pull);
@@ -75,15 +68,8 @@
75
68
  // Large grid
76
69
  //
77
70
  // Columns, offsets, pushes, and pulls for the large desktop device range.
78
- //
79
- // Note that `.col-lg-12` doesn't get floated on purpose--there's no need since
80
- // it's full-width.
81
71
 
82
72
  @media (min-width: $screen-lg-min) {
83
- .container {
84
- width: $container-lg;
85
- }
86
-
87
73
  @include make-grid-columns-float(lg);
88
74
  @include make-grid($grid-columns, lg, width);
89
75
  @include make-grid($grid-columns, lg, pull);
@@ -10,7 +10,7 @@
10
10
  border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table
11
11
 
12
12
  // Undo padding and float of grid classes
13
- &.col {
13
+ &[class*="col-"] {
14
14
  float: none;
15
15
  padding-left: 0;
16
16
  padding-right: 0;
@@ -12,7 +12,8 @@
12
12
  color: $jumbotron-color;
13
13
  background-color: $jumbotron-bg;
14
14
 
15
- h1 {
15
+ h1,
16
+ .h1 {
16
17
  line-height: 1;
17
18
  color: $jumbotron-heading-color;
18
19
  }
@@ -24,6 +25,10 @@
24
25
  border-radius: $border-radius-large; // Only round corners at higher resolutions if contained in a container
25
26
  }
26
27
 
28
+ .container {
29
+ max-width: 100%;
30
+ }
31
+
27
32
  @media screen and (min-width: $screen-sm-min) {
28
33
  padding-top: ($jumbotron-padding * 1.6);
29
34
  padding-bottom: ($jumbotron-padding * 1.6);
@@ -33,7 +38,8 @@
33
38
  padding-right: ($jumbotron-padding * 2);
34
39
  }
35
40
 
36
- h1 {
41
+ h1,
42
+ .h1 {
37
43
  font-size: ($font-size-base * 4.5);
38
44
  }
39
45
  }
@@ -30,6 +30,12 @@
30
30
  }
31
31
  }
32
32
 
33
+ // Quick fix for labels in buttons
34
+ .btn .label {
35
+ position: relative;
36
+ top: -1px;
37
+ }
38
+
33
39
  // Colors
34
40
  // Contextual variations (linked labels get darker on :hover)
35
41
 
@@ -19,8 +19,8 @@
19
19
  @mixin clearfix() {
20
20
  &:before,
21
21
  &:after {
22
- content: " "; /* 1 */
23
- display: table; /* 2 */
22
+ content: " "; // 1
23
+ display: table; // 2
24
24
  }
25
25
  &:after {
26
26
  clear: both;
@@ -30,7 +30,7 @@
30
30
  // WebKit-style focus
31
31
  @mixin tab-focus() {
32
32
  // Default
33
- outline: thin dotted #333;
33
+ outline: thin dotted;
34
34
  // WebKit
35
35
  outline: 5px auto -webkit-focus-ring-color;
36
36
  outline-offset: -2px;
@@ -55,7 +55,8 @@
55
55
  // Placeholder text
56
56
  @mixin placeholder($color: $input-color-placeholder) {
57
57
  &:-moz-placeholder { color: $color; } // Firefox 4-18
58
- &::-moz-placeholder { color: $color; } // Firefox 19+
58
+ &::-moz-placeholder { color: $color; // Firefox 19+
59
+ opacity: 1; } // See https://github.com/twbs/bootstrap/pull/11526
59
60
  &:-ms-input-placeholder { color: $color; } // Internet Explorer 10+
60
61
  &::-webkit-input-placeholder { color: $color; } // Safari and Chrome
61
62
  }
@@ -87,11 +88,7 @@
87
88
  }
88
89
  // New mixin to use as of v3.0.1
89
90
  @mixin text-hide() {
90
- font: 0/0 a;
91
- color: transparent;
92
- text-shadow: none;
93
- background-color: transparent;
94
- border: 0;
91
+ @include hide-text()
95
92
  }
96
93
 
97
94
 
@@ -275,10 +272,8 @@
275
272
  // Creates two color stops, start and end, by specifying a color and position for each color stop.
276
273
  // Color stops are not available in IE9 and below.
277
274
  @mixin gradient-horizontal($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
278
- background-image: -webkit-gradient(linear, $start-percent top, $end-percent top, from($start-color), to($end-color)); // Safari 4+, Chrome 2+
279
- background-image: -webkit-linear-gradient(left, color-stop($start-color $start-percent), color-stop($end-color $end-percent)); // Safari 5.1+, Chrome 10+
280
- background-image: -moz-linear-gradient(left, $start-color $start-percent, $end-color $end-percent); // FF 3.6+
281
- background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent); // Standard, IE10
275
+ background-image: -webkit-linear-gradient(left, color-stop($start-color $start-percent), color-stop($end-color $end-percent)); // Safari 5.1-6, Chrome 10+
276
+ background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
282
277
  background-repeat: repeat-x;
283
278
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down
284
279
  }
@@ -288,47 +283,36 @@
288
283
  // Creates two color stops, start and end, by specifying a color and position for each color stop.
289
284
  // Color stops are not available in IE9 and below.
290
285
  @mixin gradient-vertical($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) {
291
- background-image: -webkit-gradient(linear, left $start-percent, left $end-percent, from($start-color), to($end-color)); // Safari 4+, Chrome 2+
292
- background-image: -webkit-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Safari 5.1+, Chrome 10+
293
- background-image: -moz-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // FF 3.6+
294
- background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); // Standard, IE10
286
+ background-image: -webkit-linear-gradient(top, $start-color $start-percent, $end-color $end-percent); // Safari 5.1-6, Chrome 10+
287
+ background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
295
288
  background-repeat: repeat-x;
296
289
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down
297
290
  }
298
291
  @mixin gradient-directional($start-color: #555, $end-color: #333, $deg: 45deg) {
299
292
  background-repeat: repeat-x;
300
- background-image: -webkit-linear-gradient($deg, $start-color, $end-color); // Safari 5.1+, Chrome 10+
301
- background-image: -moz-linear-gradient($deg, $start-color, $end-color); // FF 3.6+
302
- background-image: linear-gradient($deg, $start-color, $end-color); // Standard, IE10
293
+ background-image: -webkit-linear-gradient($deg, $start-color, $end-color); // Safari 5.1-6, Chrome 10+
294
+ background-image: linear-gradient($deg, $start-color, $end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
303
295
  }
304
296
 
305
297
  @mixin gradient-horizontal-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
306
- background-image: -webkit-gradient(left, linear, 0 0, 0 100%, from($start-color), color-stop($color-stop, $mid-color), to($end-color));
307
298
  background-image: -webkit-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color);
308
- background-image: -moz-linear-gradient(left, $start-color, $mid-color $color-stop, $end-color);
309
299
  background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
310
300
  background-repeat: no-repeat;
311
301
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=1); // IE9 and down, gets no color-stop at all for proper fallback
312
302
  }
313
303
  @mixin gradient-vertical-three-colors($start-color: #00b3ee, $mid-color: #7a43b6, $color-stop: 50%, $end-color: #c3325f) {
314
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from($start-color), color-stop($color-stop, $mid-color), to($end-color));
315
304
  background-image: -webkit-linear-gradient($start-color, $mid-color $color-stop, $end-color);
316
- background-image: -moz-linear-gradient(top, $start-color, $mid-color $color-stop, $end-color);
317
305
  background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
318
306
  background-repeat: no-repeat;
319
307
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
320
308
  }
321
309
  @mixin gradient-radial($inner-color: #555, $outer-color: #333) {
322
- background-image: -webkit-gradient(radial, center center, 0, center center, 460, from($inner-color), to($outer-color));
323
310
  background-image: -webkit-radial-gradient(circle, $inner-color, $outer-color);
324
- background-image: -moz-radial-gradient(circle, $inner-color, $outer-color);
325
311
  background-image: radial-gradient(circle, $inner-color, $outer-color);
326
312
  background-repeat: no-repeat;
327
313
  }
328
314
  @mixin gradient-striped($color: rgba(255,255,255,.15), $angle: 45deg) {
329
- background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, $color), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, $color), color-stop(.75, $color), color-stop(.75, transparent), to(transparent));
330
315
  background-image: -webkit-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
331
- background-image: -moz-linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
332
316
  background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
333
317
  }
334
318
 
@@ -399,9 +383,6 @@
399
383
  + .panel-collapse .panel-body {
400
384
  border-top-color: $border;
401
385
  }
402
- & > .dropdown .caret {
403
- border-color: $heading-text-color transparent;
404
- }
405
386
  }
406
387
  & > .panel-footer {
407
388
  + .panel-collapse .panel-body {
@@ -427,27 +408,27 @@
427
408
 
428
409
  // Tables
429
410
  // -------------------------
430
- @mixin table-row-variant($state, $background, $border) {
411
+ @mixin table-row-variant($state, $background) {
431
412
  // Exact selectors below required to override `.table-striped` and prevent
432
413
  // inheritance to nested tables.
433
- .table > thead > tr,
434
- .table > tbody > tr,
435
- .table > tfoot > tr {
436
- > td.#{$state},
437
- > th.#{$state},
438
- &.#{$state} > td,
439
- &.#{$state} > th {
440
- background-color: $background;
414
+ .table {
415
+ > thead,
416
+ > tbody,
417
+ > tfoot {
418
+ > tr > .#{$state},
419
+ > .#{$state} > td,
420
+ > .#{$state} > th {
421
+ background-color: $background;
422
+ }
441
423
  }
442
424
  }
443
425
 
444
426
  // Hover states for `.table-hover`
445
427
  // Note: this is not available for cells or rows within `thead` or `tfoot`.
446
- .table-hover > tbody > tr {
447
- > td.#{$state}:hover,
448
- > th.#{$state}:hover,
449
- &.#{$state}:hover > td,
450
- &.#{$state}:hover > th {
428
+ .table-hover > tbody {
429
+ > tr > .#{$state}:hover,
430
+ > .#{$state}:hover > td,
431
+ > .#{$state}:hover > th {
451
432
  background-color: darken($background, 5%);
452
433
  }
453
434
  }
@@ -490,6 +471,11 @@
490
471
  border-color: $border;
491
472
  }
492
473
  }
474
+
475
+ .badge {
476
+ color: $background;
477
+ background-color: #fff;
478
+ }
493
479
  }
494
480
 
495
481
  // Button sizes
@@ -563,6 +549,7 @@
563
549
  display: block !important;
564
550
  }
565
551
 
552
+ table#{$selector} { display: table; }
566
553
  tr#{$selector} { display: table-row !important; }
567
554
  th#{$selector},
568
555
  td#{$selector} { display: table-cell !important; }
@@ -35,10 +35,8 @@
35
35
  // Shell div to position the modal with bottom padding
36
36
  .modal-dialog {
37
37
  position: relative;
38
- margin-left: auto;
39
- margin-right: auto;
40
38
  width: auto;
41
- padding: 10px;
39
+ margin: 10px;
42
40
  z-index: ($zindex-modal-background + 10);
43
41
  }
44
42
 
@@ -122,8 +120,7 @@
122
120
 
123
121
  .modal-dialog {
124
122
  width: 600px;
125
- padding-top: 30px;
126
- padding-bottom: 30px;
123
+ margin: 30px auto;
127
124
  }
128
125
  .modal-content {
129
126
  @include box-shadow(0 5px 15px rgba(0,0,0,.5));
@@ -74,18 +74,16 @@
74
74
  }
75
75
 
76
76
  &.in {
77
- overflow-y: auto;
77
+ overflow-y: visible;
78
78
  }
79
79
 
80
- // Account for first and last children spacing
81
- .navbar-nav.navbar-left:first-child {
82
- margin-left: -$navbar-padding-horizontal;
83
- }
84
- .navbar-nav.navbar-right:last-child {
85
- margin-right: -$navbar-padding-horizontal;
86
- }
87
- .navbar-text:last-child {
88
- margin-right: 0;
80
+ // Undo the collapse side padding for navbars with containers to ensure
81
+ // alignment of right-aligned contents.
82
+ .navbar-fixed-top &,
83
+ .navbar-static-top &,
84
+ .navbar-fixed-bottom & {
85
+ padding-left: 0;
86
+ padding-right: 0;
89
87
  }
90
88
  }
91
89
  }
@@ -180,6 +178,7 @@
180
178
  padding: 9px 10px;
181
179
  @include navbar-vertical-align(34px);
182
180
  background-color: transparent;
181
+ background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
183
182
  border: 1px solid transparent;
184
183
  border-radius: $border-radius-base;
185
184
 
@@ -214,7 +213,7 @@
214
213
  line-height: $line-height-computed;
215
214
  }
216
215
 
217
- @media (max-width: $screen-xs-max) {
216
+ @media (max-width: $grid-float-breakpoint-max) {
218
217
  // Dropdowns get custom display when collapsed
219
218
  .open .dropdown-menu {
220
219
  position: static;
@@ -246,12 +245,15 @@
246
245
  > li {
247
246
  float: left;
248
247
  > a {
249
- padding-top: (($navbar-height - $line-height-computed) / 2);
250
- padding-bottom: (($navbar-height - $line-height-computed) / 2);
248
+ padding-top: $navbar-padding-vertical;
249
+ padding-bottom: $navbar-padding-vertical;
251
250
  }
252
251
  }
253
- }
254
252
 
253
+ &.navbar-right:last-child {
254
+ margin-right: -$navbar-padding-horizontal;
255
+ }
256
+ }
255
257
  }
256
258
 
257
259
 
@@ -289,7 +291,7 @@
289
291
  @extend .form-inline;
290
292
 
291
293
  .form-group {
292
- @media (max-width: $screen-xs-max) {
294
+ @media (max-width: $grid-float-breakpoint-max) {
293
295
  margin-bottom: 5px;
294
296
  }
295
297
  }
@@ -306,6 +308,11 @@
306
308
  padding-top: 0;
307
309
  padding-bottom: 0;
308
310
  @include box-shadow(none);
311
+
312
+ // Outdent the form if last child to line up with content down the page
313
+ &.navbar-right:last-child {
314
+ margin-right: -$navbar-padding-horizontal;
315
+ }
309
316
  }
310
317
  }
311
318
 
@@ -336,6 +343,13 @@
336
343
 
337
344
  .navbar-btn {
338
345
  @include navbar-vertical-align($input-height-base);
346
+
347
+ &.btn-sm {
348
+ @include navbar-vertical-align($input-height-small);
349
+ }
350
+ &.btn-xs {
351
+ @include navbar-vertical-align(22);
352
+ }
339
353
  }
340
354
 
341
355
 
@@ -344,12 +358,17 @@
344
358
  // Add a class to make any element properly align itself vertically within the navbars.
345
359
 
346
360
  .navbar-text {
347
- float: left;
348
361
  @include navbar-vertical-align($line-height-computed);
349
362
 
350
363
  @media (min-width: $grid-float-breakpoint) {
364
+ float: left;
351
365
  margin-left: $navbar-padding-horizontal;
352
366
  margin-right: $navbar-padding-horizontal;
367
+
368
+ // Outdent the form if last child to line up with content down the page
369
+ &.navbar-right:last-child {
370
+ margin-right: 0;
371
+ }
353
372
  }
354
373
  }
355
374
 
@@ -418,15 +437,8 @@
418
437
  border-color: $navbar-default-border;
419
438
  }
420
439
 
421
- // Dropdown menu items and carets
440
+ // Dropdown menu items
422
441
  .navbar-nav {
423
- // Caret should match text color on hover
424
- > .dropdown > a:hover .caret,
425
- > .dropdown > a:focus .caret {
426
- border-top-color: $navbar-default-link-hover-color;
427
- border-bottom-color: $navbar-default-link-hover-color;
428
- }
429
-
430
442
  // Remove background color from open dropdown
431
443
  > .open > a {
432
444
  &,
@@ -434,19 +446,10 @@
434
446
  &:focus {
435
447
  background-color: $navbar-default-link-active-bg;
436
448
  color: $navbar-default-link-active-color;
437
- .caret {
438
- border-top-color: $navbar-default-link-active-color;
439
- border-bottom-color: $navbar-default-link-active-color;
440
- }
441
449
  }
442
450
  }
443
- > .dropdown > a .caret {
444
- border-top-color: $navbar-default-link-color;
445
- border-bottom-color: $navbar-default-link-color;
446
- }
447
-
448
451
 
449
- @media (max-width: $screen-xs-max) {
452
+ @media (max-width: $grid-float-breakpoint-max) {
450
453
  // Dropdowns get custom display when collapsed
451
454
  .open .dropdown-menu {
452
455
  > li > a {
@@ -565,31 +568,16 @@
565
568
  color: $navbar-inverse-link-active-color;
566
569
  }
567
570
  }
568
- > .dropdown > a:hover .caret {
569
- border-top-color: $navbar-inverse-link-hover-color;
570
- border-bottom-color: $navbar-inverse-link-hover-color;
571
- }
572
- > .dropdown > a .caret {
573
- border-top-color: $navbar-inverse-link-color;
574
- border-bottom-color: $navbar-inverse-link-color;
575
- }
576
- > .open > a {
577
- &,
578
- &:hover,
579
- &:focus {
580
- .caret {
581
- border-top-color: $navbar-inverse-link-active-color;
582
- border-bottom-color: $navbar-inverse-link-active-color;
583
- }
584
- }
585
- }
586
571
 
587
- @media (max-width: $screen-xs-max) {
572
+ @media (max-width: $grid-float-breakpoint-max) {
588
573
  // Dropdowns get custom display
589
574
  .open .dropdown-menu {
590
575
  > .dropdown-header {
591
576
  border-color: $navbar-inverse-border;
592
577
  }
578
+ .divider {
579
+ background-color: $navbar-inverse-border;
580
+ }
593
581
  > li > a {
594
582
  color: $navbar-inverse-link-color;
595
583
  &:hover,