compass_twitter_bootstrap 2.0.1.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -27,7 +27,7 @@
27
27
 
28
28
  .modal-backdrop,
29
29
  .modal-backdrop.fade.in
30
- +opacity(0.8)
30
+ +bootstrap-opacity(80)
31
31
 
32
32
  // Base modal
33
33
  .modal
@@ -35,7 +35,6 @@
35
35
  top: 50%
36
36
  left: 50%
37
37
  z-index: $zindexModal
38
- max-height: 500px
39
38
  overflow: auto
40
39
  width: 560px
41
40
  margin: -250px 0 0 -280px
@@ -44,11 +43,11 @@
44
43
  border: 1px solid rgba(0, 0, 0, 0.3)
45
44
  *border: 1px solid #999
46
45
  /* IE6-7
47
- +border-radius(6px)
48
- +box-shadow(0 3px 7px rgba(0, 0, 0, 0.3))
49
- +background-clip(padding-box)
46
+ +bootstrap-border-radius(6px)
47
+ +bootstrap-box-shadow(0 3px 7px rgba(0, 0, 0, 0.3))
48
+ +bootstrap-background-clip(padding-box)
50
49
  &.fade
51
- +transition(e("opacity .3s linear, top .3s ease-out"))
50
+ +bootstrap-transition("opacity .3s linear, top .3s ease-out")
52
51
  top: -25%
53
52
  &.fade.in
54
53
  top: 50%
@@ -62,23 +61,31 @@
62
61
 
63
62
  // Body (where all modal content resises)
64
63
  .modal-body
64
+ overflow-y: auto
65
+ max-height: 400px
65
66
  padding: 15px
66
67
 
67
68
  // Remove bottom margin if need be
68
- .modal-body .modal-form
69
+ .modal-form
69
70
  margin-bottom: 0
70
71
 
71
72
  // Footer (for actions)
72
73
  .modal-footer
73
74
  padding: 14px 15px 15px
74
75
  margin-bottom: 0
76
+ text-align: right
77
+ // right align buttons
75
78
  background-color: #f5f5f5
76
79
  border-top: 1px solid #ddd
77
- +border-radius(0 0 6px 6px)
78
- +box-shadow(inset 0 1px 0 $white)
79
- +clearfix
80
- .btn
81
- float: right
80
+ +bootstrap-border-radius(0 0 6px 6px)
81
+ +bootstrap-box-shadow(inset 0 1px 0 $white)
82
+ +bootstrap-clearfix
83
+ // clear it in case folks use .pull-* classes on buttons
84
+ // Properly space out buttons
85
+ .btn + .btn
82
86
  margin-left: 5px
83
87
  margin-bottom: 0
84
88
  // account for input[type="submit"] which gets the bottom margin like all other inputs
89
+ // but override that for button groups
90
+ .btn-group .btn + .btn
91
+ margin-left: -1px
@@ -5,39 +5,25 @@
5
5
  // -------------
6
6
 
7
7
  .navbar
8
+ // Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
9
+ *position: relative
10
+ *z-index: 2
8
11
  overflow: visible
9
12
  margin-bottom: $baseLineHeight
10
13
 
11
14
  // Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
12
15
  .navbar-inner
16
+ min-height: $navbarHeight
13
17
  padding-left: 20px
14
18
  padding-right: 20px
15
- +gradient-vertical($navbarBackgroundHighlight, $navbarBackground)
16
- +border-radius(4px)
17
- $shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1)
18
- +box-shadow($shadow)
19
+ +bootstrap-gradient-vertical($navbarBackgroundHighlight, $navbarBackground)
20
+ +bootstrap-border-radius(4px)
21
+ +bootstrap-box-shadow("0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1)")
19
22
 
20
- // Navbar button for toggling navbar items in responsive layouts
21
- .btn-navbar
22
- display: none
23
- float: right
24
- padding: 7px 10px
25
- margin-left: 5px
26
- margin-right: 5px
27
- +buttonBackground($navbarBackgroundHighlight, $navbarBackground)
28
- $shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075)
29
- +box-shadow($shadow)
30
-
31
- .btn-navbar .icon-bar
32
- display: block
33
- width: 18px
34
- height: 2px
35
- background-color: #f5f5f5
36
- +border-radius(1px)
37
- +box-shadow(0 1px 0 rgba(0, 0, 0, 0.25))
38
-
39
- .btn-navbar .icon-bar + .icon-bar
40
- margin-top: 3px
23
+ // Set width to auto for default container
24
+ // We then reset it for fixed navbars in the #gridSystem mixin
25
+ .navbar .container
26
+ width: auto
41
27
 
42
28
  // Override the default collapsed state
43
29
  .nav-collapse.collapse
@@ -45,6 +31,7 @@
45
31
 
46
32
  // Brand, links, text, and buttons
47
33
  .navbar
34
+ color: $navbarText
48
35
  // Hover and active states
49
36
  .brand:hover
50
37
  text-decoration: none
@@ -52,43 +39,48 @@
52
39
  .brand
53
40
  float: left
54
41
  display: block
55
- padding: 8px 20px 12px
42
+ // Vertically center the text given @navbarHeight
43
+ $elementHeight: 20px
44
+ padding: ($navbarHeight - $elementHeight) / 2 - 2 20px ($navbarHeight - $elementHeight) / 2 + 2
56
45
  margin-left: -20px
57
46
  // negative indent to left-align the text down the page
58
47
  font-size: 20px
59
48
  font-weight: 200
60
49
  line-height: 1
61
- color: $white
50
+ color: $navbarBrandColor
62
51
  // Plain text in topbar
63
52
  .navbar-text
64
53
  margin-bottom: 0
65
- line-height: 40px
66
- color: $navbarText
67
- a:hover
68
- color: $white
69
- background-color: transparent
54
+ line-height: $navbarHeight
55
+ // Janky solution for now to account for links outside the .nav
56
+ .navbar-link
57
+ color: $navbarLinkColor
58
+ &:hover
59
+ color: $navbarLinkColorHover
70
60
  // Buttons in navbar
71
61
  .btn,
72
62
  .btn-group
73
- margin-top: 5px
74
- // make buttons vertically centered in navbar
63
+ +bootstrap-navbarVerticalAlign(30px)
64
+ // Vertically center in navbar
75
65
  .btn-group .btn
76
- margin-top: 0
66
+ margin: 0
77
67
  // then undo the margin here so we don't accidentally double it
78
68
 
79
69
  // Navbar forms
80
70
  .navbar-form
81
71
  margin-bottom: 0
82
72
  // remove default bottom margin
83
- +clearfix
73
+ +bootstrap-clearfix
74
+ input,
75
+ select,
76
+ .radio,
77
+ .checkbox
78
+ +bootstrap-navbarVerticalAlign(30px)
79
+ // Vertically center in navbar
84
80
  input,
85
81
  select
86
82
  display: inline-block
87
- margin-top: 5px
88
83
  margin-bottom: 0
89
- .radio,
90
- .checkbox
91
- margin-top: 5px
92
84
  input[type="image"],
93
85
  input[type="checkbox"],
94
86
  input[type="radio"]
@@ -106,51 +98,64 @@
106
98
  .navbar-search
107
99
  position: relative
108
100
  float: left
109
- margin-top: 6px
101
+ +bootstrap-navbarVerticalAlign(28px)
102
+ // Vertically center in navbar
110
103
  margin-bottom: 0
111
104
  .search-query
112
105
  padding: 4px 9px
113
- +font-sans-serif(13px, normal, 1)
106
+ +bootstrap-font-sans-serif(13px, normal, 1)
114
107
  color: $white
115
- color: rgba(255, 255, 255, 0.75)
116
- background: #666
117
- background: rgba(255, 255, 255, 0.3)
118
- border: 1px solid #111
119
- $shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255, 255, 255, 0.15)
120
- +box-shadow($shadow)
121
- +transition(none)
122
- // Placeholder text gets special styles; can't be bundled together though for some reason
123
- +placeholder($grayLighter)
124
- // Hover states
125
- &:hover
126
- color: $white
127
- background-color: $grayLight
128
- background-color: rgba(255, 255, 255, 0.5)
108
+ background-color: $navbarSearchBackground
109
+ border: 1px solid $navbarSearchBorder
110
+ +bootstrap-box-shadow("inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.15)")
111
+ +bootstrap-transition(none)
112
+ // Placeholder text gets special styles; can't be a grouped selector
113
+ &:-moz-placeholder
114
+ color: $navbarSearchPlaceholderColor
115
+ &::-webkit-input-placeholder
116
+ color: $navbarSearchPlaceholderColor
129
117
  // Focus states (we use .focused since IE7-8 and down doesn't support :focus)
130
118
  &:focus,
131
119
  &.focused
132
120
  padding: 5px 10px
133
121
  color: $grayDark
134
122
  text-shadow: 0 1px 0 $white
135
- background-color: $white
123
+ background-color: $navbarSearchBackgroundFocus
136
124
  border: 0
137
- +box-shadow(0 0 3px rgba(0, 0, 0, 0.15))
125
+ +bootstrap-box-shadow(0 0 3px rgba(0, 0, 0, 0.15))
138
126
  outline: 0
139
127
 
140
128
  // FIXED NAVBAR
141
129
  // ------------
142
130
 
143
- .navbar-fixed-top
131
+ // Shared (top/bottom) styles
132
+
133
+ .navbar-fixed-top,
134
+ .navbar-fixed-bottom
144
135
  position: fixed
145
- top: 0
146
136
  right: 0
147
137
  left: 0
148
138
  z-index: $zindexFixedNavbar
139
+ margin-bottom: 0
140
+ // remove 18px margin for static navbar
149
141
 
150
- .navbar-fixed-top .navbar-inner
142
+ .navbar-fixed-top .navbar-inner,
143
+ .navbar-fixed-bottom .navbar-inner
151
144
  padding-left: 0
152
145
  padding-right: 0
153
- +border-radius(0)
146
+ +bootstrap-border-radius(0)
147
+
148
+ .navbar-fixed-top .container,
149
+ .navbar-fixed-bottom .container
150
+ +bootstrap-grid-core-span($gridColumns, $gridColumnWidth, $gridGutterWidth)
151
+
152
+ // Fixed to top
153
+ .navbar-fixed-top
154
+ top: 0
155
+
156
+ // Fixed to bottom
157
+ .navbar-fixed-bottom
158
+ bottom: 0
154
159
 
155
160
  // NAVIGATION
156
161
  // ----------
@@ -173,12 +178,29 @@
173
178
  // Links
174
179
  .navbar .nav > li > a
175
180
  float: none
176
- padding: 10px 10px 11px
181
+ // Vertically center the text given @navbarHeight
182
+ $elementHeight: 20px
183
+ padding: ($navbarHeight - $elementHeight) / 2 - 1 10px ($navbarHeight - $elementHeight) / 2 + 1
177
184
  line-height: 19px
178
185
  color: $navbarLinkColor
179
186
  text-decoration: none
180
187
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
181
188
 
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
197
+
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
+
182
204
  // Hover
183
205
  .navbar .nav > li > a:hover
184
206
  background-color: $navbarLinkBackgroundHover
@@ -190,9 +212,9 @@
190
212
 
191
213
  .navbar .nav .active > a,
192
214
  .navbar .nav .active > a:hover
193
- color: $navbarLinkColorHover
215
+ color: $navbarLinkColorActive
194
216
  text-decoration: none
195
- background-color: $navbarBackground
217
+ background-color: $navbarLinkBackgroundActive
196
218
 
197
219
  // Dividers (basically a vertical hr)
198
220
  .navbar .divider-vertical
@@ -208,20 +230,40 @@
208
230
  margin-left: 10px
209
231
  margin-right: 0
210
232
 
233
+ // Navbar button for toggling navbar items in responsive layouts
234
+ // These definitions need to come after '.navbar .btn'
235
+ .navbar .btn-navbar
236
+ display: none
237
+ float: right
238
+ padding: 7px 10px
239
+ margin-left: 5px
240
+ margin-right: 5px
241
+ +bootstrap-buttonBackground($navbarBackgroundHighlight, $navbarBackground)
242
+ +bootstrap-box-shadow("inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075)")
243
+
244
+ .navbar .btn-navbar .icon-bar
245
+ display: block
246
+ width: 18px
247
+ height: 2px
248
+ background-color: #f5f5f5
249
+ +bootstrap-border-radius(1px)
250
+ +bootstrap-box-shadow(0 1px 0 rgba(0, 0, 0, 0.25))
251
+
252
+ .btn-navbar .icon-bar + .icon-bar
253
+ margin-top: 3px
254
+
211
255
  // Dropdown menus
212
256
  // --------------
213
257
 
214
258
  // Menu position and menu carets
215
259
  .navbar .dropdown-menu
216
- margin-top: 1px
217
- +border-radius(4px)
218
260
  &:before
219
261
  content: ''
220
262
  display: inline-block
221
263
  border-left: 7px solid transparent
222
264
  border-right: 7px solid transparent
223
265
  border-bottom: 7px solid #ccc
224
- border-bottom-color: rgba(0, 0, 0, 0.2)
266
+ border-bottom-color: $dropdownBorder
225
267
  position: absolute
226
268
  top: -7px
227
269
  left: 9px
@@ -230,33 +272,51 @@
230
272
  display: inline-block
231
273
  border-left: 6px solid transparent
232
274
  border-right: 6px solid transparent
233
- border-bottom: 6px solid $white
275
+ border-bottom: 6px solid $dropdownBackground
234
276
  position: absolute
235
277
  top: -6px
236
278
  left: 10px
237
279
 
280
+ // Menu position and menu caret support for dropups via extra dropup class
281
+ .navbar-fixed-bottom .dropdown-menu
282
+ &:before
283
+ border-top: 7px solid #ccc
284
+ border-top-color: $dropdownBorder
285
+ border-bottom: 0
286
+ bottom: -7px
287
+ top: auto
288
+ &:after
289
+ border-top: 6px solid $dropdownBackground
290
+ border-bottom: 0
291
+ bottom: -6px
292
+ top: auto
293
+
238
294
  // Dropdown toggle caret
239
295
 
240
- .navbar .nav .dropdown-toggle .caret,
241
- .navbar .nav .open.dropdown .caret
296
+ .navbar .nav li.dropdown .dropdown-toggle .caret,
297
+ .navbar .nav li.dropdown.open .caret
242
298
  border-top-color: $white
299
+ border-bottom-color: $white
243
300
 
244
- .navbar .nav .active .caret
245
- +opacity(1)
301
+ .navbar .nav li.dropdown.active .caret
302
+ +bootstrap-opacity(100)
246
303
 
247
304
  // Remove background color from open dropdown
248
305
 
249
- .navbar .nav .open > .dropdown-toggle,
250
- .navbar .nav .active > .dropdown-toggle,
251
- .navbar .nav .open.active > .dropdown-toggle
306
+ .navbar .nav li.dropdown.open > .dropdown-toggle,
307
+ .navbar .nav li.dropdown.active > .dropdown-toggle,
308
+ .navbar .nav li.dropdown.open.active > .dropdown-toggle
252
309
  background-color: transparent
253
310
 
254
311
  // Dropdown link on hover
255
- .navbar .nav .active > .dropdown-toggle:hover
312
+ .navbar .nav li.dropdown.active > .dropdown-toggle:hover
256
313
  color: $white
257
314
 
258
315
  // Right aligned menus need alt position
259
- .navbar .nav.pull-right .dropdown-menu
316
+ // TODO: rejigger this at some point to simplify the selectors
317
+
318
+ .navbar .pull-right .dropdown-menu,
319
+ .navbar .dropdown-menu.pull-right
260
320
  left: auto
261
321
  right: 0
262
322
  &:before
@@ -17,6 +17,25 @@
17
17
  text-decoration: none
18
18
  background-color: $grayLighter
19
19
 
20
+ // Redeclare pull classes because of specifity
21
+ .nav > .pull-right
22
+ float: right
23
+
24
+ // Nav headers (for dropdowns and lists)
25
+ .nav .nav-header
26
+ display: block
27
+ padding: 3px 15px
28
+ font-size: 11px
29
+ font-weight: bold
30
+ line-height: $baseLineHeight
31
+ color: $grayLight
32
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5)
33
+ text-transform: uppercase
34
+
35
+ // Space them out when they follow another list item (link)
36
+ .nav li + .nav-header
37
+ margin-top: 9px
38
+
20
39
  // Nav headers (for dropdowns and lists)
21
40
  .nav .nav-header
22
41
  display: block
@@ -36,8 +55,8 @@
36
55
  // --------
37
56
 
38
57
  .nav-list
39
- padding-left: 14px
40
- padding-right: 14px
58
+ padding-left: 15px
59
+ padding-right: 15px
41
60
  margin-bottom: 0
42
61
 
43
62
  .nav-list > li > a,
@@ -49,8 +68,8 @@
49
68
  .nav-list > li > a
50
69
  padding: 3px 15px
51
70
 
52
- .nav-list .active > a,
53
- .nav-list .active > a:hover
71
+ .nav-list > .active > a,
72
+ .nav-list > .active > a:hover
54
73
  color: $white
55
74
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2)
56
75
  background-color: $linkColor
@@ -58,6 +77,10 @@
58
77
  .nav-list [class^="icon-"]
59
78
  margin-right: 2px
60
79
 
80
+ // Dividers (basically an hr) within the dropdown
81
+ .nav-list .divider
82
+ +bootstrap-nav-divider
83
+
61
84
  // TABS AND PILLS
62
85
  // -------------
63
86
 
@@ -65,7 +88,7 @@
65
88
 
66
89
  .nav-tabs,
67
90
  .nav-pills
68
- +clearfix
91
+ +bootstrap-clearfix
69
92
 
70
93
  .nav-tabs > li,
71
94
  .nav-pills > li
@@ -94,8 +117,9 @@
94
117
  .nav-tabs > li > a
95
118
  padding-top: 9px
96
119
  padding-bottom: 9px
120
+ line-height: $baseLineHeight
97
121
  border: 1px solid transparent
98
- +border-radius(4px 4px 0 0)
122
+ +bootstrap-border-radius(4px 4px 0 0)
99
123
  &:hover
100
124
  border-color: $grayLighter $grayLighter #dddddd
101
125
 
@@ -118,12 +142,12 @@
118
142
  padding-bottom: 8px
119
143
  margin-top: 2px
120
144
  margin-bottom: 2px
121
- +border-radius(5px)
145
+ +bootstrap-border-radius(5px)
122
146
 
123
147
  // Active state
124
148
 
125
- .nav-pills .active > a,
126
- .nav-pills .active > a:hover
149
+ .nav-pills > .active > a,
150
+ .nav-pills > .active > a:hover
127
151
  color: $white
128
152
  background-color: $linkColor
129
153
 
@@ -144,13 +168,13 @@
144
168
 
145
169
  .nav-tabs.nav-stacked > li > a
146
170
  border: 1px solid #ddd
147
- +border-radius(0)
171
+ +bootstrap-border-radius(0)
148
172
 
149
173
  .nav-tabs.nav-stacked > li:first-child > a
150
- +border-radius(4px 4px 0 0)
174
+ +bootstrap-border-radius(4px 4px 0 0)
151
175
 
152
176
  .nav-tabs.nav-stacked > li:last-child > a
153
- +border-radius(0 0 4px 4px)
177
+ +bootstrap-border-radius(0 0 4px 4px)
154
178
 
155
179
  .nav-tabs.nav-stacked > li > a:hover
156
180
  border-color: #ddd
@@ -167,15 +191,13 @@
167
191
  // DROPDOWNS
168
192
  // ---------
169
193
 
170
- // Position the menu
171
-
172
- .nav-tabs .dropdown-menu,
173
- .nav-pills .dropdown-menu
174
- margin-top: 1px
175
- border-width: 1px
194
+ .nav-tabs .dropdown-menu
195
+ +bootstrap-border-radius(0 0 5px 5px)
196
+ // remove the top rounded corners here since there is a hard edge above the menu
176
197
 
177
198
  .nav-pills .dropdown-menu
178
- +border-radius(4px)
199
+ +bootstrap-border-radius(4px)
200
+ // make rounded corners match the pills
179
201
 
180
202
  // Default dropdown links
181
203
  // -------------------------
@@ -184,11 +206,13 @@
184
206
  .nav-tabs .dropdown-toggle .caret,
185
207
  .nav-pills .dropdown-toggle .caret
186
208
  border-top-color: $linkColor
209
+ border-bottom-color: $linkColor
187
210
  margin-top: 6px
188
211
 
189
212
  .nav-tabs .dropdown-toggle:hover .caret,
190
213
  .nav-pills .dropdown-toggle:hover .caret
191
214
  border-top-color: $linkColorHover
215
+ border-bottom-color: $linkColorHover
192
216
 
193
217
  // Active dropdown links
194
218
  // -------------------------
@@ -196,6 +220,7 @@
196
220
  .nav-tabs .active .dropdown-toggle .caret,
197
221
  .nav-pills .active .dropdown-toggle .caret
198
222
  border-top-color: $grayDark
223
+ border-bottom-color: $grayDark
199
224
 
200
225
  // Active:hover dropdown links
201
226
  // -------------------------
@@ -208,16 +233,17 @@
208
233
 
209
234
  .nav-tabs .open .dropdown-toggle,
210
235
  .nav-pills .open .dropdown-toggle,
211
- .nav > .open.active > a:hover
236
+ .nav > li.dropdown.open.active > a:hover
212
237
  color: $white
213
238
  background-color: $grayLight
214
239
  border-color: $grayLight
215
240
 
216
- .nav .open .caret,
217
- .nav .open.active .caret,
218
- .nav .open a:hover .caret
241
+ .nav li.dropdown.open .caret,
242
+ .nav li.dropdown.open.active .caret,
243
+ .nav li.dropdown.open a:hover .caret
219
244
  border-top-color: $white
220
- +opacity(1)
245
+ border-bottom-color: $white
246
+ +bootstrap-opacity(100)
221
247
 
222
248
  // Dropdowns in stacked tabs
223
249
  .tabs-stacked .open > a:hover
@@ -231,17 +257,17 @@
231
257
 
232
258
  // Clear any floats
233
259
  .tabbable
234
- +clearfix
260
+ +bootstrap-clearfix
235
261
 
236
262
  .tab-content
237
- overflow: hidden
263
+ overflow: auto
238
264
  // prevent content from running below tabs
239
265
 
240
266
  // Remove border on bottom, left, right
241
267
 
242
- .tabs-below .nav-tabs,
243
- .tabs-right .nav-tabs,
244
- .tabs-left .nav-tabs
268
+ .tabs-below > .nav-tabs,
269
+ .tabs-right > .nav-tabs,
270
+ .tabs-left > .nav-tabs
245
271
  border-bottom: 0
246
272
 
247
273
  // Show/hide tabbable areas
@@ -257,21 +283,21 @@
257
283
  // BOTTOM
258
284
  // ------
259
285
 
260
- .tabs-below .nav-tabs
286
+ .tabs-below > .nav-tabs
261
287
  border-top: 1px solid #ddd
262
288
 
263
- .tabs-below .nav-tabs > li
289
+ .tabs-below > .nav-tabs > li
264
290
  margin-top: -1px
265
291
  margin-bottom: 0
266
292
 
267
- .tabs-below .nav-tabs > li > a
268
- +border-radius(0 0 4px 4px)
293
+ .tabs-below > .nav-tabs > li > a
294
+ +bootstrap-border-radius(0 0 4px 4px)
269
295
  &:hover
270
296
  border-bottom-color: transparent
271
297
  border-top-color: #ddd
272
298
 
273
- .tabs-below .nav-tabs .active > a,
274
- .tabs-below .nav-tabs .active > a:hover
299
+ .tabs-below > .nav-tabs > .active > a,
300
+ .tabs-below > .nav-tabs > .active > a:hover
275
301
  border-color: transparent #ddd #ddd #ddd
276
302
 
277
303
  // LEFT & RIGHT
@@ -279,48 +305,48 @@
279
305
 
280
306
  // Common styles
281
307
 
282
- .tabs-left .nav-tabs > li,
283
- .tabs-right .nav-tabs > li
308
+ .tabs-left > .nav-tabs > li,
309
+ .tabs-right > .nav-tabs > li
284
310
  float: none
285
311
 
286
- .tabs-left .nav-tabs > li > a,
287
- .tabs-right .nav-tabs > li > a
312
+ .tabs-left > .nav-tabs > li > a,
313
+ .tabs-right > .nav-tabs > li > a
288
314
  min-width: 74px
289
315
  margin-right: 0
290
316
  margin-bottom: 3px
291
317
 
292
318
  // Tabs on the left
293
- .tabs-left .nav-tabs
319
+ .tabs-left > .nav-tabs
294
320
  float: left
295
321
  margin-right: 19px
296
322
  border-right: 1px solid #ddd
297
323
 
298
- .tabs-left .nav-tabs > li > a
324
+ .tabs-left > .nav-tabs > li > a
299
325
  margin-right: -1px
300
- +border-radius(4px 0 0 4px)
326
+ +bootstrap-border-radius(4px 0 0 4px)
301
327
 
302
- .tabs-left .nav-tabs > li > a:hover
328
+ .tabs-left > .nav-tabs > li > a:hover
303
329
  border-color: $grayLighter #dddddd $grayLighter $grayLighter
304
330
 
305
- .tabs-left .nav-tabs .active > a,
306
- .tabs-left .nav-tabs .active > a:hover
331
+ .tabs-left > .nav-tabs .active > a,
332
+ .tabs-left > .nav-tabs .active > a:hover
307
333
  border-color: #ddd transparent #ddd #ddd
308
334
  *border-right-color: $white
309
335
 
310
336
  // Tabs on the right
311
- .tabs-right .nav-tabs
337
+ .tabs-right > .nav-tabs
312
338
  float: right
313
339
  margin-left: 19px
314
340
  border-left: 1px solid #ddd
315
341
 
316
- .tabs-right .nav-tabs > li > a
342
+ .tabs-right > .nav-tabs > li > a
317
343
  margin-left: -1px
318
- +border-radius(0 4px 4px 0)
344
+ +bootstrap-border-radius(0 4px 4px 0)
319
345
 
320
- .tabs-right .nav-tabs > li > a:hover
346
+ .tabs-right > .nav-tabs > li > a:hover
321
347
  border-color: $grayLighter $grayLighter $grayLighter #dddddd
322
348
 
323
- .tabs-right .nav-tabs .active > a,
324
- .tabs-right .nav-tabs .active > a:hover
349
+ .tabs-right > .nav-tabs .active > a,
350
+ .tabs-right > .nav-tabs .active > a:hover
325
351
  border-color: #ddd #ddd #ddd transparent
326
352
  *border-left-color: $white