compass_twitter_bootstrap 2.0.1.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. data/README.md +17 -0
  2. data/build/convert.rb +2 -12
  3. data/lib/compass_twitter_bootstrap/version.rb +1 -1
  4. data/stylesheets/_compass_twitter_bootstrap.scss +2 -2
  5. data/stylesheets/_compass_twitter_bootstrap_awesome.scss +66 -0
  6. data/stylesheets/_compass_twitter_bootstrap_responsive.scss +14 -293
  7. data/stylesheets/compass_twitter_bootstrap/_accordion.scss +6 -1
  8. data/stylesheets/compass_twitter_bootstrap/_alerts.scss +3 -15
  9. data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +5 -3
  10. data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +82 -39
  11. data/stylesheets/compass_twitter_bootstrap/_buttons.scss +38 -30
  12. data/stylesheets/compass_twitter_bootstrap/_carousel.scss +5 -5
  13. data/stylesheets/compass_twitter_bootstrap/_close.scss +13 -2
  14. data/stylesheets/compass_twitter_bootstrap/_code.scss +9 -9
  15. data/stylesheets/compass_twitter_bootstrap/_component-animations.scss +10 -8
  16. data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +62 -49
  17. data/stylesheets/compass_twitter_bootstrap/_font-awesome.scss +267 -0
  18. data/stylesheets/compass_twitter_bootstrap/_forms.scss +141 -77
  19. data/stylesheets/compass_twitter_bootstrap/_grid.scss +2 -5
  20. data/stylesheets/compass_twitter_bootstrap/_hero-unit.scss +4 -2
  21. data/stylesheets/compass_twitter_bootstrap/_labels-badges.scss +63 -0
  22. data/stylesheets/compass_twitter_bootstrap/_layouts.scss +3 -3
  23. data/stylesheets/compass_twitter_bootstrap/_mixins.scss +275 -255
  24. data/stylesheets/compass_twitter_bootstrap/_modals.scss +19 -12
  25. data/stylesheets/compass_twitter_bootstrap/_navbar.scss +146 -81
  26. data/stylesheets/compass_twitter_bootstrap/_navs.scss +77 -52
  27. data/stylesheets/compass_twitter_bootstrap/_pager.scss +8 -2
  28. data/stylesheets/compass_twitter_bootstrap/_pagination.scss +6 -5
  29. data/stylesheets/compass_twitter_bootstrap/_popovers.scss +9 -9
  30. data/stylesheets/compass_twitter_bootstrap/_progress-bars.scss +41 -19
  31. data/stylesheets/compass_twitter_bootstrap/_reset.scss +4 -4
  32. data/stylesheets/compass_twitter_bootstrap/_responsive-1200px-min.scss +26 -0
  33. data/stylesheets/compass_twitter_bootstrap/_responsive-767px-max.scss +149 -0
  34. data/stylesheets/compass_twitter_bootstrap/_responsive-768px-979px.scss +17 -0
  35. data/stylesheets/compass_twitter_bootstrap/_responsive-navbar.scss +146 -0
  36. data/stylesheets/compass_twitter_bootstrap/_responsive-utilities.scss +41 -0
  37. data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +4 -4
  38. data/stylesheets/compass_twitter_bootstrap/_sprites.scss +42 -9
  39. data/stylesheets/compass_twitter_bootstrap/_tables.scss +60 -34
  40. data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +18 -6
  41. data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +7 -7
  42. data/stylesheets/compass_twitter_bootstrap/_type.scss +28 -11
  43. data/stylesheets/compass_twitter_bootstrap/_variables.scss +107 -9
  44. data/stylesheets/compass_twitter_bootstrap/_wells.scss +13 -2
  45. data/stylesheets_sass/_compass_twitter_bootstrap.sass +2 -2
  46. data/stylesheets_sass/_compass_twitter_bootstrap_awesome.sass +70 -0
  47. data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +13 -224
  48. data/stylesheets_sass/compass_twitter_bootstrap/_accordion.sass +5 -1
  49. data/stylesheets_sass/compass_twitter_bootstrap/_alerts.sass +3 -14
  50. data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +5 -3
  51. data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +73 -36
  52. data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +39 -28
  53. data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +5 -5
  54. data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +12 -2
  55. data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +10 -9
  56. data/stylesheets_sass/compass_twitter_bootstrap/_component-animations.sass +5 -5
  57. data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +57 -47
  58. data/stylesheets_sass/compass_twitter_bootstrap/_font-awesome.sass +515 -0
  59. data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +140 -76
  60. data/stylesheets_sass/compass_twitter_bootstrap/_grid.sass +2 -5
  61. data/stylesheets_sass/compass_twitter_bootstrap/_hero-unit.sass +4 -2
  62. data/stylesheets_sass/compass_twitter_bootstrap/_labels-badges.sass +85 -0
  63. data/stylesheets_sass/compass_twitter_bootstrap/_layouts.sass +3 -3
  64. data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +277 -260
  65. data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +19 -12
  66. data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +138 -78
  67. data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +77 -51
  68. data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +8 -2
  69. data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +6 -5
  70. data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +9 -9
  71. data/stylesheets_sass/compass_twitter_bootstrap/_progress-bars.sass +44 -19
  72. data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +4 -3
  73. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-1200px-min.sass +17 -0
  74. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-767px-max.sass +115 -0
  75. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-768px-979px.sass +11 -0
  76. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-navbar.sass +115 -0
  77. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-utilities.sass +56 -0
  78. data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +4 -4
  79. data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +70 -7
  80. data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +72 -34
  81. data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +15 -5
  82. data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +7 -7
  83. data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +27 -11
  84. data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +105 -8
  85. data/stylesheets_sass/compass_twitter_bootstrap/_wells.sass +11 -2
  86. data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
  87. data/vendor/assets/fonts/fontawesome-webfont.svg +175 -0
  88. data/vendor/assets/fonts/fontawesome-webfont.svgz +0 -0
  89. data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
  90. data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
  91. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  92. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  93. data/vendor/assets/javascripts/bootstrap-alert.js +28 -32
  94. data/vendor/assets/javascripts/bootstrap-all.js +12 -0
  95. data/vendor/assets/javascripts/bootstrap-button.js +32 -34
  96. data/vendor/assets/javascripts/bootstrap-carousel.js +33 -21
  97. data/vendor/assets/javascripts/bootstrap-collapse.js +47 -26
  98. data/vendor/assets/javascripts/bootstrap-dropdown.js +18 -10
  99. data/vendor/assets/javascripts/bootstrap-modal.js +25 -17
  100. data/vendor/assets/javascripts/bootstrap-popover.js +13 -10
  101. data/vendor/assets/javascripts/bootstrap-scrollspy.js +44 -18
  102. data/vendor/assets/javascripts/bootstrap-tab.js +12 -7
  103. data/vendor/assets/javascripts/bootstrap-tooltip.js +40 -35
  104. data/vendor/assets/javascripts/bootstrap-transition.js +30 -20
  105. data/vendor/assets/javascripts/bootstrap-typeahead.js +29 -15
  106. metadata +29 -9
  107. data/stylesheets/compass_twitter_bootstrap/_labels.scss +0 -32
  108. data/stylesheets_sass/compass_twitter_bootstrap/_labels.sass +0 -42
