bootstrap-generators 2.0.4 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. data/README.md +211 -63
  2. data/lib/bootstrap/generators/version.rb +1 -1
  3. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.scss +102 -28
  4. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +104 -31
  5. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  6. data/vendor/assets/javascripts/bootstrap-affix.js +104 -0
  7. data/vendor/assets/javascripts/bootstrap-alert.js +1 -1
  8. data/vendor/assets/javascripts/bootstrap-button.js +2 -2
  9. data/vendor/assets/javascripts/bootstrap-carousel.js +12 -5
  10. data/vendor/assets/javascripts/bootstrap-collapse.js +4 -3
  11. data/vendor/assets/javascripts/bootstrap-dropdown.js +66 -16
  12. data/vendor/assets/javascripts/bootstrap-modal.js +95 -74
  13. data/vendor/assets/javascripts/bootstrap-popover.js +9 -4
  14. data/vendor/assets/javascripts/bootstrap-scrollspy.js +9 -9
  15. data/vendor/assets/javascripts/bootstrap-tab.js +2 -2
  16. data/vendor/assets/javascripts/bootstrap-tooltip.js +15 -15
  17. data/vendor/assets/javascripts/bootstrap-transition.js +2 -3
  18. data/vendor/assets/javascripts/bootstrap-typeahead.js +51 -36
  19. data/vendor/assets/javascripts/bootstrap.js +1 -1
  20. data/vendor/assets/stylesheets/bootstrap-responsive.css +1058 -0
  21. data/vendor/assets/stylesheets/bootstrap-responsive.min.css +9 -0
  22. data/vendor/assets/stylesheets/bootstrap.css +5774 -0
  23. data/vendor/assets/stylesheets/bootstrap.min.css +9 -0
  24. data/vendor/twitter/bootstrap/less/accordion.less +3 -2
  25. data/vendor/twitter/bootstrap/less/alerts.less +16 -9
  26. data/vendor/twitter/bootstrap/less/bootstrap.less +1 -1
  27. data/vendor/twitter/bootstrap/less/breadcrumbs.less +10 -10
  28. data/vendor/twitter/bootstrap/less/button-groups.less +79 -25
  29. data/vendor/twitter/bootstrap/less/buttons.less +107 -67
  30. data/vendor/twitter/bootstrap/less/carousel.less +13 -3
  31. data/vendor/twitter/bootstrap/less/close.less +4 -2
  32. data/vendor/twitter/bootstrap/less/code.less +6 -5
  33. data/vendor/twitter/bootstrap/less/component-animations.less +4 -2
  34. data/vendor/twitter/bootstrap/less/dropdowns.less +82 -15
  35. data/vendor/twitter/bootstrap/less/forms.less +124 -57
  36. data/vendor/twitter/bootstrap/less/grid.less +17 -1
  37. data/vendor/twitter/bootstrap/less/hero-unit.less +4 -2
  38. data/vendor/twitter/bootstrap/less/labels-badges.less +19 -2
  39. data/vendor/twitter/bootstrap/less/layouts.less +1 -2
  40. data/vendor/twitter/bootstrap/less/mixins.less +112 -77
  41. data/vendor/twitter/bootstrap/less/modals.less +12 -4
  42. data/vendor/twitter/bootstrap/less/navbar.less +245 -128
  43. data/vendor/twitter/bootstrap/less/navs.less +38 -17
  44. data/vendor/twitter/bootstrap/less/pager.less +11 -7
  45. data/vendor/twitter/bootstrap/less/pagination.less +23 -15
  46. data/vendor/twitter/bootstrap/less/popovers.less +101 -33
  47. data/vendor/twitter/bootstrap/less/progress-bars.less +18 -13
  48. data/vendor/twitter/bootstrap/less/reset.less +10 -4
  49. data/vendor/twitter/bootstrap/less/responsive-1200px-min.less +9 -7
  50. data/vendor/twitter/bootstrap/less/responsive-767px-max.less +95 -70
  51. data/vendor/twitter/bootstrap/less/responsive-768px-979px.less +7 -5
  52. data/vendor/twitter/bootstrap/less/responsive-navbar.less +30 -6
  53. data/vendor/twitter/bootstrap/less/responsive-utilities.less +17 -15
  54. data/vendor/twitter/bootstrap/less/responsive.less +5 -5
  55. data/vendor/twitter/bootstrap/less/scaffolding.less +27 -4
  56. data/vendor/twitter/bootstrap/less/sprites.less +21 -19
  57. data/vendor/twitter/bootstrap/less/tables.less +81 -12
  58. data/vendor/twitter/bootstrap/less/thumbnails.less +9 -4
  59. data/vendor/twitter/bootstrap/less/tooltip.less +47 -12
  60. data/vendor/twitter/bootstrap/less/type.less +75 -86
  61. data/vendor/twitter/bootstrap/less/utilities.less +9 -2
  62. data/vendor/twitter/bootstrap/less/variables.less +104 -31
  63. data/vendor/twitter/bootstrap/less/wells.less +7 -5
  64. data/vendor/twitter/bootstrap/sass/_accordion.scss +3 -2
  65. data/vendor/twitter/bootstrap/sass/_alerts.scss +15 -8
  66. data/vendor/twitter/bootstrap/sass/_breadcrumbs.scss +10 -10
  67. data/vendor/twitter/bootstrap/sass/_button-groups.scss +77 -23
  68. data/vendor/twitter/bootstrap/sass/_buttons.scss +106 -66
  69. data/vendor/twitter/bootstrap/sass/_carousel.scss +13 -3
  70. data/vendor/twitter/bootstrap/sass/_close.scss +5 -3
  71. data/vendor/twitter/bootstrap/sass/_code.scss +7 -6
  72. data/vendor/twitter/bootstrap/sass/_component-animations.scss +5 -3
  73. data/vendor/twitter/bootstrap/sass/_dropdowns.scss +85 -18
  74. data/vendor/twitter/bootstrap/sass/_forms.scss +121 -53
  75. data/vendor/twitter/bootstrap/sass/_grid.scss +17 -1
  76. data/vendor/twitter/bootstrap/sass/_hero-unit.scss +4 -2
  77. data/vendor/twitter/bootstrap/sass/_labels-badges.scss +29 -12
  78. data/vendor/twitter/bootstrap/sass/_layouts.scss +2 -3
  79. data/vendor/twitter/bootstrap/sass/_mixins.scss +163 -127
  80. data/vendor/twitter/bootstrap/sass/_modals.scss +12 -4
  81. data/vendor/twitter/bootstrap/sass/_navbar.scss +243 -127
  82. data/vendor/twitter/bootstrap/sass/_navs.scss +36 -15
  83. data/vendor/twitter/bootstrap/sass/_pager.scss +12 -8
  84. data/vendor/twitter/bootstrap/sass/_pagination.scss +23 -15
  85. data/vendor/twitter/bootstrap/sass/_popovers.scss +101 -33
  86. data/vendor/twitter/bootstrap/sass/_progress-bars.scss +18 -13
  87. data/vendor/twitter/bootstrap/sass/_reset.scss +8 -3
  88. data/vendor/twitter/bootstrap/sass/_responsive-1200px-min.scss +9 -7
  89. data/vendor/twitter/bootstrap/sass/_responsive-767px-max.scss +95 -70
  90. data/vendor/twitter/bootstrap/sass/_responsive-768px-979px.scss +8 -6
  91. data/vendor/twitter/bootstrap/sass/_responsive-navbar.scss +29 -5
  92. data/vendor/twitter/bootstrap/sass/_responsive-utilities.scss +32 -15
  93. data/vendor/twitter/bootstrap/sass/_scaffolding.scss +29 -4
  94. data/vendor/twitter/bootstrap/sass/_sprites.scss +21 -19
  95. data/vendor/twitter/bootstrap/sass/_tables.scss +79 -11
  96. data/vendor/twitter/bootstrap/sass/_thumbnails.scss +9 -4
  97. data/vendor/twitter/bootstrap/sass/_tooltip.scss +47 -12
  98. data/vendor/twitter/bootstrap/sass/_type.scss +74 -85
  99. data/vendor/twitter/bootstrap/sass/_utilities.scss +24 -2
  100. data/vendor/twitter/bootstrap/sass/_variables.scss +102 -28
  101. data/vendor/twitter/bootstrap/sass/_wells.scss +7 -5
  102. data/vendor/twitter/bootstrap/sass/bootstrap.scss +1 -1
  103. data/vendor/twitter/bootstrap/sass/responsive.scss +5 -5
  104. metadata +15 -10
