compass_twitter_bootstrap 2.2.2.2 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +5 -4
  4. data/lib/compass_twitter_bootstrap/version.rb +1 -1
  5. data/stylesheets/_compass_twitter_bootstrap.scss +15 -5
  6. data/stylesheets/_compass_twitter_bootstrap_awesome.scss +17 -6
  7. data/stylesheets/_compass_twitter_bootstrap_responsive.scss +17 -5
  8. data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +4 -2
  9. data/stylesheets/compass_twitter_bootstrap/_buttons.scss +9 -11
  10. data/stylesheets/compass_twitter_bootstrap/_carousel.scss +34 -7
  11. data/stylesheets/compass_twitter_bootstrap/_close.scss +2 -1
  12. data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +16 -12
  13. data/stylesheets/compass_twitter_bootstrap/_forms.scss +5 -2
  14. data/stylesheets/compass_twitter_bootstrap/_labels-badges.scss +4 -2
  15. data/stylesheets/compass_twitter_bootstrap/_media.scss +2 -2
  16. data/stylesheets/compass_twitter_bootstrap/_mixins.scss +39 -8
  17. data/stylesheets/compass_twitter_bootstrap/_navbar.scss +20 -13
  18. data/stylesheets/compass_twitter_bootstrap/_navs.scss +39 -21
  19. data/stylesheets/compass_twitter_bootstrap/_pager.scss +3 -1
  20. data/stylesheets/compass_twitter_bootstrap/_pagination.scss +3 -1
  21. data/stylesheets/compass_twitter_bootstrap/_popovers.scss +5 -1
  22. data/stylesheets/compass_twitter_bootstrap/_responsive-767px-max.scss +2 -2
  23. data/stylesheets/compass_twitter_bootstrap/_responsive-navbar.scss +6 -2
  24. data/stylesheets/compass_twitter_bootstrap/_responsive-utilities.scss +16 -0
  25. data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +2 -1
  26. data/stylesheets/compass_twitter_bootstrap/_sprites.scss +7 -3
  27. data/stylesheets/compass_twitter_bootstrap/_tables.scss +24 -17
  28. data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +3 -2
  29. data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +6 -6
  30. data/stylesheets/compass_twitter_bootstrap/_type.scss +19 -7
  31. data/stylesheets/compass_twitter_bootstrap/_utilities.scss +1 -3
  32. data/stylesheets/compass_twitter_bootstrap/_variables.scss +4 -4
  33. data/stylesheets_sass/_compass_twitter_bootstrap.sass +14 -6
  34. data/stylesheets_sass/_compass_twitter_bootstrap_awesome.sass +16 -7
  35. data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +14 -5
  36. data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +4 -3
  37. data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +9 -11
  38. data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +30 -6
  39. data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +2 -1
  40. data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +1 -1
  41. data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +18 -13
  42. data/stylesheets_sass/compass_twitter_bootstrap/_font-awesome.sass +339 -46
  43. data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +12 -15
  44. data/stylesheets_sass/compass_twitter_bootstrap/_labels-badges.sass +4 -2
  45. data/stylesheets_sass/compass_twitter_bootstrap/_media.sass +2 -2
  46. data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +41 -7
  47. data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +4 -4
  48. data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +23 -14
  49. data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +51 -30
  50. data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +4 -2
  51. data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +3 -1
  52. data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +4 -2
  53. data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +2 -2
  54. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-767px-max.sass +1 -1
  55. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-navbar.sass +6 -2
  56. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-utilities.sass +19 -0
  57. data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +3 -2
  58. data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +8 -3
  59. data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +24 -16
  60. data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +5 -3
  61. data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +6 -2
  62. data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +24 -7
  63. data/stylesheets_sass/compass_twitter_bootstrap/_utilities.sass +0 -3
  64. data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +4 -4
  65. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  66. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  67. data/vendor/assets/javascripts/bootstrap-affix.js +1 -1
  68. data/vendor/assets/javascripts/bootstrap-alert.js +1 -1
  69. data/vendor/assets/javascripts/bootstrap-all.js +0 -1
  70. data/vendor/assets/javascripts/bootstrap-button.js +1 -1
  71. data/vendor/assets/javascripts/bootstrap-carousel.js +32 -10
  72. data/vendor/assets/javascripts/bootstrap-collapse.js +4 -4
  73. data/vendor/assets/javascripts/bootstrap-dropdown.js +14 -10
  74. data/vendor/assets/javascripts/bootstrap-modal.js +14 -12
  75. data/vendor/assets/javascripts/bootstrap-popover.js +5 -5
  76. data/vendor/assets/javascripts/bootstrap-scrollspy.js +2 -2
  77. data/vendor/assets/javascripts/bootstrap-tab.js +1 -1
  78. data/vendor/assets/javascripts/bootstrap-tooltip.js +104 -30
  79. data/vendor/assets/javascripts/bootstrap-transition.js +1 -1
  80. data/vendor/assets/javascripts/bootstrap-typeahead.js +16 -4
  81. metadata +10 -22
  82. data/stylesheets/compass_twitter_bootstrap/_responsive.scss +0 -48
  83. data/stylesheets_sass/compass_twitter_bootstrap/_responsive.sass +0 -44