@@ -24,7 +24,7 @@
24
24
 
25
25
  .modal-backdrop,
26
26
  .modal-backdrop.fade.in {
27
- @include opacity(0.8);
27
+ @include bootstrap-opacity(80);
28
28
  }
29
29
 
30
30
  // Base modal
@@ -33,7 +33,6 @@
33
33
  top: 50%;
34
34
  left: 50%;
35
35
  z-index: $zindexModal;
36
- max-height: 500px;
37
36
  overflow: auto;
38
37
  width: 560px;
39
38
  margin: -250px 0 0 -280px;
@@ -41,11 +40,11 @@
41
40
  border: 1px solid #999;
42
41
  border: 1px solid rgba(0,0,0,.3);
43
42
  *border: 1px solid #999; /* IE6-7 */
44
- @include border-radius(6px);
45
- @include box-shadow(0 3px 7px rgba(0,0,0,0.3));
46
- @include background-clip(padding-box);
43
+ @include bootstrap-border-radius(6px);
44
+ @include bootstrap-box-shadow(0 3px 7px rgba(0,0,0,0.3));
45
+ @include bootstrap-background-clip(padding-box);
47
46
  &.fade {
48
- @include transition(e('opacity .3s linear, top .3s ease-out'));
47
+ @include bootstrap-transition('opacity .3s linear, top .3s ease-out');
49
48
  top: -25%;
50
49
  }
