sass-rails-bootstrap 2.0.4 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. data/README.md +3 -3
  2. data/lib/sass-rails-bootstrap/sass_functions.rb +15 -0
  3. data/lib/sass-rails-bootstrap/version.rb +1 -1
  4. data/lib/sass-rails-bootstrap.rb +1 -0
  5. data/vendor/assets/javascripts/twitter/bootstrap/affix.js +104 -0
  6. data/vendor/assets/javascripts/twitter/bootstrap/alert.js +2 -2
  7. data/vendor/assets/javascripts/twitter/bootstrap/button.js +2 -2
  8. data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +13 -6
  9. data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +5 -4
  10. data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +69 -19
  11. data/vendor/assets/javascripts/twitter/bootstrap/modal.js +96 -75
  12. data/vendor/assets/javascripts/twitter/bootstrap/popover.js +19 -9
  13. data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +13 -13
  14. data/vendor/assets/javascripts/twitter/bootstrap/tab.js +3 -3
  15. data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +15 -15
  16. data/vendor/assets/javascripts/twitter/bootstrap/transition.js +3 -4
  17. data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +52 -37
  18. data/vendor/assets/javascripts/twitter/bootstrap.js +1 -0
  19. data/vendor/assets/stylesheets/twitter/_bootstrap-responsive.scss +5 -5
  20. data/vendor/assets/stylesheets/twitter/_bootstrap.scss +2 -1
  21. data/vendor/assets/stylesheets/twitter/bootstrap/_accordion.sass +3 -2
  22. data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.sass +14 -8
  23. data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.sass +9 -9
  24. data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.sass +71 -23
  25. data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.sass +81 -66
  26. data/vendor/assets/stylesheets/twitter/bootstrap/_carousel.sass +12 -3
  27. data/vendor/assets/stylesheets/twitter/bootstrap/_close.sass +4 -2
  28. data/vendor/assets/stylesheets/twitter/bootstrap/_code.sass +6 -4
  29. data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.sass +5 -2
  30. data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.sass +76 -13
  31. data/vendor/assets/stylesheets/twitter/bootstrap/_forms.sass +84 -41
  32. data/vendor/assets/stylesheets/twitter/bootstrap/_grid.sass +13 -2
  33. data/vendor/assets/stylesheets/twitter/bootstrap/_hero-unit.sass +4 -2
  34. data/vendor/assets/stylesheets/twitter/bootstrap/_labels-badges.sass +15 -2
  35. data/vendor/assets/stylesheets/twitter/bootstrap/_layouts.sass +3 -2
  36. data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.sass +107 -76
  37. data/vendor/assets/stylesheets/twitter/bootstrap/_modals.sass +8 -2
  38. data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.sass +234 -134
  39. data/vendor/assets/stylesheets/twitter/bootstrap/_navs.sass +130 -96
  40. data/vendor/assets/stylesheets/twitter/bootstrap/_pager.sass +5 -4
  41. data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.sass +16 -8
  42. data/vendor/assets/stylesheets/twitter/bootstrap/_popovers.sass +92 -38
  43. data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.sass +18 -13
  44. data/vendor/assets/stylesheets/twitter/bootstrap/_reset.sass +6 -2
  45. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-1200px-min.sass +9 -7
  46. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-767px-max.sass +75 -60
  47. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-768px-979px.sass +7 -5
  48. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-navbar.sass +15 -6
  49. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-utilities.sass +17 -14
  50. data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.sass +24 -4
  51. data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.sass +13 -3
  52. data/vendor/assets/stylesheets/twitter/bootstrap/_tables.sass +50 -9
  53. data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.sass +9 -4
  54. data/vendor/assets/stylesheets/twitter/bootstrap/_tooltip.sass +46 -17
  55. data/vendor/assets/stylesheets/twitter/bootstrap/_type.sass +69 -67
  56. data/vendor/assets/stylesheets/twitter/bootstrap/_utilities.sass +8 -2
  57. data/vendor/assets/stylesheets/twitter/bootstrap/_variables.sass +95 -26
  58. data/vendor/assets/stylesheets/twitter/bootstrap/_wells.sass +6 -5
  59. metadata +4 -2