@@ -34,10 +34,12 @@
34
34
  &:empty
35
35
  display: none
36
36
 
37
- // Hover state, but only for links
37
+ // Hover/focus state, but only for links
38
38
  a
39
39
  &.label:hover,
40
- &.badge:hover
40
+ &.label:focus,
41
+ &.badge:hover,
42
+ &.badge:focus
41
43
  color: $white
42
44
  text-decoration: none
43
45
  cursor: pointer
@@ -33,10 +33,10 @@
33
33
  // Media image alignment
34
34
  // -------------------------
35
35
 
36
- .media .pull-left
36
+ .media > .pull-left
37
37
  margin-right: 10px
38
38
 
39
- .media .pull-right
39
+ .media > .pull-right
40
40
  margin-left: 10px
41
41
 
42
42
  // Media list variation
@@ -24,7 +24,7 @@
24
24
  // ------------------
25
25
  =ctb-tab-focus
26
26
  // Default
27
- outline: thin dotted #333
27
+ outline: thin dotted #333333
28
28
  // Webkit
29
29
  outline: 5px auto -webkit-focus-ring-color
30
30
  outline-offset: -2px
@@ -130,15 +130,15 @@
130
130
  =ctb-input-block-level
131
131
  display: block
132
132
  width: 100%
133
- min-height: 30px
134
- // Make inputs at least the height of their button counterpart
133
+ min-height: $inputHeight
134
+ // Make inputs at least the height of their button counterpart (base line-height + padding + border)
135
135
  +ctb-box-sizing(border-box)
136
136
  // Makes inputs behave like true block-level elements
137
137
 
138
138
  // Mixin for form field states
139
139
  =ctb-formFieldState($textColor: #555555, $borderColor: #cccccc, $backgroundColor: whitesmoke)
140
140
  // Set the text color
141
- > label,
141
+ .control-label,
142
142
  .help-block,
143
143
  .help-inline
144
144
  color: $textColor
@@ -149,6 +149,9 @@
149
149
  select,
150
150
  textarea
151
151
  color: $textColor
152
+ input,
153
+ select,
154
+ textarea
152
155
  border-color: $borderColor
153
156
  +ctb-box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.075))
154
157
  // Redeclare so transitions work
@@ -225,6 +228,18 @@
225
228
  -o-transition: $transition
226
229
  transition: $transition
227
230
 
231
+ =ctb-transition-delay($transition-delay)
232
+ -webkit-transition-delay: $transition-delay
233
+ -moz-transition-delay: $transition-delay
234
+ -o-transition-delay: $transition-delay
235
+ transition-delay: $transition-delay
236
+
237
+ =ctb-transition-duration($transition-duration)
238
+ -webkit-transition-duration: $transition-duration
239
+ -moz-transition-duration: $transition-duration
240
+ -o-transition-duration: $transition-duration
241
+ transition-duration: $transition-duration
242
+
228
243
  // Transformations
229
244
  =ctb-rotate($degrees)
230
245
  -webkit-transform: rotate($degrees)
@@ -250,9 +265,12 @@
250
265
  =ctb-skew($x, $y)
251
266
  -webkit-transform: skew($x, $y)
252
267
  -moz-transform: skew($x, $y)
253
- -ms-transform: skew($x, $y)
268
+ -ms-transform: skewX($x) skewY($y)
269
+ // See https://github.com/twitter/bootstrap/issues/4885
254
270
  -o-transform: skew($x, $y)
255
271
  transform: skew($x, $y)
272
+ -webkit-backface-visibility: hidden
273
+ // See https://github.com/twitter/bootstrap/issues/5319
256
274
 
257
275
  =ctb-translate3d($x, $y, $z)
258
276
  -webkit-transform: translate3d($x, $y, $z)