@@ -1,8 +1,11 @@
1
- // MODALS
2
- // ------
1
+ //
2
+ // Modals
3
+ // --------------------------------------------------
3
4
 
4
- // Recalculate z-index where appropriate
5
- .modal-open {
5
+
6
+ // Recalculate z-index where appropriate,
7
+ // but only apply to elements within modal
8
+ .modal-open .modal {
6
9
  .dropdown-menu { z-index: $zindexDropdown + $zindexModal; }
7
10
  .dropdown.open { *z-index: $zindexDropdown + $zindexModal; }
8
11
  .popover { z-index: $zindexPopover + $zindexModal; }
@@ -54,6 +57,11 @@
54
57
  border-bottom: 1px solid #eee;
55
58
  // Close icon
56
59
  .close { margin-top: 2px; }
60
+ // Heading
61
+ h3 {
62
+ margin: 0;
63
+ line-height: 30px;
64
+ }
57
65
  }
58
66
 
59
67
  // Body (where all modal content resides)
@@ -1,27 +1,35 @@
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
19
 
17
- // Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
20
+ // Inner for background effects
21
+ // Gradient is applied to its own element because overflow visible is not honored by IE when filter is present
18
22
  .navbar-inner {
19
23
  min-height: $navbarHeight;
20
24
  padding-left: 20px;
21
25
  padding-right: 20px;
22
26
  @include gradient-vertical($navbarBackgroundHighlight, $navbarBackground);
27
+ border: 1px solid $navbarBorder;
23
28
  @include border-radius(4px);
24
- @include box-shadow(#{0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1)});
29
+ @include box-shadow(0 1px 4px rgba(0,0,0,.065));
30
+
31
+ // Prevent floats from breaking the navbar
32
+ @include clearfix();
25
33
  }
26
34
 
27
35
  // Set width to auto for default container
@@ -36,49 +44,62 @@
36
44
  }
37
45
 
38
46
 
39
- // Brand, links, text, and buttons
40
- .navbar {
41
- color: $navbarText;
42
- // Hover and active states
43
- .brand:hover {
47
+ // Brand: website or project name
48
+ // -------------------------
49
+ .navbar .brand {
50
+ float: left;
51
+ display: block;
52
+ // Vertically center the text given $navbarHeight
53
+ padding: (($navbarHeight - $baseLineHeight) / 2) 20px (($navbarHeight - $baseLineHeight) / 2);
54
+ margin-left: -20px; // negative indent to left-align the text down the page
55
+ font-size: 20px;
56
+ font-weight: 200;
57
+ color: $navbarBrandColor;
58
+ text-shadow: 0 1px 0 $navbarBackgroundHighlight;
59
+ &:hover {
44
60
  text-decoration: none;
45
61
  }
46
- // Website or project name
47
- .brand {
48
- float: left;
49
- display: block;
50
- // Vertically center the text given $navbarHeight
51
- $elementHeight: 20px;
52
- padding: (($navbarHeight - $elementHeight) / 2 - 2) 20px (($navbarHeight - $elementHeight) / 2 + 2);
53
- margin-left: -20px; // negative indent to left-align the text down the page
54
- font-size: 20px;
55
- font-weight: 200;
56
- line-height: 1;
57
- color: $navbarBrandColor;
58
- }
59
- // Plain text in topbar
60
- .navbar-text {
61
- margin-bottom: 0;
62
- line-height: $navbarHeight;
63
- }
64
- // Janky solution for now to account for links outside the .nav
65
- .navbar-link {
66
- color: $navbarLinkColor;
67
- &:hover {
68
- color: $navbarLinkColorHover;
69
- }
70
- }
71
- // Buttons in navbar
72
- .btn,
73
- .btn-group {
74
- @include navbarVerticalAlign(30px); // Vertically center in navbar
75
- }
76
- .btn-group .btn {
77
- margin: 0; // then undo the margin here so we don't accidentally double it
62
+ }
63
+
64
+ // Plain text in topbar
65
+ // -------------------------
66
+ .navbar-text {
67
+ margin-bottom: 0;
68
+ line-height: $navbarHeight;
69
+ }
70
+
71
+ // Janky solution for now to account for links outside the .nav
72
+ // -------------------------
73
+ .navbar-link {
74
+ color: $navbarLinkColor;
75
+ &:hover {
76
+ color: $navbarLinkColorHover;
78
77
  }
79
78
  }
80
79
 
80
+ // Dividers in navbar
81
+ // -------------------------
82
+ .navbar .divider-vertical {
83
+ height: $navbarHeight;
84
+ margin: 0 9px;
85
+ border-left: 1px solid $navbarBackground;
86
+ border-right: 1px solid $navbarBackgroundHighlight;
87
+ }
88
+
89
+ // Buttons in navbar
90
+ // -------------------------
91
+ .navbar .btn,
92
+ .navbar .btn-group {
93
+ @include navbarVerticalAlign(30px); // Vertically center in navbar
94
+ }
95
+ .navbar .btn-group .btn,
96
+ .navbar .input-prepend .btn,
97
+ .navbar .input-append .btn {
98
+ margin-top: 0; // then undo the margin here so we don't accidentally double it
99
+ }
100
+
81
101
  // Navbar forms
102
+ // -------------------------
82
103
  .navbar-form {
83
104
  margin-bottom: 0; // remove default bottom margin
84
105
  @include clearfix();
@@ -89,7 +110,8 @@
89
110
  @include navbarVerticalAlign(30px); // Vertically center in navbar
90
111
  }
91
112
  input,
92
- select {
113
+ select,
114
+ .btn {
93
115
  display: inline-block;
94
116
  margin-bottom: 0;
95
117
  }
@@ -109,40 +131,38 @@
109
131
  }
110
132
 
111
133
  // Navbar search
134
+ // -------------------------
112
135
  .navbar-search {
113
136
  position: relative;
114
137
  float: left;
115
- @include navbarVerticalAlign(28px); // Vertically center in navbar
138
+ @include navbarVerticalAlign(30px); // Vertically center in navbar
116
139
  margin-bottom: 0;
117
140
  .search-query {
118
- padding: 4px 9px;
141
+ margin-bottom: 0;
142
+ padding: 4px 14px;
119
143
  @include font-sans-serif(13px, normal, 1);
120
- color: $white;
121
- background-color: $navbarSearchBackground;
122
- border: 1px solid $navbarSearchBorder;
123
- @include box-shadow(#{inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)});
124
- @include transition(none);
125
-
126
- @include placeholder($navbarSearchPlaceholderColor);
127
-
128
- // Focus states (we use .focused since IE7-8 and down doesn't support :focus)
129
- &:focus,
130
- &.focused {
131
- padding: 5px 10px;
132
- color: $grayDark;
133
- text-shadow: 0 1px 0 $white;
134
- background-color: $navbarSearchBackgroundFocus;
135
- border: 0;
136
- @include box-shadow(0 0 3px rgba(0,0,0,.15));
137
- outline: 0;
138
- }
144
+ @include border-radius(15px); // redeclare because of specificity of the type attribute
139
145
  }
140
146
  }
141
147
 
142
148
 
143
149
 
144
- // FIXED NAVBAR
145
- // ------------
150
+ // Static navbar
151
+ // -------------------------
152
+
153
+ .navbar-static-top {
154
+ position: static;
155
+ width: 100%;
156
+ margin-bottom: 0; // remove 18px margin for default navbar
157
+ .navbar-inner {
158
+ @include border-radius(0);
159
+ }
160
+ }
161
+
162
+
163
+
164
+ // Fixed navbar
165
+ // -------------------------
146
166
 
147
167
  // Shared (top/bottom) styles
148
168
  .navbar-fixed-top,
@@ -151,7 +171,14 @@
151
171
  right: 0;
152
172
  left: 0;
153
173
  z-index: $zindexFixedNavbar;
154
- margin-bottom: 0; // remove 18px margin for static navbar
174
+ margin-bottom: 0; // remove 18px margin for default navbar
175
+ }
176
+ .navbar-fixed-top .navbar-inner,
177
+ .navbar-static-top .navbar-inner {
178
+ border-width: 0 0 1px;
179
+ }
180
+ .navbar-fixed-bottom .navbar-inner {
181
+ border-width: 1px 0 0;
155
182
  }
156
183
  .navbar-fixed-top .navbar-inner,
157
184
  .navbar-fixed-bottom .navbar-inner {
@@ -160,19 +187,31 @@
160
187
  @include border-radius(0);
161
188
  }
162
189
 
190
+ // Reset container width
191
+ // Required here as we reset the width earlier on and the grid mixins don't override early enough
192
+ .navbar-static-top .container,
163
193
  .navbar-fixed-top .container,
164
194
  .navbar-fixed-bottom .container {
165
- @include core-span($gridColumns);
195
+ @include grid-core-span($gridColumns, $gridColumnWidth, $gridGutterWidth);
166
196
  }
167
197
 
168
198
  // Fixed to top
169
199
  .navbar-fixed-top {
170
200
  top: 0;
171
201
  }
202
+ .navbar-fixed-top,
203
+ .navbar-static-top {
204
+ .navbar-inner {
205
+ @include box-shadow(#{inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1)});
206
+ }
207
+ }
172
208
 
173
209
  // Fixed to bottom
174
210
  .navbar-fixed-bottom {
175
211
  bottom: 0;
212
+ .navbar-inner {
213
+ @include box-shadow(#{inset 0 1px 0 rgba(0,0,0,.1), 0 -1px 10px rgba(0,0,0,.1)});
214
+ }
176
215
  }
177
216
 
178
217
 
@@ -189,9 +228,9 @@
189
228
  }
190
229
  .navbar .nav.pull-right {
191
230
  float: right; // redeclare due to specificity
231
+ margin-right: 0; // remove margin on float right nav
192
232
  }
193
233
  .navbar .nav > li {
194
- display: block;
195
234
  float: left;
196
235
  }
197
236
 
@@ -199,29 +238,17 @@
199
238
  .navbar .nav > li > a {
200
239
  float: none;
201
240
  // Vertically center the text given $navbarHeight
202
- $elementHeight: 20px;
203
- padding: (($navbarHeight - $elementHeight) / 2 - 1) 10px (($navbarHeight - $elementHeight) / 2 + 1);
204
- line-height: 19px;
241
+ padding: (($navbarHeight - $baseLineHeight) / 2) 15px (($navbarHeight - $baseLineHeight) / 2);
205
242
  color: $navbarLinkColor;
206
243
  text-decoration: none;
207
- text-shadow: 0 -1px 0 rgba(0,0,0,.25);
244
+ text-shadow: 0 1px 0 $navbarBackgroundHighlight;
208
245
  }
209
- // Buttons
210
- .navbar .btn {
211
- display: inline-block;
212
- padding: 4px 10px 4px;
213
- // Vertically center the button given @navbarHeight
214
- $elementHeight: 28px;
215
- margin: (($navbarHeight - $elementHeight) / 2 - 1) 5px (($navbarHeight - $elementHeight) / 2);
216
- line-height: $baseLineHeight;
217
- }
218
- .navbar .btn-group {
219
- margin: 0;
220
- // Vertically center the button given @navbarHeight
221
- $elementHeight: 28px;
222
- padding: (($navbarHeight - $elementHeight) / 2 - 1) 5px (($navbarHeight - $elementHeight) / 2);
246
+ .navbar .nav .dropdown-toggle .caret {
247
+ margin-top: 8px;
223
248
  }
249
+
224
250
  // Hover
251
+ .navbar .nav > li > a:focus,
225
252
  .navbar .nav > li > a:hover {
226
253
  background-color: $navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover from .active
227
254
  color: $navbarLinkColorHover;
@@ -229,27 +256,15 @@
229
256
  }
230
257
 
231
258
  // Active nav items
232
- .navbar .nav .active > a,
233
- .navbar .nav .active > a:hover {
259
+ .navbar .nav > .active > a,
260
+ .navbar .nav > .active > a:hover,
261
+ .navbar .nav > .active > a:focus {
234
262
  color: $navbarLinkColorActive;
235
263
  text-decoration: none;
236
264
  background-color: $navbarLinkBackgroundActive;
237
- }
238
-
239
- // Dividers (basically a vertical hr)
240
- .navbar .divider-vertical {
241
- height: $navbarHeight;
242
- width: 1px;
243
- margin: 0 9px;
244
- overflow: hidden;
245
- background-color: $navbarBackground;
246
- border-right: 1px solid $navbarBackgroundHighlight;
247
- }
248
-
249
- // Secondary (floated right) nav in topbar
250
- .navbar .nav.pull-right {
251
- margin-left: 10px;
252
- margin-right: 0;
265
+ -webkit-box-shadow: inset 0 3px 8px rgba(0,0,0,.125);
266
+ -moz-box-shadow: inset 0 3px 8px rgba(0,0,0,.125);
267
+ box-shadow: inset 0 3px 8px rgba(0,0,0,.125);
253
268
  }
254
269
 
255
270
  // Navbar button for toggling navbar items in responsive layouts
@@ -260,7 +275,7 @@
260
275
  padding: 7px 10px;
261
276
  margin-left: 5px;
262
277
  margin-right: 5px;
263
- @include buttonBackground($navbarBackgroundHighlight, $navbarBackground);
278
+ @include buttonBackground(darken($navbarBackgroundHighlight, 5%), darken($navbarBackground, 5.25%));
264
279
  @include box-shadow(#{inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)});
265
280
  }
266
281
  .navbar .btn-navbar .icon-bar {
@@ -276,11 +291,12 @@
276
291
  }
277
292
 
278
293
 
294
+
279
295
  // Dropdown menus
280
296
  // --------------
281
297
 
282
298
  // Menu position and menu carets
283
- .navbar .dropdown-menu {
299
+ .navbar .nav > li > .dropdown-menu {
284
300
  &:before {
285
301
  content: '';
286
302
  display: inline-block;
@@ -319,32 +335,28 @@
319
335
  top: auto;
320
336
  }
321
337
  }
322
- // Dropdown toggle caret
323
- .navbar .nav li.dropdown .dropdown-toggle .caret,
324
- .navbar .nav li.dropdown.open .caret {
325
- border-top-color: $white;
326
- border-bottom-color: $white;
327
- }
328
- .navbar .nav li.dropdown.active .caret {
329
- @include opacity(100);
330
- }
331
338
 
332
339
  // Remove background color from open dropdown
333
340
  .navbar .nav li.dropdown.open > .dropdown-toggle,
334
341
  .navbar .nav li.dropdown.active > .dropdown-toggle,
335
342
  .navbar .nav li.dropdown.open.active > .dropdown-toggle {
336
- background-color: transparent;
343
+ background-color: $navbarLinkBackgroundActive;
344
+ color: $navbarLinkColorActive;
337
345
  }
338
-
339
- // Dropdown link on hover
340
- .navbar .nav li.dropdown.active > .dropdown-toggle:hover {
341
- color: $white;
346
+ .navbar .nav li.dropdown > .dropdown-toggle .caret {
347
+ border-top-color: $navbarLinkColor;
348
+ border-bottom-color: $navbarLinkColor;
349
+ }
350
+ .navbar .nav li.dropdown.open > .dropdown-toggle .caret,
351
+ .navbar .nav li.dropdown.active > .dropdown-toggle .caret,
352
+ .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {
353
+ border-top-color: $navbarLinkColorActive;
354
+ border-bottom-color: $navbarLinkColorActive;
342
355
  }
343
356
 
344
357
  // Right aligned menus need alt position
345
- // TODO: rejigger this at some point to simplify the selectors
346
- .navbar .pull-right .dropdown-menu,
347
- .navbar .dropdown-menu.pull-right {
358
+ .navbar .pull-right > li > .dropdown-menu,
359
+ .navbar .nav > li > .dropdown-menu.pull-right {
348
360
  left: auto;
349
361
  right: 0;
350
362
  &:before {
@@ -355,4 +367,108 @@
355
367
  left: auto;
356
368
  right: 13px;
357
369
  }
358
- }
370
+ .dropdown-menu {
371
+ left: auto;
372
+ right: 100%;
373
+ margin-left: 0;
374
+ margin-right: -1px;
375
+ @include border-radius(6px 0 6px 6px);
376
+ }
377
+ }
378
+
379
+
380
+ // Inverted navbar
381
+ // -------------------------
382
+
383
+ .navbar-inverse {
384
+ color: $navbarInverseText;
385
+
386
+ .navbar-inner {
387
+ @include gradient-vertical($navbarInverseBackgroundHighlight, $navbarInverseBackground);
388
+ border-color: $navbarInverseBorder;
389
+ }
390
+
391
+ .brand,
392
+ .nav > li > a {
393
+ color: $navbarInverseLinkColor;
394
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
395
+ &:hover {
396
+ color: $navbarInverseLinkColorHover;
397
+ }
398
+ }
399
+
400
+ .nav > li > a:focus,
401
+ .nav > li > a:hover {
402
+ background-color: $navbarInverseLinkBackgroundHover;
403
+ color: $navbarInverseLinkColorHover;
404
+ }
405
+
406
+ .nav .active > a,
407
+ .nav .active > a:hover,
408
+ .nav .active > a:focus {
409
+ color: $navbarInverseLinkColorActive;
410
+ background-color: $navbarInverseLinkBackgroundActive;
411
+ }
412
+
413
+ // Inline text links
414
+ .navbar-link {
415
+ color: $navbarInverseLinkColor;
416
+ &:hover {
417
+ color: $navbarInverseLinkColorHover;
418
+ }
419
+ }
420
+
421
+ // Dividers in navbar
422
+ .divider-vertical {
423
+ border-left-color: $navbarInverseBackground;
424
+ border-right-color: $navbarInverseBackgroundHighlight;
425
+ }
426
+
427
+ // Dropdowns
428
+ .nav li.dropdown.open > .dropdown-toggle,
429
+ .nav li.dropdown.active > .dropdown-toggle,
430
+ .nav li.dropdown.open.active > .dropdown-toggle {
431
+ background-color: $navbarInverseLinkBackgroundActive;
432
+ color: $navbarInverseLinkColorActive;
433
+ }
434
+ .nav li.dropdown > .dropdown-toggle .caret {
435
+ border-top-color: $navbarInverseLinkColor;
436
+ border-bottom-color: $navbarInverseLinkColor;
437
+ }
438
+ .nav li.dropdown.open > .dropdown-toggle .caret,
439
+ .nav li.dropdown.active > .dropdown-toggle .caret,
440
+ .nav li.dropdown.open.active > .dropdown-toggle .caret {
441
+ border-top-color: $navbarInverseLinkColorActive;
442
+ border-bottom-color: $navbarInverseLinkColorActive;
443
+ }
444
+
445
+ // Navbar search
446
+ .navbar-search {
447
+ .search-query {
448
+ color: $white;
449
+ background-color: $navbarInverseSearchBackground;
450
+ border-color: $navbarInverseSearchBorder;
451
+ @include box-shadow(#{inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)});
452
+ @include transition(none);
453
+ @include placeholder($navbarInverseSearchPlaceholderColor);
454
+
455
+ // Focus states (we use .focused since IE7-8 and down doesn't support :focus)
456
+ &:focus,
457
+ &.focused {
458
+ padding: 5px 15px;
459
+ color: $grayDark;
460
+ text-shadow: 0 1px 0 $white;
461
+ background-color: $navbarInverseSearchBackgroundFocus;
462
+ border: 0;
463
+ @include box-shadow(0 0 3px rgba(0,0,0,.15));
464
+ outline: 0;
465
+ }
466
+ }
467
+ }
468
+
469
+ // Navbar collapse button
470
+ .btn-navbar {
471
+ @include buttonBackground(darken($navbarInverseBackgroundHighlight, 5%), darken($navbarInverseBackground, 5%));
472
+ }
473
+
474
+ }