@@ -1,30 +1,34 @@
1
- // NAVBAR (FIXED AND STATIC)
2
- // -------------------------
1
+ //
2
+ // Navbars (Redux)
3
+ // --------------------------------------------------
3
4
 
4
5
 
5
6
  // COMMON STYLES
6
7
  // -------------
7
8
 
9
+ // Base class and wrapper
8
10
  .navbar
11
+ overflow: visible
12
+ margin-bottom: $baseLineHeight
13
+ color: $navbarText
14
+
9
15
  // Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
10
16
  *position: relative
11
17
  *z-index: 2
12
-
13
- overflow: visible
14
- margin-bottom: $baseLineHeight
15
18
 
16
- // Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
19
+ // Inner for background effects
20
+ // Gradient is applied to its own element because overflow visible is not honored by IE when filter is present
17
21
  .navbar-inner
18
22
  min-height: $navbarHeight
19
23
  padding-left: 20px
20
24
  padding-right: 20px
21
25
  +gradient-vertical($navbarBackgroundHighlight, $navbarBackground)
26
+ border: 1px solid $navbarBorder
22
27
  +border-radius(4px)
23
- $shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1)
24
- +box-shadow($shadow)
25
-
28
+ +box-shadow(0 1px 4px rgba(0,0,0,.065))
29
+
26
30
  // Set width to auto for default container
27
- // We then reset it for fixed navbars in the +grid-generate mixin
31
+ // We then reset it for fixed navbars in the grid system mixin
28
32
  .navbar .container
29
33
  width: auto
30
34
 
@@ -32,45 +36,56 @@
32
36
  .nav-collapse.collapse
33
37
  height: auto
34
38
 
35
- // Brand, links, text, and buttons
36
- .navbar
37
- color: $navbarText
38
-
39
- // Hover and active states
40
- .brand:hover
39
+
40
+ // Brand: website or project name
41
+ // -------------------------
42
+ .navbar .brand
43
+ float: left
44
+ display: block
45
+ // Vertically center the text given $navbarHeight
46
+ padding: (($navbarHeight - $baseLineHeight) / 2) 20px (($navbarHeight - $baseLineHeight) / 2)
47
+ margin-left: -20px // negative indent to left-align the text down the page
48
+ font-size: 20px
49
+ font-weight: 200
50
+ color: $navbarBrandColor
51
+ text-shadow: 0 1px 0 $navbarBackgroundHighlight
52
+ &:hover
41
53
  text-decoration: none
42
-
43
- // Website or project name
44
- .brand
45
- float: left
46
- display: block
47
- // Vertically center the text given $navbarHeight
48
- $elementHeight: 20px
49
- padding: (($navbarHeight - $elementHeight) / 2 - 2) 20px (($navbarHeight - $elementHeight) / 2 + 2)
50
- margin-left: -20px // negative indent to left-align the text down the page
51
- font-size: 20px
52
- font-weight: 200
53
- line-height: 1
54
- color: $navbarBrandColor
55
-
56
- // Plain text in topbar
57
- .navbar-text
58
- margin-bottom: 0
59
- line-height: $navbarHeight
60
-
61
- // Janky solution for now to account for links outside the .nav
62
- .navbar-link
63
- color: $navbarLinkColor
64
- &:hover
65
- color: $navbarLinkColorHover
66
-
67
- // Buttons in navbar
68
- .btn,
69
- .btn-group
70
- +navbar-vertical-align(30px) // vertically center in navbar
71
- .btn-group .btn
72
- margin: 0 // then undo the margin here so we don't accidentally double it
73
-
54
+
55
+
56
+ // Plain text in topbar
57
+ // -------------------------
58
+ .navbar-text
59
+ margin-bottom: 0
60
+ line-height: $navbarHeight
61
+
62
+
63
+ // Janky solution for now to account for links outside the .nav
64
+ // -------------------------
65
+ .navbar-link
66
+ color: $navbarLinkColor
67
+ &:hover
68
+ color: $navbarLinkColorHover
69
+
70
+
71
+ // Dividers in navbar
72
+ // -------------------------
73
+ .navbar .divider-vertical
74
+ height: $navbarHeight
75
+ margin: 0 9px
76
+ border-left: 1px solid $navbarBackground
77
+ border-right: 1px solid $navbarBackgroundHighlight
78
+
79
+
80
+ // Buttons in navbar
81
+ // -------------------------
82
+ .navbar .btn,
83
+ .navbar .btn-group
84
+ +navbar-vertical-align(28px) // Vertically center in navbar
85
+
86
+ .navbar .btn-group .btn
87
+ margin: 0 // then undo the margin here so we don't accidentally double it
88
+
74
89
 