@@ -392,6 +410,17 @@
392
410
  background-image: linear-gradient($deg, $startColor, $endColor)
393
411
  // Standard, IE10
394
412
 
413
+ =ctb-gradient-horizontal-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f)
414
+ background-color: mix($midColor, $endColor, 80%)
415
+ background-image: -webkit-gradient(left, linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor))
416
+ background-image: -webkit-linear-gradient(left, $startColor, $midColor $colorStop, $endColor)
417
+ background-image: -moz-linear-gradient(left, $startColor, $midColor $colorStop * 100%, $endColor)
418
+ background-image: -o-linear-gradient(left, $startColor, $midColor $colorStop, $endColor)
419
+ background-image: linear-gradient(to right, $startColor, $midColor $colorStop, $endColor)
420
+ background-repeat: no-repeat
421
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{darken($startColor, 1%)}', endColorstr='#{darken($endColor, 1%)}', GradientType=0)
422
+ // IE9 and down, gets no color-stop at all for proper fallback
423
+
395
424
  =ctb-gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f)
396
425
  background-color: mix($midColor, $endColor, 80%)
397
426
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor))
@@ -411,7 +440,7 @@
411
440
  background-image: -o-radial-gradient(circle, $innerColor, $outerColor)
412
441
  background-repeat: no-repeat
413
442
 
414
- =ctb-gradient-striped($color, $angle: 45deg)
443
+ =ctb-gradient-striped($color: #555555, $angle: 45deg)
415
444
  background-color: $color
416
445
  background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent))
417
446
  background-image: -webkit-linear-gradient($angle, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)
