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
@@ -7,60 +7,63 @@
7
7
  // Core
8
8
  .btn
9
9
  display: inline-block
10
+ +bootstrap-ie7-inline-block
10
11
  padding: 4px 10px 4px
11
12
  margin-bottom: 0
12
13
  // For input.btn
13
14
  font-size: $baseFontSize
14
15
  line-height: $baseLineHeight
16
+ *line-height: 20px
15
17
  color: $grayDark
16
18
  text-align: center
17
19
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75)
18
20
  vertical-align: middle
19
- +buttonBackground($white, darken($white, 10%))
20
- border: 1px solid #ccc
21
- border-bottom-color: #bbb
22
- +border-radius(4px)
23
- $shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05)
24
- +box-shadow($shadow)
25
21
  cursor: pointer
22
+ +bootstrap-buttonBackground($btnBackground, $btnBackgroundHighlight)
23
+ border: 1px solid $btnBorder
24
+ *border: 0
25
+ // Remove the border to prevent IE7's black border on input:focus
26
+ border-bottom-color: darken($btnBorder, 10%)
27
+ +bootstrap-border-radius(4px)
28
+ +bootstrap-ie7-restore-left-whitespace
26
29
  // Give IE7 some love
27
- +reset-filter
28
- +ie7-restore-left-whitespace
30
+ +bootstrap-box-shadow("inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)")
29
31
 
30
32
  // Hover state
31
33
  .btn:hover
32
34
  color: $grayDark
33
35
  text-decoration: none
34
36
  background-color: darken($white, 10%)