75
90
  // Navbar forms
76
91
  .navbar-form
@@ -80,9 +95,10 @@
80
95
  select,
81
96
  .radio,
82
97
  .checkbox
83
- +navbar-vertical-align(30px) // vertically center in navbar
98
+ +navbar-vertical-align(30px) // Vertically center in navbar
84
99
  input,
85
- select
100
+ select,
101
+ .btn
86
102
  display: inline-block
87
103
  margin-bottom: 0
88
104
  input[type="image"],
@@ -92,7 +108,7 @@
92
108
  .input-append,
93
109
  .input-prepend
94
110
  margin-top: 6px
95
- white-space: nowrap // prevent two items from separating within a .navbar-form that has .pull-left
111
+ white-space: nowrap // preven two items from separating within a .navbar-form that has .pull-left
96
112
  input
97
113
  margin-top: 0 // remove the margin on top since it's on the parent
98
114
 
@@ -101,34 +117,30 @@
101
117
  .navbar-search
102
118
  position: relative
103
119
  float: left
104
- +navbar-vertical-align(28px) // vertically center in navbar
120
+ +navbar-vertical-align(30px) // Vertically center in navbar
105
121
  margin-bottom: 0
106
122
  .search-query
107
- padding: 4px 9px
123
+ margin-bottom: 0
124
+ padding: 4px 14px
108
125
  +font-sans-serif(13px, normal, 1)
109
- color: $white
110
- background-color: $navbarSearchBackground
111
- border: 1px solid $navbarSearchBorder
112
- $shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)
113
- +box-shadow($shadow)
114
- +transition(none)
126
+ +border-radius(15px) // redeclare because of specificity of the type attribute
127
+
128
+
115
129
 
116
- +placeholder($navbarSearchPlaceholderColor)
130
+ // Static navbar
131
+ // -------------------------
132
+
133
+ .navbar-static-top
134
+ position: static
135
+ width: 100%
136
+ margin-bottom: 0 // remove 18px margin for default navbar
137
+ .navbar-inner
138
+ +border-radius(0)
117
139
 
118
- // Focus states (we use .focused since IE7-8 and down doesn't support :focus)
119
- &:focus,
120
- &.focused
121
- padding: 5px 10px
122
- color: $grayDark
123
- text-shadow: 0 1px 0 $white
124
- background-color: $navbarSearchBackgroundFocus
125
- border: 0
126
- +box-shadow(0 0 3px rgba(0,0,0,.15))
127
- outline: 0
128
140
 
129
141
 
130
- // FIXED NAVBAR
131
- // ------------
142
+ // Fixed navbar
143
+ // -------------------------
132
144
 
133
145
  // Shared (top/bottom) styles
134
146
  .navbar-fixed-top,
@@ -137,25 +149,42 @@
137
149
  right: 0
138
150
  left: 0
139
151
  z-index: $zindexFixedNavbar
140
- margin-bottom: 0 // remove 18px margin for static navbar
152
+ margin-bottom: 0 // remove 18px margin for default navbar
153
+ .navbar-fixed-top,
154
+ .navbar-fixed-bottom,
155
+ .navbar-static-top
156
+ .navbar-inner
157
+ border: 0
141
158
 
142
159
  .navbar-fixed-top .navbar-inner,
143
160
  .navbar-fixed-bottom .navbar-inner
144
- padding-left: 0
161
+ padding-left: 0
145
162
  padding-right: 0