@@ -452,7 +481,7 @@
452
481
  /* Darken IE7 buttons by default so they stand out more given they won't have borders
453
482
  +ctb-gradient-reset-filter
454
483
  // in these cases the gradient won't cover the background, so we override
455
- &:hover, &:active, &.active, &.disabled, &[disabled]
484
+ &:hover, &:focus, &:active, &.active, &.disabled, &[disabled]
456
485
  color: $textColor
457
486
  background-color: $endColor
458
487
  *background-color: darken($endColor, 5%)
@@ -510,6 +539,8 @@
510
539
  +ctb-clearfix
511
540
  [class*="span"]
512
541
  float: left
542
+ min-height: 1px
543
+ // prevent collapsing columns
513
544
  margin-left: $gutterWidth
514
545
  // Set the container width, and override it for fixed navbars in media queries
515
546
  .container,
@@ -552,6 +583,9 @@
552
583
  *margin-left: $gutterWidth - 0.5 / $gridRowWidth * 100px * 1%
553
584
  [class*="span"]:first-child
554
585
  margin-left: 0
586
+ // Space grid-sized controls properly if multiple per line
587
+ .controls-row [class*="span"] + [class*="span"]
588
+ margin-left: $gutterWidth
555
589
  // generate .spanX and .offsetX
556
590
  $i: $gridColumns
557
591
  @while $i > 0
@@ -28,9 +28,9 @@
28
28
  width: 560px
29
29
  margin-left: -280px
30
30
  background-color: $white
31
- border: 1px solid #999
31
+ border: 1px solid #999999
32
32
  border: 1px solid rgba(0, 0, 0, 0.3)
33
- *border: 1px solid #999
33
+ *border: 1px solid #999999
34
34
  /* IE6-7
35
35
  +ctb-border-radius(6px)
36
36
  +ctb-box-shadow(0 3px 7px rgba(0, 0, 0, 0.3))
@@ -45,7 +45,7 @@
45
45
 
46
46
  .modal-header
47
47
  padding: 9px 15px
48
- border-bottom: 1px solid #eee
48
+ border-bottom: 1px solid #eeeeee
49
49
  // Close icon
50
50
  .close
51
51
  margin-top: 2px
@@ -72,7 +72,7 @@
72
72
  text-align: right
73
73
  // right align buttons
74
74
  background-color: #f5f5f5
75
- border-top: 1px solid #ddd
75
+ border-top: 1px solid #dddddd
76
76
  +ctb-border-radius(0 0 6px 6px)
77
77
  +ctb-box-shadow(inset 0 1px 0 $white)
78
78
  +ctb-clearfix
@@ -49,7 +49,8 @@
49
49
  font-weight: 200
50
50
  color: $navbarBrandColor
51
51
  text-shadow: 0 1px 0 $navbarBackgroundHighlight
52
- &:hover
52
+ &:hover,
53
+ &:focus
53
54
  text-decoration: none
54
55
 
55
56
  // Plain text in topbar
@@ -63,7 +64,8 @@
63
64
  // -------------------------
64
65
  .navbar-link
65
66
  color: $navbarLinkColor
66
- &:hover
67
+ &:hover,
68
+ &:focus
67
69
  color: $navbarLinkColorHover
68
70
 
69
71
  // Dividers in navbar
@@ -84,7 +86,9 @@
84
86
 
85
87
  .navbar .btn-group .btn,
86
88
  .navbar .input-prepend .btn,
87
- .navbar .input-append .btn
89
+ .navbar .input-append .btn,
90
+ .navbar .input-prepend .btn-group,
91
+ .navbar .input-append .btn-group
88
92
  margin-top: 0
89
93
  // then undo the margin here so we don't accidentally double it
90
94
 
@@ -224,12 +228,12 @@
224
228
  .navbar .nav .dropdown-toggle .caret
225
229
  margin-top: 8px
226
230
 
227
- // Hover
231
+ // Hover/focus
228
232
 
229
233
  .navbar .nav > li > a:focus,
230
234
  .navbar .nav > li > a:hover
231
235
  background-color: $navbarLinkBackgroundHover
232
- // "transparent" is default to differentiate :hover from .active
236
+ // "transparent" is default to differentiate :hover/:focus from .active
233
237
  color: $navbarLinkColorHover
234
238
  text-decoration: none
235
239
 
@@ -275,7 +279,7 @@
275
279
  display: inline-block
276
280
  border-left: 7px solid transparent
277
281
  border-right: 7px solid transparent
278
- border-bottom: 7px solid #ccc
282
+ border-bottom: 7px solid #cccccc
279
283
  border-bottom-color: $dropdownBorder
280
284
  position: absolute
281
285
  top: -7px
@@ -293,7 +297,7 @@
293
297
  // Menu position and menu caret support for dropups via extra dropup class
294
298
  .navbar-fixed-bottom .nav > li > .dropdown-menu
295
299
  &:before
296
- border-top: 7px solid #ccc
300
+ border-top: 7px solid #cccccc
297
301
  border-top-color: $dropdownBorder
298
302
  border-bottom: 0
299
303
  bottom: -7px
@@ -304,10 +308,12 @@
304
308
  bottom: -6px
305
309
  top: auto
306
310
 
307
- // Caret should match text color on hover
308
- .navbar .nav li.dropdown > a:hover .caret
309
- border-top-color: $navbarLinkColorActive
310
- border-bottom-color: $navbarLinkColorActive
311
+ // Caret should match text color on hover/focus
312
+
313
+ .navbar .nav li.dropdown > a:hover .caret,
314
+ .navbar .nav li.dropdown > a:focus .caret
315
+ border-top-color: $navbarLinkColorHover
316
+ border-bottom-color: $navbarLinkColorHover
311
317
 
312
318
  // Remove background color from open dropdown
313
319
 
@@ -357,7 +363,8 @@
357
363
  .nav > li > a
358
364
  color: $navbarInverseLinkColor
359
365
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
360
- &:hover
366
+ &:hover,
367
+ &:focus
361
368
  color: $navbarInverseLinkColorHover
362
369
  .brand
363
370
  color: $navbarInverseBrandColor
@@ -375,7 +382,8 @@
375
382
  // Inline text links
376
383
  .navbar-link
377
384
  color: $navbarInverseLinkColor
378
- &:hover
385
+ &:hover,
386
+ &:focus
379
387
  color: $navbarInverseLinkColorHover
380
388
  // Dividers in navbar
381
389
  .divider-vertical
@@ -387,7 +395,8 @@
387
395
  .nav li.dropdown.open.active > .dropdown-toggle
388
396
  background-color: $navbarInverseLinkBackgroundActive
389
397
  color: $navbarInverseLinkColorActive
390
- .nav li.dropdown > a:hover .caret
398
+ .nav li.dropdown > a:hover .caret,
399
+ .nav li.dropdown > a:focus .caret
391
400
  border-top-color: $navbarInverseLinkColorActive
392
401
  border-bottom-color: $navbarInverseLinkColorActive
393
402
  .nav li.dropdown > .dropdown-toggle .caret
@@ -14,7 +14,8 @@
14
14
  .nav > li > a
15
15
  display: block
16
16
 
17
- .nav > li > a:hover
17
+ .nav > li > a:hover,
18
+ .nav > li > a:focus
18
19
  text-decoration: none
19
20
  background-color: $grayLighter
20
21
 
@@ -60,7 +61,8 @@
60
61
  padding: 3px 15px
61
62
 
62
63
  .nav-list > .active > a,
63
- .nav-list > .active > a:hover
64
+ .nav-list > .active > a:hover,
65
+ .nav-list > .active > a:focus
64
66
  color: $white
65
67
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2)
66
68
  background-color: $linkColor
@@ -99,7 +101,7 @@
99
101
 
100
102
  // Give the tabs something to sit on
101
103
  .nav-tabs
102
- border-bottom: 1px solid #ddd
104
+ border-bottom: 1px solid #dddddd
103
105
 
104
106
  // Make the list-items overlay the bottom border
105
107
  .nav-tabs > li
@@ -112,16 +114,18 @@
112
114
  line-height: $baseLineHeight
113
115
  border: 1px solid transparent
114
116
  +ctb-border-radius(4px 4px 0 0)
115
- &:hover
117
+ &:hover,
118
+ &:focus
116
119
  border-color: $grayLighter $grayLighter #dddddd
117
120
 
118
- // Active state, and it's :hover to override normal :hover
121
+ // Active state, and it's :hover/:focus to override normal :hover/:focus
119
122
 
120
123
  .nav-tabs > .active > a,
121
- .nav-tabs > .active > a:hover
124
+ .nav-tabs > .active > a:hover,
125
+ .nav-tabs > .active > a:focus
122
126
  color: $gray
123
127
  background-color: $bodyBackground
124
- border: 1px solid #ddd
128
+ border: 1px solid #dddddd
125
129
  border-bottom-color: transparent
126
130
  cursor: default
127
131
 
@@ -139,7 +143,8 @@
139
143
  // Active state
140
144
 
141
145
  .nav-pills > .active > a,
142
- .nav-pills > .active > a:hover
146
+ .nav-pills > .active > a:hover,
147
+ .nav-pills > .active > a:focus
143
148
  color: $white
144
149
  background-color: $linkColor
145
150
 
@@ -159,7 +164,7 @@
159
164
  border-bottom: 0
160
165
 
161
166
  .nav-tabs.nav-stacked > li > a
162
- border: 1px solid #ddd
167
+ border: 1px solid #dddddd
163
168
  +ctb-border-radius(0)
164
169
 
165
170
  .nav-tabs.nav-stacked > li:first-child > a
@@ -168,7 +173,8 @@
168
173
  .nav-tabs.nav-stacked > li:last-child > a
169
174
  +ctb-border-bottom-radius(4px)
170
175
 
171
- .nav-tabs.nav-stacked > li > a:hover
176
+ .nav-tabs.nav-stacked > li > a:hover,
177
+ .nav-tabs.nav-stacked > li > a:focus
172
178
  border-color: #ddd
173
179
  z-index: 2
174
180
 
@@ -199,7 +205,8 @@
199
205
  border-bottom-color: $linkColor
200
206
  margin-top: 6px
201
207
 
202
- .nav .dropdown-toggle:hover .caret
208
+ .nav .dropdown-toggle:hover .caret,
209
+ .nav .dropdown-toggle:focus .caret
203
210
  border-top-color: $linkColorHover
204
211
  border-bottom-color: $linkColorHover
205
212
 
@@ -217,9 +224,11 @@
217
224
  border-top-color: $gray
218
225
  border-bottom-color: $gray
219
226
 
220
- // Active:hover dropdown links
227
+ // Active:hover/:focus dropdown links
221
228
  // -------------------------
222
- .nav > .dropdown.active > a:hover
229
+
230
+ .nav > .dropdown.active > a:hover,
231
+ .nav > .dropdown.active > a:focus
223
232
  cursor: pointer
224
233
 
225
234
  // Open dropdowns
@@ -227,20 +236,24 @@
227
236
 
228
237
  .nav-tabs .open .dropdown-toggle,
229
238
  .nav-pills .open .dropdown-toggle,
230
- .nav > li.dropdown.open.active > a:hover
239
+ .nav > li.dropdown.open.active > a:hover,
240
+ .nav > li.dropdown.open.active > a:focus
231
241
  color: $white
232
242
  background-color: $grayLight
233
243
  border-color: $grayLight
234
244
 
235
245
  .nav li.dropdown.open .caret,
236
246
  .nav li.dropdown.open.active .caret,
237
- .nav li.dropdown.open a:hover .caret
247
+ .nav li.dropdown.open a:hover .caret,
248
+ .nav li.dropdown.open a:focus .caret
238
249
  border-top-color: $white
239
250
  border-bottom-color: $white
240
251
  +ctb-opacity(1)
241
252
 
242
253
  // Dropdowns in stacked tabs
243
- .tabs-stacked .open > a:hover
254
+
255
+ .tabs-stacked .open > a:hover,
256
+ .tabs-stacked .open > a:focus
244
257
  border-color: $grayLight
245
258
 
246
259
  // TABBABLE
@@ -278,7 +291,7 @@
278
291
  // ------
279
292
 
280
293
  .tabs-below > .nav-tabs
281
- border-top: 1px solid #ddd
294
+ border-top: 1px solid #dddddd
282
295
 
283
296
  .tabs-below > .nav-tabs > li
284
297
  margin-top: -1px
@@ -286,13 +299,15 @@
286
299
 
287
300
  .tabs-below > .nav-tabs > li > a
288
301
  +ctb-border-radius(0 0 4px 4px)
289
- &:hover
302
+ &:hover,
303
+ &:focus
290
304
  border-bottom-color: transparent
291
305
  border-top-color: #ddd
292
306
 
293
307
  .tabs-below > .nav-tabs > .active > a,
294
- .tabs-below > .nav-tabs > .active > a:hover
295
- border-color: transparent #ddd #ddd #ddd
308
+ .tabs-below > .nav-tabs > .active > a:hover,
309
+ .tabs-below > .nav-tabs > .active > a:focus
310
+ border-color: transparent #dddddd #dddddd #dddddd
296
311
 
297
312
  // LEFT & RIGHT
298
313
  // ------------
@@ -313,36 +328,40 @@
313
328
  .tabs-left > .nav-tabs
314
329
  float: left
315
330
  margin-right: 19px
316
- border-right: 1px solid #ddd
331
+ border-right: 1px solid #dddddd
317
332
 
318
333
  .tabs-left > .nav-tabs > li > a
319
334
  margin-right: -1px
320
335
  +ctb-border-radius(4px 0 0 4px)
321
336
 
322
- .tabs-left > .nav-tabs > li > a:hover
337
+ .tabs-left > .nav-tabs > li > a:hover,
338
+ .tabs-left > .nav-tabs > li > a:focus
323
339
  border-color: $grayLighter #dddddd $grayLighter $grayLighter
324
340
 
325
341
  .tabs-left > .nav-tabs .active > a,
326
- .tabs-left > .nav-tabs .active > a:hover
327
- border-color: #ddd transparent #ddd #ddd
342
+ .tabs-left > .nav-tabs .active > a:hover,
343
+ .tabs-left > .nav-tabs .active > a:focus
344
+ border-color: #dddddd transparent #dddddd #dddddd
328
345
  *border-right-color: $white
329
346
 
330
347
  // Tabs on the right
331
348
  .tabs-right > .nav-tabs
332
349
  float: right
333
350
  margin-left: 19px
334
- border-left: 1px solid #ddd
351
+ border-left: 1px solid #dddddd
335
352
 
336
353
  .tabs-right > .nav-tabs > li > a
337
354
  margin-left: -1px
338
355
  +ctb-border-radius(0 4px 4px 0)
339
356
 
340
- .tabs-right > .nav-tabs > li > a:hover
357
+ .tabs-right > .nav-tabs > li > a:hover,
358
+ .tabs-right > .nav-tabs > li > a:focus
341
359
  border-color: $grayLighter $grayLighter $grayLighter #dddddd
342
360
 
343
361
  .tabs-right > .nav-tabs .active > a,
344
- .tabs-right > .nav-tabs .active > a:hover
345
- border-color: #ddd #ddd #ddd transparent
362
+ .tabs-right > .nav-tabs .active > a:hover,
363
+ .tabs-right > .nav-tabs .active > a:focus
364
+ border-color: #dddddd #dddddd #dddddd transparent
346
365
  *border-left-color: $white
347
366
 
348
367
  // DISABLED STATES
@@ -352,8 +371,10 @@
352
371
  .nav > .disabled > a
353
372
  color: $grayLight
354
373
 
355
- // Nuke hover effects
356
- .nav > .disabled > a:hover
374
+ // Nuke hover/focus effects
375
+
376
+ .nav > .disabled > a:hover,
377
+ .nav > .disabled > a:focus
357
378
  text-decoration: none
358
379
  background-color: transparent
359
380
  cursor: default