37
+ *background-color: darken($white, 15%)
38
+ /* Buttons in IE7 don't get borders, so darken on hover
35
39
  background-position: 0 -15px
36
40
  // transition is only when going to hover, otherwise the background
37
41
  // behind the gradient (there for IE<=9 fallback) gets mismatched
38
- +transition(background-position 0.1s linear)
42
+ +bootstrap-transition(background-position 0.1s linear)
39
43
 
40
44
  // Focus state for keyboard and accessibility
41
45
  .btn:focus
42
- +tab-focus
46
+ +bootstrap-tab-focus
43
47
 
44
48
  // Active state
45
49
 
46
50
  .btn.active,
47
51
  .btn:active
48
- background-image: none
49
- $shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05)
50
- +box-shadow($shadow)
51
52
  background-color: darken($white, 10%)
52
- background-color: darken($white, 15%) e("\9")
53
+ background-color: darken($white, 15%) \9
54
+ background-image: none
53
55
  outline: 0
56
+ +bootstrap-box-shadow("inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)")
54
57
 
55
58
  // Disabled state
56
59
 
57
60
  .btn.disabled,
58
61
  .btn[disabled]
59
62
  cursor: default
60
- background-image: none
61
63
  background-color: darken($white, 10%)
62
- +opacity(0.65)
63
- +box-shadow(none)
64
+ background-image: none
65
+ +bootstrap-opacity(65)
66
+ +bootstrap-box-shadow(none)
64
67
 
65
68
  // Button Sizes
66
69
  // --------------------------------------------------
@@ -70,7 +73,7 @@
70
73
  padding: 9px 14px
71
74
  font-size: $baseFontSize + 2px
72
75
  line-height: normal
73
- +border-radius(5px)
76
+ +bootstrap-border-radius(5px)
74
77
 
75
78
  .btn-large [class^="icon-"]
76
79
  margin-top: 1px
@@ -108,8 +111,8 @@
108
111
  .btn-info:hover,
109
112
  .btn-inverse,
110
113
  .btn-inverse:hover
111
- text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
112
114
  color: $white
115
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
113
116
 
114
117
  // Provide *some* extra contrast for those who can get it
115
118
 
@@ -118,33 +121,38 @@
118
121
  .btn-danger.active,
119
122
  .btn-success.active,
120
123
  .btn-info.active,
121
- .btn-dark.active
124
+ .btn-inverse.active
122
125
  color: rgba(255, 255, 255, 0.75)
123
126
 
124
127
  // Set the backgrounds
125
128
  // -------------------------
129
+ .btn
130
+ // reset here as of 2.0.3 due to Recess property order
131
+ border-color: #ccc
132
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25)
133
+
126
134
  .btn-primary
127
- +buttonBackground($primaryButtonBackground, adjust-hue($primaryButtonBackground, 20))
135
+ +bootstrap-buttonBackground($btnPrimaryBackground, $btnPrimaryBackgroundHighlight)
128
136
 
129
137
  // Warning appears are orange
130
138
  .btn-warning
131
- +buttonBackground(lighten($orange, 15%), $orange)
139
+ +bootstrap-buttonBackground($btnWarningBackground, $btnWarningBackgroundHighlight)
132
140
 
133
141
  // Danger and error appear as red
134
142
  .btn-danger
135
- +buttonBackground(#ee5f5b, #bd362f)
143
+ +bootstrap-buttonBackground($btnDangerBackground, $btnDangerBackgroundHighlight)
136
144
 
137
145
  // Success appears as green
138
146
  .btn-success
139
- +buttonBackground(#62c462, #51a351)
147
+ +bootstrap-buttonBackground($btnSuccessBackground, $btnSuccessBackgroundHighlight)
140
148
 
141
149
  // Info appears as a neutral blue
142
150
  .btn-info
143
- +buttonBackground(#5bc0de, #2f96b4)
151
+ +bootstrap-buttonBackground($btnInfoBackground, $btnInfoBackgroundHighlight)
144
152
 
145
153
  // Inverse appears as dark gray
146
154
  .btn-inverse
147
- +buttonBackground(#454545, #262626)
155
+ +bootstrap-buttonBackground($btnInverseBackground, $btnInverseBackgroundHighlight)
148
156
 
149
157
  // Cross-browser Jank
150
158
  // --------------------------------------------------
@@ -158,9 +166,12 @@ input[type="submit"].btn
158
166
  // IE7 has some default padding on button controls
159
167
  *padding-top: 2px
160
168
  *padding-bottom: 2px
161
- &.large
169
+ &.btn-large
162
170
  *padding-top: 7px
163
171
  *padding-bottom: 7px
164
- &.small
172
+ &.btn-small
165
173
  *padding-top: 3px
166
174
  *padding-bottom: 3px
175
+ &.btn-mini
176
+ *padding-top: 1px
177
+ *padding-bottom: 1px
@@ -15,7 +15,7 @@
15
15
  .item
16
16
  display: none
17
17
  position: relative
18
- +transition(0.6s ease-in-out left)
18
+ +bootstrap-transition(0.6s ease-in-out left)
19
19
  // Account for jankitude on images
20
20
  .item > img
21
21
  display: block
@@ -60,14 +60,14 @@
60
60
  text-align: center
61
61
  background: $grayDarker
62
62
  border: 3px solid $white
63
- +border-radius(23px)
64
- +opacity(0.5)
63
+ +bootstrap-border-radius(23px)
64
+ +bootstrap-opacity(50)
65
65
  // we can't have this transition here
66
66
  // because webkit cancels the carousel
67
67
  // animation if you trip this while
68
68
  // in the middle of another animation
69
69
  // ;_;
70
- // @include transition(opacity .2s linear);
70
+ // @include bootstrap-transition(opacity .2s linear);
71
71
  // Reposition the right one
72
72
  &.right
73
73
  left: auto
@@ -76,7 +76,7 @@
76
76
  &:hover
77
77
  color: $white
78
78
  text-decoration: none
79
- +opacity(0.9)
79
+ +bootstrap-opacity(90)
80
80
 
81
81
  // Caption for text below images
82
82
  // -----------------------------
@@ -8,9 +8,19 @@
8
8
  line-height: $baseLineHeight
9
9
  color: $black
10
10
  text-shadow: 0 1px 0 rgba(255, 255, 255, 1)
11
- +opacity(0.2)
11
+ +bootstrap-opacity(20)
12
12
  &:hover
13
13
  color: $black
14
14
  text-decoration: none
15
- +opacity(0.4)
16
15
  cursor: pointer
16
+ +bootstrap-opacity(40)
17
+
18
+ // Additional properties for button version
19
+ // iOS requires the button element instead of an anchor tag.
20
+ // If you want the anchor version, it requires `href="#"`.
21
+ button.close
22
+ padding: 0
23
+ cursor: pointer
24
+ background: transparent
25
+ border: 0
26
+ -webkit-appearance: none
@@ -7,14 +7,14 @@
7
7
  code,
8
8
  pre
9
9
  padding: 0 3px 2px
10
- +font-family-monospace
10
+ +bootstrap-font-family-monospace
11
11
  font-size: $baseFontSize - 1
12
12
  color: $grayDark
13
- +border-radius(3px)
13
+ +bootstrap-border-radius(3px)
14
14
 
15
15
  // Inline code
16
16
  code
17
- padding: 3px 4px
17
+ padding: 2px 4px
18
18
  color: #d14
19
19
  background-color: #f7f7f9
20
20
  border: 1px solid #e1e1e8
@@ -24,17 +24,18 @@ pre
24
24
  display: block
25
25
  padding: ($baseLineHeight - 1) / 2
26
26
  margin: 0 0 $baseLineHeight / 2
27
- font-size: 12px
27
+ font-size: $baseFontSize * 0.925
28
+ // 13px to 12px
28
29
  line-height: $baseLineHeight
30
+ word-break: break-all
31
+ word-wrap: break-word
32
+ white-space: pre
33
+ white-space: pre-wrap
29
34
  background-color: #f5f5f5
30
35
  border: 1px solid #ccc
31
36
  // fallback for IE7-8
32
37
  border: 1px solid rgba(0, 0, 0, 0.15)
33
- +border-radius(4px)
34
- white-space: pre
35
- white-space: pre-wrap
36
- word-break: break-all
37
- word-wrap: break-word
38
+ +bootstrap-border-radius(4px)
38
39
  // Make prettyprint styles more spaced out for readability
39
40
  &.prettyprint
40
41
  margin-bottom: $baseLineHeight
@@ -2,15 +2,15 @@
2
2
  // --------------------
3
3
 
4
4
  .fade
5
- +transition(opacity 0.15s linear)
6
- opacity: 0
5
+ +bootstrap-opacity(0)
6
+ +bootstrap-transition(opacity 0.15s linear)
7
7
  &.in
8
- opacity: 1
8
+ +bootstrap-opacity(100)
9
9
 
10
10
  .collapse
11
- +transition(height 0.35s ease)
12
11
  position: relative
13
- overflow: hidden
14
12
  height: 0
13
+ overflow: hidden
14
+ +bootstrap-transition(height 0.35s ease)
15
15
  &.in
16
16
  height: auto
@@ -2,6 +2,8 @@
2
2
  // --------------
3
3
 
4
4
  // Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
5
+
6
+ .dropup,
5
7
  .dropdown
6
8
  position: relative
7
9
 
@@ -14,74 +16,59 @@
14
16
  outline: 0
15
17
 
16
18
  // Dropdown arrow/caret
19
+ // --------------------
17
20
  .caret
18
21
  display: inline-block
19
22
  width: 0
20
23
  height: 0
21
- text-indent: -99999px
22
- // IE7 won't do the border trick if there's a text indent, but it doesn't
23
- // do the content that text-indent is hiding, either, so we're ok.
24
- *text-indent: 0
25
24
  vertical-align: top
26
- border-left: 4px solid transparent
27
- border-right: 4px solid transparent
28
25
  border-top: 4px solid $black
29
- +opacity(0.3)
30
- content: "\2193"
26
+ border-right: 4px solid transparent
27
+ border-left: 4px solid transparent
28
+ content: ""
29
+ +bootstrap-opacity(30)
31
30
 
31
+ // Place the caret
32
32
  .dropdown .caret
33
33
  margin-top: 8px
34
34
  margin-left: 2px
35
35
 
36
36
  .dropdown:hover .caret,
37
- .open.dropdown .caret
38
- +opacity(1)
37
+ .open .caret
38
+ +bootstrap-opacity(100)
39
39
 
40
40
  // The dropdown menu (ul)
41
+ // ----------------------
41
42
  .dropdown-menu
42
43
  position: absolute
43
44
  top: 100%
44
45
  left: 0
45
46
  z-index: $zindexDropdown
46
- float: left
47
47
  display: none
48
48
  // none by default, but block on "open" of the menu
49
+ float: left
49
50
  min-width: 160px
50
- _width: 160px
51
51
  padding: 4px 0
52
- margin: 0
52
+ margin: 1px 0 0
53
53
  // override default ul
54
54
  list-style: none
55
- background-color: $white
56
- border-color: #ccc
57
- border-color: rgba(0, 0, 0, 0.2)
58
- border-style: solid
59
- border-width: 1px
60
- +border-radius(0 0 5px 5px)
61
- +box-shadow(0 5px 10px rgba(0, 0, 0, 0.2))
55
+ background-color: $dropdownBackground
56
+ border: 1px solid #ccc
57
+ border: 1px solid rgba(0, 0, 0, 0.2)
58
+ *border-right-width: 2px
59
+ *border-bottom-width: 2px
60
+ +bootstrap-border-radius(5px)
61
+ +bootstrap-box-shadow(0 5px 10px rgba(0, 0, 0, 0.2))
62
62
  -webkit-background-clip: padding-box
63
63
  -moz-background-clip: padding
64
64
  background-clip: padding-box
65
- *border-right-width: 2px
66
- *border-bottom-width: 2px
67
- // Allow for dropdowns to go bottom up (aka, dropup-menu)
68
- &.bottom-up
69
- top: auto
70
- bottom: 100%
71
- margin-bottom: 2px
65
+ // Aligns the dropdown menu to right
66
+ &.pull-right
67
+ right: 0
68
+ left: auto
72
69
  // Dividers (basically an hr) within the dropdown
73
70
  .divider
74
- height: 1px
75
- margin: 5px 1px
76
- overflow: hidden
77
- background-color: #e5e5e5
78
- border-bottom: 1px solid $white
79
- // IE7 needs a set width since we gave a height. Restricting just
80
- // to IE7 to keep the 1px left/right space in other browsers.
81
- // It is unclear where IE is getting the extra space that we need
82
- // to negative-margin away, but so it goes.
83
- *width: 100%
84
- *margin: -5px 0 5px
71
+ +bootstrap-nav-divider
85
72
  // Links within the dropdown menu
86
73
  a
87
74
  display: block
@@ -89,32 +76,55 @@
89
76
  clear: both
90
77
  font-weight: normal
91
78
  line-height: $baseLineHeight
92
- color: $gray
79
+ color: $dropdownLinkColor
93
80
  white-space: nowrap
94
81
 
95
82
  // Hover state
83
+ // -----------
96
84
 
97
85
  .dropdown-menu li > a:hover,
98
86
  .dropdown-menu .active > a,
99
87
  .dropdown-menu .active > a:hover
100
- color: $white
88
+ color: $dropdownLinkColorHover
101
89
  text-decoration: none
102
- background-color: $linkColor
90
+ background-color: $dropdownLinkBackgroundHover
103
91
 
104
92
  // Open state for the dropdown
105
- .dropdown.open
93
+ // ---------------------------
94
+ .open
106
95
  // IE7's z-index only goes to the nearest positioned ancestor, which would
107
96
  // make the menu appear below buttons that appeared later on the page
108
97
  *z-index: $zindexDropdown
109
- .dropdown-toggle
110
- color: $white
111
- background: #ccc
112
- background: rgba(0, 0, 0, 0.3)
113
98
  .dropdown-menu
114
99
  display: block
115
100
 
101
+ // Right aligned dropdowns
102
+ // ---------------------------
103
+ .pull-right .dropdown-menu
104
+ right: 0
105
+ left: auto
106
+
107
+ // Allow for dropdowns to go bottom up (aka, dropup-menu)
108
+ // ------------------------------------------------------
109
+ // Just add .dropup after the standard .dropdown class and you're set, bro.
110
+ // TODO: abstract this so that the navbar fixed styles are not placed here?
111
+
112
+ .dropup,
113
+ .navbar-fixed-bottom .dropdown
114
+ // Reverse the caret
115
+ .caret
116
+ border-top: 0
117
+ border-bottom: 4px solid $black
118
+ content: "\2191"
119
+ // Different positioning for bottom up menu
120
+ .dropdown-menu
121
+ top: auto
122
+ bottom: 100%
123
+ margin-bottom: 1px
124
+
116
125
  // Typeahead
126
+ // ---------
117
127
  .typeahead
118
128
  margin-top: 2px
119
129
  // give it some space to breathe
120
- +border-radius(4px)
130
+ +bootstrap-border-radius(4px)