146
163
  +border-radius(0)
147
-
164
+
165
+ // Reset container width
166
+ // Required here as we reset the width earlier on and the grid mixins don't override early enough
167
+ .navbar-static-top .container,
148
168
  .navbar-fixed-top .container,
149
169
  .navbar-fixed-bottom .container
150
- +core-grid-span($gridColumns, $gridColumnWidth, $gridGutterWidth)
151
-
170
+ +core-grid-span($gridColumns)
171
+
152
172
  // Fixed to top
153
173
  .navbar-fixed-top
154
174
  top: 0
175
+ .navbar-fixed-top,
176
+ .navbar-static-top
177
+ .navbar-inner
178
+ $shadow: inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1)
179
+ +box-shadow($shadow)
155
180
 
156
181
  // Fixed to bottom
157
182
  .navbar-fixed-bottom
158
183
  bottom: 0
184
+ .navbar-inner
185
+ $shadow: inset 0 1px 0 rgba(0,0,0,.1), 0 -1px 10px rgba(0,0,0,.1)
186
+ +box-shadow($shadow)
187
+
159
188
 
160
189
 
161
190
  // NAVIGATION
@@ -172,62 +201,41 @@
172
201
  float: right // redeclare due to specificity
173
202
 
174
203
  .navbar .nav > li
175
- display: block
176
204
  float: left
177
205
 
206
+
178
207
  // Links
179
208
  .navbar .nav > li > a
180
209
  float: none
181
210
  // Vertically center the text given $navbarHeight
182
- $elementHeight: 20px
183
- padding: (($navbarHeight - $elementHeight) / 2 - 1) 10px (($navbarHeight - $elementHeight) / 2 + 1)
184
- line-height: 19px
211
+ padding: (($navbarHeight - $baseLineHeight) / 2) 15px (($navbarHeight - $baseLineHeight) / 2)
185
212
  color: $navbarLinkColor
186
213
  text-decoration: none
187
- text-shadow: 0 -1px 0 rgba(0,0,0,.25)
214
+ text-shadow: 0 1px 0 $navbarBackgroundHighlight
188
215
 
189
- // Buttons
190
- .navbar .btn
191
- display: inline-block
192
- padding: 4px 10px 4px
193
- // Vertically center the button given $navbarHeight
194
- $elementHeight: 28px
195
- margin: (($navbarHeight - $elementHeight) / 2 - 1) 5px (($navbarHeight - $elementHeight) / 2)
196
- line-height: $baseLineHeight
216
+ .navbar .nav .dropdown-toggle .caret
217
+ margin-top: 8px
197
218
 
198
- .navbar .btn-group
199
- margin: 0
200
- // Vertically center the button given $navbarHeight
201
- $elementHeight: 28px
202
- padding: (($navbarHeight - $elementHeight) / 2 - 1) 5px (($navbarHeight - $elementHeight) / 2)
203
219
 
204
220
  // Hover
221
+ .navbar .nav > li > a:focus,
205
222
  .navbar .nav > li > a:hover
206
223
  background-color: $navbarLinkBackgroundHover // "transparent" is default to differentiate :hover from .active
207
224
  color: $navbarLinkColorHover
208
225
  text-decoration: none
209
226
 
227
+
210
228
  // Active nav items
211
- .navbar .nav .active > a,
212
- .navbar .nav .active > a:hover
229
+ .navbar .nav > .active > a,
230
+ .navbar .nav > .active > a:hover,
231
+ .navbar .nav > .active > a:focus
213
232
  color: $navbarLinkColorActive
214
233
  text-decoration: none
215
234
  background-color: $navbarLinkBackgroundActive
216
- background-color: rgba(0,0,0,.5)
235
+ -webkit-box-shadow: inset 0 3px 8px rgba(0,0,0,.125)
236
+ -moz-box-shadow: inset 0 3px 8px rgba(0,0,0,.125)
237
+ box-shadow: inset 0 3px 8px rgba(0,0,0,.125)
217
238
 