51
50
  &.fade.in { top: 50%; }
@@ -59,10 +58,12 @@
59
58
 
60
59
  // Body (where all modal content resises)
61
60
  .modal-body {
61
+ overflow-y: auto;
62
+ max-height: 400px;
62
63
  padding: 15px;
63
64
  }
64
65
  // Remove bottom margin if need be
65
- .modal-body .modal-form {
66
+ .modal-form {
66
67
  margin-bottom: 0;
67
68
  }
68
69
 
@@ -70,14 +71,20 @@
70
71
  .modal-footer {
71
72
  padding: 14px 15px 15px;
72
73
  margin-bottom: 0;
74
+ text-align: right; // right align buttons
73
75
  background-color: #f5f5f5;
74
76
  border-top: 1px solid #ddd;
75
- @include border-radius(0 0 6px 6px);
76
- @include box-shadow(inset 0 1px 0 $white);
77
- @include clearfix();
78
- .btn {
79
- float: right;
77
+ @include bootstrap-border-radius(0 0 6px 6px);
78
+ @include bootstrap-box-shadow(inset 0 1px 0 $white);
79
+ @include bootstrap-clearfix(); // clear it in case folks use .pull-* classes on buttons
80
+
81
+ // Properly space out buttons
82
+ .btn + .btn {
80
83
  margin-left: 5px;
81
84
  margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
82
85
  }
86
+ // but override that for button groups
87
+ .btn-group .btn + .btn {
88
+ margin-left: -1px;
89
+ }
83
90
  }
@@ -6,42 +6,30 @@
6
6
  // -------------
7
7
 
8
8
  .navbar {
9
+ // Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
10
+ *position: relative;
11
+ *z-index: 2;
12
+
9
13
  overflow: visible;
10
14
  margin-bottom: $baseLineHeight;
11
15
  }
12
16
 
13
17
  // Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
14
18
  .navbar-inner {
19
+ min-height: $navbarHeight;
15
20
  padding-left: 20px;
16
21
  padding-right: 20px;
17
- @include gradient-vertical($navbarBackgroundHighlight, $navbarBackground);
18
- @include border-radius(4px);
19
- $shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
20
- @include box-shadow($shadow);
22
+ @include bootstrap-gradient-vertical($navbarBackgroundHighlight, $navbarBackground);
23
+ @include bootstrap-border-radius(4px);
24
+ @include bootstrap-box-shadow("0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1)");
21
25
  }
22
26
 
23
- // Navbar button for toggling navbar items in responsive layouts
24
- .btn-navbar {
25
- display: none;
26
- float: right;
27
- padding: 7px 10px;
28
- margin-left: 5px;
29
- margin-right: 5px;
30
- @include buttonBackground($navbarBackgroundHighlight, $navbarBackground);
31
- $shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075);
32
- @include box-shadow($shadow);
33
- }
34
- .btn-navbar .icon-bar {
35
- display: block;
36
- width: 18px;
37
- height: 2px;
38
- background-color: #f5f5f5;
39
- @include border-radius(1px);
40
- @include box-shadow(0 1px 0 rgba(0,0,0,.25));
41
- }
42
- .btn-navbar .icon-bar + .icon-bar {
43
- margin-top: 3px;
27
+ // Set width to auto for default container
28
+ // We then reset it for fixed navbars in the #gridSystem mixin
29
+ .navbar .container {
30
+ width: auto;
44
31
  }
32
+
45
33
  // Override the default collapsed state
46
34
  .nav-collapse.collapse {
47
35
  height: auto;
@@ -50,6 +38,7 @@
50
38
 
51
39
  // Brand, links, text, and buttons
52
40
  .navbar {
41
+ color: $navbarText;
53
42
  // Hover and active states
54
43
  .brand:hover {
55
44
  text-decoration: none;
@@ -58,47 +47,52 @@
58
47
  .brand {
59
48
  float: left;
60
49
  display: block;
61
- padding: 8px 20px 12px;
50
+ // Vertically center the text given @navbarHeight
51
+ $elementHeight: 20px;
52
+ padding: (($navbarHeight - $elementHeight) / 2 - 2) 20px (($navbarHeight - $elementHeight) / 2 + 2);
62
53
  margin-left: -20px; // negative indent to left-align the text down the page
63
54
  font-size: 20px;
64
55
  font-weight: 200;
65
56
  line-height: 1;
66
- color: $white;
57
+ color: $navbarBrandColor;
67
58
  }
68
59
  // Plain text in topbar
69
60
  .navbar-text {
70
61
  margin-bottom: 0;
71
- line-height: 40px;
72
- color: $navbarText;
73
- a:hover {
74
- color: $white;
75
- background-color: transparent;
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;
76
69
  }
77
70
  }
78
71
  // Buttons in navbar
79
72
  .btn,
80
73
  .btn-group {
81
- margin-top: 5px; // make buttons vertically centered in navbar
74
+ @include bootstrap-navbarVerticalAlign(30px); // Vertically center in navbar
82
75
  }
83
76
  .btn-group .btn {
84
- margin-top: 0; // then undo the margin here so we don't accidentally double it
77
+ margin: 0; // then undo the margin here so we don't accidentally double it
85
78
  }
86
79
  }
87
80
 
88
81
  // Navbar forms
89
82
  .navbar-form {
90
83
  margin-bottom: 0; // remove default bottom margin
91
- @include clearfix();
84
+ @include bootstrap-clearfix();
85
+ input,
86
+ select,
87
+ .radio,
88
+ .checkbox {
89
+ @include bootstrap-navbarVerticalAlign(30px); // Vertically center in navbar
90
+ }
92
91
  input,
93
92
  select {
94
93
  display: inline-block;
95
- margin-top: 5px;
96
94
  margin-bottom: 0;
97
95
  }
98
- .radio,
99
- .checkbox {
100
- margin-top: 5px;
101
- }
102
96
  input[type="image"],
103
97
  input[type="checkbox"],
104
98
  input[type="radio"] {
@@ -118,60 +112,76 @@
118
112
  .navbar-search {
119
113
  position: relative;
120
114
  float: left;
121
- margin-top: 6px;
115
+ @include bootstrap-navbarVerticalAlign(28px); // Vertically center in navbar
122
116
  margin-bottom: 0;
123
117
  .search-query {
124
118
  padding: 4px 9px;
125
- @include font-sans-serif(13px, normal, 1);
119
+ @include bootstrap-font-sans-serif(13px, normal, 1);
126
120
  color: $white;
127
- color: rgba(255,255,255,.75);
128
- background: #666;
129
- background: rgba(255,255,255,.3);
130
- border: 1px solid #111;
131
- $shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.15);
132
- @include box-shadow($shadow);
133
- @include transition(none);
134
-
135
- // Placeholder text gets special styles; can't be bundled together though for some reason
136
- @include placeholder($grayLighter);
137
-
138
- // Hover states
139
- &:hover {
140
- color: $white;
141
- background-color: $grayLight;
142
- background-color: rgba(255,255,255,.5);
121
+ background-color: $navbarSearchBackground;
122
+ border: 1px solid $navbarSearchBorder;
123
+ @include bootstrap-box-shadow("inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.15)");
124
+ @include bootstrap-transition(none);
125
+
126
+ // Placeholder text gets special styles; can't be a grouped selector
127
+ &:-moz-placeholder {
128
+ color: $navbarSearchPlaceholderColor;
143
129
  }
130
+ &::-webkit-input-placeholder {
131
+ color: $navbarSearchPlaceholderColor;
132
+ }
133
+
144
134
  // Focus states (we use .focused since IE7-8 and down doesn't support :focus)
145
135
  &:focus,
146
136
  &.focused {
147
137
  padding: 5px 10px;
148
138
  color: $grayDark;
149
139
  text-shadow: 0 1px 0 $white;
150
- background-color: $white;
140
+ background-color: $navbarSearchBackgroundFocus;
151
141
  border: 0;
152
- @include box-shadow(0 0 3px rgba(0,0,0,.15));
142
+ @include bootstrap-box-shadow(0 0 3px rgba(0,0,0,.15));
153
143
  outline: 0;
154
144
  }
155
145
  }
156
146
  }
157
147
 
158
148
 
149
+
159
150
  // FIXED NAVBAR
160
151
  // ------------
161
152
 
162
- .navbar-fixed-top {
153
+ // Shared (top/bottom) styles
154
+ .navbar-fixed-top,
155
+ .navbar-fixed-bottom {
163
156
  position: fixed;
164
- top: 0;
165
157
  right: 0;
166
158
  left: 0;
167
159
  z-index: $zindexFixedNavbar;
160
+ margin-bottom: 0; // remove 18px margin for static navbar
168
161
  }
169
- .navbar-fixed-top .navbar-inner {
162
+ .navbar-fixed-top .navbar-inner,
163
+ .navbar-fixed-bottom .navbar-inner {
170
164
  padding-left: 0;
171
165
  padding-right: 0;
172
- @include border-radius(0);
166
+ @include bootstrap-border-radius(0);
173
167
  }
174
168
 
169
+ .navbar-fixed-top .container,
170
+ .navbar-fixed-bottom .container {
171
+ @include bootstrap-grid-core-span($gridColumns, $gridColumnWidth, $gridGutterWidth);
172
+ }
173
+
174
+ // Fixed to top
175
+ .navbar-fixed-top {
176
+ top: 0;
177
+ }
178
+
179
+ // Fixed to bottom
180
+ .navbar-fixed-bottom {
181
+ bottom: 0;
182
+ }
183
+
184
+
175
185
 
176
186
  // NAVIGATION
177
187
  // ----------
@@ -194,12 +204,29 @@
194
204
  // Links
195
205
  .navbar .nav > li > a {
196
206
  float: none;
197
- padding: 10px 10px 11px;
207
+ // Vertically center the text given @navbarHeight
208
+ $elementHeight: 20px;
209
+ padding: (($navbarHeight - $elementHeight) / 2 - 1) 10px (($navbarHeight - $elementHeight) / 2 + 1);
198
210
  line-height: 19px;
199
211
  color: $navbarLinkColor;
200
212
  text-decoration: none;
201
213
  text-shadow: 0 -1px 0 rgba(0,0,0,.25);
202
214
  }
215
+ // Buttons
216
+ .navbar .btn {
217
+ display: inline-block;
218
+ padding: 4px 10px 4px;
219
+ // Vertically center the button given @navbarHeight
220
+ $elementHeight: 28px;
221
+ margin: (($navbarHeight - $elementHeight) / 2 - 1) 5px (($navbarHeight - $elementHeight) / 2);
222
+ line-height: $baseLineHeight;
223
+ }
224
+ .navbar .btn-group {
225
+ margin: 0;
226
+ // Vertically center the button given @navbarHeight
227
+ $elementHeight: 28px;
228
+ padding: (($navbarHeight - $elementHeight) / 2 - 1) 5px (($navbarHeight - $elementHeight) / 2);
229
+ }
203
230
  // Hover
204
231
  .navbar .nav > li > a:hover {
205
232
  background-color: $navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover from .active
@@ -210,9 +237,9 @@
210
237
  // Active nav items
211
238
  .navbar .nav .active > a,
212
239
  .navbar .nav .active > a:hover {
213
- color: $navbarLinkColorHover;
240
+ color: $navbarLinkColorActive;
214
241
  text-decoration: none;
215
- background-color: $navbarBackground;
242
+ background-color: $navbarLinkBackgroundActive;
216
243
  }
217
244
 
218
245
  // Dividers (basically a vertical hr)
@@ -231,6 +258,28 @@
231
258
  margin-right: 0;
232
259
  }
233
260
 
261
+ // Navbar button for toggling navbar items in responsive layouts
262
+ // These definitions need to come after '.navbar .btn'
263
+ .navbar .btn-navbar {
264
+ display: none;
265
+ float: right;
266
+ padding: 7px 10px;
267
+ margin-left: 5px;
268
+ margin-right: 5px;
269
+ @include bootstrap-buttonBackground($navbarBackgroundHighlight, $navbarBackground);
270
+ @include bootstrap-box-shadow("inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)");
271
+ }
272
+ .navbar .btn-navbar .icon-bar {
273
+ display: block;
274
+ width: 18px;
275
+ height: 2px;
276
+ background-color: #f5f5f5;
277
+ @include bootstrap-border-radius(1px);
278
+ @include bootstrap-box-shadow(0 1px 0 rgba(0,0,0,.25));
279
+ }
280
+ .btn-navbar .icon-bar + .icon-bar {
281
+ margin-top: 3px;
282
+ }
234
283
 
235
284
 
236
285
  // Dropdown menus
@@ -238,15 +287,13 @@
238
287
 
239
288
  // Menu position and menu carets
240
289
  .navbar .dropdown-menu {
241
- margin-top: 1px;
242
- @include border-radius(4px);
243
290
  &:before {
244
291
  content: '';
245
292
  display: inline-block;
246
293
  border-left: 7px solid transparent;
247
294
  border-right: 7px solid transparent;
248
295
  border-bottom: 7px solid #ccc;
249
- border-bottom-color: rgba(0,0,0,.2);
296
+ border-bottom-color: $dropdownBorder;
250
297
  position: absolute;
251
298
  top: -7px;
252
299
  left: 9px;
@@ -256,36 +303,54 @@
256
303
  display: inline-block;
257
304
  border-left: 6px solid transparent;
258
305
  border-right: 6px solid transparent;
259
- border-bottom: 6px solid $white;
306
+ border-bottom: 6px solid $dropdownBackground;
260
307
  position: absolute;
261
308
  top: -6px;
262
309
  left: 10px;
263
310
  }
264
311
  }
265
-
312
+ // Menu position and menu caret support for dropups via extra dropup class
313
+ .navbar-fixed-bottom .dropdown-menu {
314
+ &:before {
315
+ border-top: 7px solid #ccc;
316
+ border-top-color: $dropdownBorder;
317
+ border-bottom: 0;
318
+ bottom: -7px;
319
+ top: auto;
320
+ }
321
+ &:after {
322
+ border-top: 6px solid $dropdownBackground;
323
+ border-bottom: 0;
324
+ bottom: -6px;
325
+ top: auto;
326
+ }
327
+ }
266
328
  // Dropdown toggle caret
267
- .navbar .nav .dropdown-toggle .caret,
268
- .navbar .nav .open.dropdown .caret {
329
+ .navbar .nav li.dropdown .dropdown-toggle .caret,
330
+ .navbar .nav li.dropdown.open .caret {
269
331
  border-top-color: $white;
332
+ border-bottom-color: $white;
270
333
  }
271
- .navbar .nav .active .caret {
272
- @include opacity(1.0);
334
+ .navbar .nav li.dropdown.active .caret {
335
+ @include bootstrap-opacity(100);
273
336
  }
274
337
 
275
338
  // Remove background color from open dropdown
276
- .navbar .nav .open > .dropdown-toggle,
277
- .navbar .nav .active > .dropdown-toggle,
278
- .navbar .nav .open.active > .dropdown-toggle {
339
+ .navbar .nav li.dropdown.open > .dropdown-toggle,
340
+ .navbar .nav li.dropdown.active > .dropdown-toggle,
341
+ .navbar .nav li.dropdown.open.active > .dropdown-toggle {
279
342
  background-color: transparent;
280
343
  }
281
344
 
282
345
  // Dropdown link on hover
283
- .navbar .nav .active > .dropdown-toggle:hover {
346
+ .navbar .nav li.dropdown.active > .dropdown-toggle:hover {
284
347
  color: $white;
285
348
  }
286
349
 
287
350
  // Right aligned menus need alt position
288
- .navbar .nav.pull-right .dropdown-menu {
351
+ // TODO: rejigger this at some point to simplify the selectors
352
+ .navbar .pull-right .dropdown-menu,
353
+ .navbar .dropdown-menu.pull-right {
289
354
  left: auto;
290
355
  right: 0;
291
356
  &:before {