218
- // Dividers (basically a vertical hr)
219
- .navbar .divider-vertical
220
- height: $navbarHeight
221
- width: 1px
222
- margin: 0 9px
223
- overflow: hidden
224
- background-color: $navbarBackground
225
- border-right: 1px solid $navbarBackgroundHighlight
226
-
227
- // Secondary (floated right) nav in topbar
228
- .navbar .nav.pull-right
229
- margin-left: 10px
230
- margin-right: 0
231
239
 
232
240
  // Navbar button for toggling navbar items in responsive layouts
233
241
  // These definitions need to come after '.navbar .btn'
@@ -237,27 +245,28 @@
237
245
  padding: 7px 10px
238
246
  margin-left: 5px
239
247
  margin-right: 5px
240
- +button-background($navbarBackgroundHighlight, $navbarBackground)
241
- $shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075)
248
+ +button-background(darken($navbarBackgroundHighlight, 5%), darken($navbarBackground, 5%))
249
+ $shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)
242
250
  +box-shadow($shadow)
251
+
243
252
  .navbar .btn-navbar .icon-bar
244
253
  display: block
245
254
  width: 18px
246
255
  height: 2px
247
256
  background-color: #f5f5f5
248
257
  +border-radius(1px)
249
- +box-shadow(0 1px 0 rgba(0, 0, 0, 0.25))
258
+ +box-shadow(0 1px 0 rgba(0,0,0,.25))
259
+
250
260
  .btn-navbar .icon-bar + .icon-bar
251
261
  margin-top: 3px
252
262
 
253
263
 
264
+
254
265
  // Dropdown menus
255
266
  // --------------
256
267
 
257
268
  // Menu position and menu carets
258
- .navbar .dropdown-menu
259
- margin-top: 1px
260
- +border-radius(4px)
269
+ .navbar .nav > li > .dropdown-menu
261
270
  &:before
262
271
  content: ''
263
272
  display: inline-block
@@ -268,6 +277,7 @@
268
277
  position: absolute
269
278
  top: -7px
270
279
  left: 9px
280
+
271
281
  &:after
272
282
  content: ''
273
283
  display: inline-block
@@ -277,9 +287,10 @@
277
287
  position: absolute
278
288
  top: -6px
279
289
  left: 10px
280
-
290
+
291
+
281
292
  // Menu position and menu caret support for dropups via extra dropup class
282
- .navbar-fixed-bottom .dropdown-menu
293
+ .navbar-fixed-bottom .nav > li > .dropdown-menu
283
294
  &:before
284
295
  border-top: 7px solid #ccc
285
296
  border-top-color: $dropdownBorder
@@ -292,28 +303,28 @@
292
303
  bottom: -6px
293
304
  top: auto
294
305
 
295
- // Dropdown toggle caret
296
- .navbar .nav li.dropdown .dropdown-toggle .caret,
297
- .navbar .nav li.dropdown.open .caret
298
- border-top-color: $white
299
- border-bottom-color: $white
300
- .navbar .nav li.dropdown.active .caret
301
- +opacity(100)
302
306
 
303
307
  // Remove background color from open dropdown
304
308
  .navbar .nav li.dropdown.open > .dropdown-toggle,
305
309
  .navbar .nav li.dropdown.active > .dropdown-toggle,
306
310
  .navbar .nav li.dropdown.open.active > .dropdown-toggle
307
- background-color: transparent
311
+ background-color: $navbarLinkBackgroundActive
312
+ color: $navbarLinkColorActive
313
+
314
+ .navbar .nav li.dropdown > .dropdown-toggle .caret
315
+ border-top-color: $navbarLinkColor
316
+ border-bottom-color: $navbarLinkColor
317
+
318
+ .navbar .nav li.dropdown.open > .dropdown-toggle .caret,
319
+ .navbar .nav li.dropdown.active > .dropdown-toggle .caret,
320
+ .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret
321
+ border-top-color: $navbarLinkColorActive
322
+ border-bottom-color: $navbarLinkColorActive
308
323
 
309
- // Dropdown link on hover
310
- .navbar .nav li.dropdown.active > .dropdown-toggle:hover
311
- color: $white
312
324
 
313
325
  // Right aligned menus need alt position
314
- // TODO: rejigger this at some point to simplify the selectors
315
- .navbar .pull-right .dropdown-menu,
316
- .navbar .dropdown-menu.pull-right
326
+ .navbar .pull-right > li > .dropdown-menu,
327
+ .navbar .nav > li > .dropdown-menu.pull-right
317
328
  left: auto
318
329
  right: 0
319
330
  &:before
@@ -322,4 +333,93 @@
322
333
  &:after
323
334
  left: auto
324
335
  right: 13px
325
-
336
+ .dropdown-menu
337
+ left: auto
338
+ right: 100%
339
+ margin-left: 0
340
+ margin-right: -1px
341
+ +border-radius(6px 0 6px 6px)
342
+
343
+
344
+
345
+ // Inverted navbar
346
+ // -------------------------
347
+
348
+ .navbar-inverse
349
+ color: $navbarInverseText
350
+
351
+ .navbar-inner
352
+ +gradient-vertical($navbarInverseBackgroundHighlight, $navbarInverseBackground)
353
+ border-color: $navbarInverseBorder
354
+
355
+ .brand,
356
+ .nav > li > a
357
+ color: $navbarInverseLinkColor
358
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25)
359
+ &:hover
360
+ color: $navbarInverseLinkColorHover
361
+
362
+ .nav > li > a:focus,
363
+ .nav > li > a:hover
364
+ background-color: $navbarInverseLinkBackgroundHover
365
+ color: $navbarInverseLinkColorHover
366
+
367
+ .nav .active > a,
368
+ .nav .active > a:hover,
369
+ .nav .active > a:focus
370
+ color: $navbarInverseLinkColorActive
371
+ background-color: $navbarInverseLinkBackgroundActive
372
+
373
+ // Inline text links
374
+ .navbar-link
375
+ color: $navbarInverseLinkColor
376
+ &:hover
377
+ color: $navbarInverseLinkColorHover
378
+
379
+ // Dividers in navbar
380
+ .divider-vertical
381
+ border-left-color: $navbarInverseBackground
382
+ border-right-color: $navbarInverseBackgroundHighlight
383
+
384
+ // Dropdowns
385
+ .nav li.dropdown.open > .dropdown-toggle,
386
+ .nav li.dropdown.active > .dropdown-toggle,
387
+ .nav li.dropdown.open.active > .dropdown-toggle
388
+ background-color: $navbarInverseLinkBackgroundActive
389
+ color: $navbarInverseLinkColorActive
390
+
391
+ .nav li.dropdown > .dropdown-toggle .caret
392
+ border-top-color: $navbarInverseLinkColor
393
+ border-bottom-color: $navbarInverseLinkColor
394
+
395
+ .nav li.dropdown.open > .dropdown-toggle .caret,
396
+ .nav li.dropdown.active > .dropdown-toggle .caret,
397
+ .nav li.dropdown.open.active > .dropdown-toggle .caret
398
+ border-top-color: $navbarInverseLinkColorActive
399
+ border-bottom-color: $navbarInverseLinkColorActive
400
+
401
+ // Navbar search
402
+ .navbar-search
403
+ .search-query
404
+ color: $white
405
+ background-color: $navbarInverseSearchBackground
406
+ border-color: $navbarInverseSearchBorder
407
+ $shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)
408
+ +box-shadow($shadow)
409
+ +transition(none)
410
+ +placeholder($navbarInverseSearchPlaceholderColor)
411
+
412
+ // Focus states (we use .focused since IE7-8 and down doesn't support :focus)
413
+ &:focus,
414
+ &.focused
415
+ padding: 5px 15px
416
+ color: $grayDark
417
+ text-shadow: 0 1px 0 $white
418
+ background-color: $navbarInverseSearchBackgroundFocus
419
+ border: 0
420
+ +box-shadow(0 0 3px rgba(0,0,0,.15))
421
+ outline: 0
422
+
423
+ // Navbar collapse button
424
+ .btn-navbar
425
+ +button-background(darken($navbarInverseBackgroundHighlight, 5%), darken($navbarInverseBackground, 5%))