compass_twitter_bootstrap 0.1.8 → 2.0.0

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 (96) hide show
  1. data/CHANGELOG.md +6 -0
  2. data/README.md +14 -8
  3. data/build/convert.rb +58 -33
  4. data/lib/compass_twitter_bootstrap.rb +1 -1
  5. data/lib/compass_twitter_bootstrap/version.rb +1 -1
  6. data/stylesheets/_compass_twitter_bootstrap.scss +45 -7
  7. data/stylesheets/_compass_twitter_bootstrap_responsive.scss +322 -0
  8. data/stylesheets/compass_twitter_bootstrap/_accordion.scss +28 -0
  9. data/stylesheets/compass_twitter_bootstrap/_alerts.scss +70 -0
  10. data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +22 -0
  11. data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +147 -0
  12. data/stylesheets/compass_twitter_bootstrap/_buttons.scss +165 -0
  13. data/stylesheets/compass_twitter_bootstrap/_carousel.scss +121 -0
  14. data/stylesheets/compass_twitter_bootstrap/_close.scss +18 -0
  15. data/stylesheets/compass_twitter_bootstrap/_code.scss +44 -0
  16. data/stylesheets/compass_twitter_bootstrap/_component-animations.scss +18 -0
  17. data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +131 -0
  18. data/stylesheets/compass_twitter_bootstrap/_forms.scss +335 -299
  19. data/stylesheets/compass_twitter_bootstrap/_grid.scss +8 -0
  20. data/stylesheets/compass_twitter_bootstrap/_hero-unit.scss +20 -0
  21. data/stylesheets/compass_twitter_bootstrap/_labels.scss +16 -0
  22. data/stylesheets/compass_twitter_bootstrap/_layouts.scss +17 -0
  23. data/stylesheets/compass_twitter_bootstrap/_mixins.scss +409 -68
  24. data/stylesheets/compass_twitter_bootstrap/_modals.scss +72 -0
  25. data/stylesheets/compass_twitter_bootstrap/_navbar.scss +292 -0
  26. data/stylesheets/compass_twitter_bootstrap/_navs.scss +344 -0
  27. data/stylesheets/compass_twitter_bootstrap/_pager.scss +30 -0
  28. data/stylesheets/compass_twitter_bootstrap/_pagination.scss +55 -0
  29. data/stylesheets/compass_twitter_bootstrap/_popovers.scss +49 -0
  30. data/stylesheets/compass_twitter_bootstrap/_progress-bars.scss +95 -0
  31. data/stylesheets/compass_twitter_bootstrap/_reset.scss +37 -52
  32. data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +13 -123
  33. data/stylesheets/compass_twitter_bootstrap/_sprites.scss +156 -0
  34. data/stylesheets/compass_twitter_bootstrap/_tables.scss +75 -160
  35. data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +35 -0
  36. data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +35 -0
  37. data/stylesheets/compass_twitter_bootstrap/_type.scss +100 -70
  38. data/stylesheets/compass_twitter_bootstrap/_utilities.scss +23 -0
  39. data/stylesheets/compass_twitter_bootstrap/_variables.scss +94 -55
  40. data/stylesheets/compass_twitter_bootstrap/_wells.scss +17 -0
  41. data/stylesheets_sass/_compass_twitter_bootstrap.sass +49 -6
  42. data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +252 -0
  43. data/stylesheets_sass/compass_twitter_bootstrap/_accordion.sass +24 -0
  44. data/stylesheets_sass/compass_twitter_bootstrap/_alerts.sass +65 -0
  45. data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +18 -0
  46. data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +129 -0
  47. data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +150 -0
  48. data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +95 -0
  49. data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +16 -0
  50. data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +41 -0
  51. data/stylesheets_sass/compass_twitter_bootstrap/_component-animations.sass +16 -0
  52. data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +121 -0
  53. data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +327 -306
  54. data/stylesheets_sass/compass_twitter_bootstrap/_grid.sass +8 -0
  55. data/stylesheets_sass/compass_twitter_bootstrap/_hero-unit.sass +17 -0
  56. data/stylesheets_sass/compass_twitter_bootstrap/_labels.sass +23 -0
  57. data/stylesheets_sass/compass_twitter_bootstrap/_layouts.sass +14 -0
  58. data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +425 -57
  59. data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +75 -0
  60. data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +258 -0
  61. data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +316 -0
  62. data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +29 -0
  63. data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +53 -0
  64. data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +55 -0
  65. data/stylesheets_sass/compass_twitter_bootstrap/_progress-bars.sass +89 -0
  66. data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +33 -67
  67. data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +13 -175
  68. data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +392 -0
  69. data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +67 -139
  70. data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +34 -0
  71. data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +43 -0
  72. data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +95 -65
  73. data/stylesheets_sass/compass_twitter_bootstrap/_utilities.sass +20 -0
  74. data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +67 -45
  75. data/stylesheets_sass/compass_twitter_bootstrap/_wells.sass +15 -0
  76. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  77. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  78. data/vendor/assets/javascripts/bootstrap-alert.js +91 -0
  79. data/vendor/assets/javascripts/bootstrap-button.js +98 -0
  80. data/vendor/assets/javascripts/bootstrap-carousel.js +154 -0
  81. data/vendor/assets/javascripts/bootstrap-collapse.js +136 -0
  82. data/vendor/assets/javascripts/bootstrap-dropdown.js +58 -21
  83. data/vendor/assets/javascripts/bootstrap-modal.js +63 -114
  84. data/vendor/assets/javascripts/bootstrap-popover.js +38 -33
  85. data/vendor/assets/javascripts/bootstrap-scrollspy.js +62 -44
  86. data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
  87. data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
  88. data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
  89. data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
  90. metadata +69 -17
  91. data/stylesheets/compass_twitter_bootstrap/_patterns.scss +0 -1058
  92. data/stylesheets_sass/compass_twitter_bootstrap/_patterns.sass +0 -923
  93. data/vendor/assets/javascripts/bootstrap-alerts.js +0 -124
  94. data/vendor/assets/javascripts/bootstrap-buttons.js +0 -64
  95. data/vendor/assets/javascripts/bootstrap-tabs.js +0 -80
  96. data/vendor/assets/javascripts/bootstrap-twipsy.js +0 -321
@@ -0,0 +1,75 @@
1
+ // MODALS
2
+ // ------
3
+
4
+ .modal-open
5
+ .dropdown-menu
6
+ z-index: $zindexDropdown + $zindexModal
7
+ .dropdown.open
8
+ *z-index: $zindexDropdown + $zindexModal
9
+ .popover
10
+ z-index: $zindexPopover + $zindexModal
11
+ .tooltip
12
+ z-index: $zindexTooltip + $zindexModal
13
+
14
+ .modal-backdrop
15
+ position: fixed
16
+ top: 0
17
+ right: 0
18
+ bottom: 0
19
+ left: 0
20
+ z-index: $zindexModalBackdrop
21
+ background-color: $black
22
+ // Fade for backdrop
23
+ &.fade
24
+ opacity: 0
25
+
26
+ .modal-backdrop,
27
+ .modal-backdrop.fade.in
28
+ +opacity(0.8)
29
+
30
+ .modal
31
+ position: fixed
32
+ top: 50%
33
+ left: 50%
34
+ z-index: $zindexModal
35
+ max-height: 500px
36
+ overflow: auto
37
+ width: 560px
38
+ margin: -250px 0 0 -280px
39
+ background-color: $white
40
+ border: 1px solid #999
41
+ border: 1px solid rgba(0, 0, 0, 0.3)
42
+ *border: 1px solid #999
43
+ /* IE6-7
44
+ +border-radius(6px)
45
+ +box-shadow(0 3px 7px rgba(0, 0, 0, 0.3))
46
+ +background-clip(padding-box)
47
+ &.fade
48
+ +transition(e("opacity .3s linear, top .3s ease-out"))
49
+ top: -25%
50
+ &.fade.in
51
+ top: 50%
52
+
53
+ .modal-header
54
+ padding: 9px 15px
55
+ border-bottom: 1px solid #eee
56
+ // Close icon
57
+ .close
58
+ margin-top: 2px
59
+
60
+ .modal-body
61
+ padding: 15px
62
+
63
+ .modal-footer
64
+ padding: 14px 15px 15px
65
+ margin-bottom: 0
66
+ background-color: #f5f5f5
67
+ border-top: 1px solid #ddd
68
+ +border-radius(0 0 6px 6px)
69
+ +box-shadow(inset 0 1px 0 $white)
70
+ +clearfix
71
+ .btn
72
+ float: right
73
+ margin-left: 5px
74
+ margin-bottom: 0
75
+ // account for input[type="submit"] which gets the bottom margin like all other inputs
@@ -0,0 +1,258 @@
1
+ // NAVBAR (FIXED AND STATIC)
2
+ // -------------------------
3
+
4
+ // COMMON STYLES
5
+ // -------------
6
+
7
+ .navbar
8
+ overflow: visible
9
+ margin-bottom: $baseLineHeight
10
+
11
+ // Gradient is applied to it's own element because overflow visible is not honored by IE when filter is present
12
+ .navbar-inner
13
+ padding-left: 20px
14
+ 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
+
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
41
+
42
+ // Override the default collapsed state
43
+ .nav-collapse.collapse
44
+ height: auto
45
+
46
+ // Brand, links, text, and buttons
47
+ .navbar
48
+ // Hover and active states
49
+ .brand:hover
50
+ text-decoration: none
51
+ // Website or project name
52
+ .brand
53
+ float: left
54
+ display: block
55
+ padding: 8px 20px 12px
56
+ margin-left: -20px
57
+ // negative indent to left-align the text down the page
58
+ font-size: 20px
59
+ font-weight: 200
60
+ line-height: 1
61
+ color: $white
62
+ // Plain text in topbar
63
+ .navbar-text
64
+ margin-bottom: 0
65
+ line-height: 40px
66
+ color: $navbarText
67
+ a:hover
68
+ color: $white
69
+ background-color: transparent
70
+ // Buttons in navbar
71
+ .btn,
72
+ .btn-group
73
+ margin-top: 5px
74
+ // make buttons vertically centered in navbar
75
+ .btn-group .btn
76
+ margin-top: 0
77
+
78
+ // Navbar forms
79
+ .navbar-form
80
+ margin-bottom: 0
81
+ // remove default bottom margin
82
+ +clearfix
83
+ input,
84
+ select
85
+ display: inline-block
86
+ margin-top: 5px
87
+ margin-bottom: 0
88
+ .radio,
89
+ .checkbox
90
+ margin-top: 5px
91
+ input[type="image"],
92
+ input[type="checkbox"],
93
+ input[type="radio"]
94
+ margin-top: 3px
95
+
96
+ // Navbar search
97
+ .navbar-search
98
+ position: relative
99
+ float: left
100
+ margin-top: 6px
101
+ margin-bottom: 0
102
+ .search-query
103
+ padding: 4px 9px
104
+ +font-sans-serif(13px, normal, 1)
105
+ color: $white
106
+ color: rgba(255, 255, 255, 0.75)
107
+ background: #666
108
+ background: rgba(255, 255, 255, 0.3)
109
+ border: 1px solid #111
110
+ $shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255, 255, 255, 0.15)
111
+ +box-shadow($shadow)
112
+ +transition(none)
113
+ // Placeholder text gets special styles; can't be bundled together though for some reason
114
+ +placeholder($grayLighter)
115
+ // Hover states
116
+ &:hover
117
+ color: $white
118
+ background-color: $grayLight
119
+ background-color: rgba(255, 255, 255, 0.5)
120
+ // Focus states (we use .focused since IE8 and down doesn't support :focus)
121
+ &:focus,
122
+ &.focused
123
+ padding: 5px 10px
124
+ color: $grayDark
125
+ text-shadow: 0 1px 0 $white
126
+ background-color: $white
127
+ border: 0
128
+ +box-shadow(0 0 3px rgba(0, 0, 0, 0.15))
129
+ outline: 0
130
+
131
+ // FIXED NAVBAR
132
+ // ------------
133
+
134
+ .navbar-fixed-top
135
+ position: fixed
136
+ top: 0
137
+ right: 0
138
+ left: 0
139
+ z-index: $zindexFixedNavbar
140
+
141
+ .navbar-fixed-top .navbar-inner
142
+ padding-left: 0
143
+ padding-right: 0
144
+ +border-radius(0)
145
+
146
+ // NAVIGATION
147
+ // ----------
148
+
149
+ .navbar .nav
150
+ position: relative
151
+ left: 0
152
+ display: block
153
+ float: left
154
+ margin: 0 10px 0 0
155
+
156
+ .navbar .nav.pull-right
157
+ float: right
158
+ // redeclare due to specificity
159
+
160
+ .navbar .nav > li
161
+ display: block
162
+ float: left
163
+
164
+ // Links
165
+ .navbar .nav > li > a
166
+ float: none
167
+ padding: 10px 10px 11px
168
+ line-height: 19px
169
+ color: $navbarLinkColor
170
+ text-decoration: none
171
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
172
+
173
+ // Hover
174
+ .navbar .nav > li > a:hover
175
+ background-color: transparent
176
+ color: $navbarLinkColorHover
177
+ text-decoration: none
178
+
179
+ // Active nav items
180
+
181
+ .navbar .nav .active > a,
182
+ .navbar .nav .active > a:hover
183
+ color: $navbarLinkColorHover
184
+ text-decoration: none
185
+ background-color: $navbarBackground
186
+ background-color: rgba(0, 0, 0, 0.5)
187
+
188
+ // Dividers (basically a vertical hr)
189
+ .navbar .divider-vertical
190
+ height: $navbarHeight
191
+ width: 1px
192
+ margin: 0 9px
193
+ overflow: hidden
194
+ background-color: $navbarBackground
195
+ border-right: 1px solid $navbarBackgroundHighlight
196
+
197
+ // Secondary (floated right) nav in topbar
198
+ .navbar .nav.pull-right
199
+ margin-left: 10px
200
+ margin-right: 0
201
+
202
+ // Dropdown menus
203
+ // --------------
204
+
205
+ // Menu position and menu carets
206
+ .navbar .dropdown-menu
207
+ margin-top: 1px
208
+ +border-radius(4px)
209
+ &:before
210
+ content: ''
211
+ display: inline-block
212
+ border-left: 7px solid transparent
213
+ border-right: 7px solid transparent
214
+ border-bottom: 7px solid #ccc
215
+ border-bottom-color: rgba(0, 0, 0, 0.2)
216
+ position: absolute
217
+ top: -7px
218
+ left: 9px
219
+ &:after
220
+ content: ''
221
+ display: inline-block
222
+ border-left: 6px solid transparent
223
+ border-right: 6px solid transparent
224
+ border-bottom: 6px solid $white
225
+ position: absolute
226
+ top: -6px
227
+ left: 10px
228
+
229
+ // Dropdown toggle caret
230
+
231
+ .navbar .nav .dropdown-toggle .caret,
232
+ .navbar .nav .open.dropdown .caret
233
+ border-top-color: $white
234
+
235
+ .navbar .nav .active .caret
236
+ +opacity(1)
237
+
238
+ // Remove background color from open dropdown
239
+
240
+ .navbar .nav .open > .dropdown-toggle,
241
+ .navbar .nav .active > .dropdown-toggle,
242
+ .navbar .nav .open.active > .dropdown-toggle
243
+ background-color: transparent
244
+
245
+ // Dropdown link on hover
246
+ .navbar .nav .active > .dropdown-toggle:hover
247
+ color: $white
248
+
249
+ // Right aligned menus need alt position
250
+ .navbar .nav.pull-right .dropdown-menu
251
+ left: auto
252
+ right: 0
253
+ &:before
254
+ left: auto
255
+ right: 12px
256
+ &:after
257
+ left: auto
258
+ right: 13px
@@ -0,0 +1,316 @@
1
+ // NAVIGATIONS
2
+ // -----------
3
+
4
+ // BASE CLASS
5
+ // ----------
6
+
7
+ .nav
8
+ margin-left: 0
9
+ margin-bottom: $baseLineHeight
10
+ list-style: none
11
+
12
+ // Make links block level
13
+ .nav > li > a
14
+ display: block
15
+
16
+ .nav > li > a:hover
17
+ text-decoration: none
18
+ background-color: $grayLighter
19
+
20
+ // NAV LIST
21
+ // --------
22
+
23
+ .nav-list
24
+ padding-left: 14px
25
+ padding-right: 14px
26
+ margin-bottom: 0
27
+
28
+ .nav-list > li > a,
29
+ .nav-list .nav-header
30
+ display: block
31
+ padding: 3px 15px
32
+ margin-left: -15px
33
+ margin-right: -15px
34
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5)
35
+
36
+ .nav-list .nav-header
37
+ font-size: 11px
38
+ font-weight: bold
39
+ line-height: $baseLineHeight
40
+ color: $grayLight
41
+ text-transform: uppercase
42
+
43
+ .nav-list > li + .nav-header
44
+ margin-top: 9px
45
+
46
+ .nav-list .active > a,
47
+ .nav-list .active > a:hover
48
+ color: $white
49
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2)
50
+ background-color: $linkColor
51
+
52
+ .nav-list [class^="icon-"]
53
+ margin-right: 2px
54
+
55
+ // TABS AND PILLS
56
+ // -------------
57
+
58
+ // Common styles
59
+
60
+ .nav-tabs,
61
+ .nav-pills
62
+ +clearfix
63
+
64
+ .nav-tabs > li,
65
+ .nav-pills > li
66
+ float: left
67
+
68
+ .nav-tabs > li > a,
69
+ .nav-pills > li > a
70
+ padding-right: 12px
71
+ padding-left: 12px
72
+ margin-right: 2px
73
+ line-height: 14px
74
+ // keeps the overall height an even number
75
+
76
+ // TABS
77
+ // ----
78
+
79
+ // Give the tabs something to sit on
80
+ .nav-tabs
81
+ border-bottom: 1px solid #ddd
82
+
83
+ // Make the list-items overlay the bottom border
84
+ .nav-tabs > li
85
+ margin-bottom: -1px
86
+
87
+ // Actual tabs (as links)
88
+ .nav-tabs > li > a
89
+ padding-top: 9px
90
+ padding-bottom: 9px
91
+ border: 1px solid transparent
92
+ +border-radius(4px 4px 0 0)
93
+ &:hover
94
+ border-color: $grayLighter $grayLighter #dddddd
95
+
96
+ // Active state, and it's :hover to override normal :hover
97
+
98
+ .nav-tabs > .active > a,
99
+ .nav-tabs > .active > a:hover
100
+ color: $gray
101
+ background-color: $white
102
+ border: 1px solid #ddd
103
+ border-bottom-color: transparent
104
+ cursor: default
105
+
106
+ // PILLS
107
+ // -----
108
+
109
+ // Links rendered as pills
110
+ .nav-pills > li > a
111
+ padding-top: 8px
112
+ padding-bottom: 8px
113
+ margin-top: 2px
114
+ margin-bottom: 2px
115
+ +border-radius(5px)
116
+
117
+ // Active state
118
+
119
+ .nav-pills .active > a,
120
+ .nav-pills .active > a:hover
121
+ color: $white
122
+ background-color: $linkColor
123
+
124
+ // STACKED NAV
125
+ // -----------
126
+
127
+ // Stacked tabs and pills
128
+ .nav-stacked > li
129
+ float: none
130
+
131
+ .nav-stacked > li > a
132
+ margin-right: 0
133
+ // no need for the gap between nav items
134
+
135
+ // Tabs
136
+ .nav-tabs.nav-stacked
137
+ border-bottom: 0
138
+
139
+ .nav-tabs.nav-stacked > li > a
140
+ border: 1px solid #ddd
141
+ +border-radius(0)
142
+
143
+ .nav-tabs.nav-stacked > li:first-child > a
144
+ +border-radius(4px 4px 0 0)
145
+
146
+ .nav-tabs.nav-stacked > li:last-child > a
147
+ +border-radius(0 0 4px 4px)
148
+
149
+ .nav-tabs.nav-stacked > li > a:hover
150
+ border-color: #ddd
151
+ z-index: 2
152
+
153
+ // Pills
154
+ .nav-pills.nav-stacked > li > a
155
+ margin-bottom: 3px
156
+
157
+ .nav-pills.nav-stacked > li:last-child > a
158
+ margin-bottom: 1px
159
+ // decrease margin to match sizing of stacked tabs
160
+
161
+ // DROPDOWNS
162
+ // ---------
163
+
164
+ // Position the menu
165
+
166
+ .nav-tabs .dropdown-menu,
167
+ .nav-pills .dropdown-menu
168
+ margin-top: 1px
169
+ border-width: 1px
170
+
171
+ .nav-pills .dropdown-menu
172
+ +border-radius(4px)
173
+
174
+ // Default dropdown links
175
+ // -------------------------
176
+ // Make carets use linkColor to start
177
+
178
+ .nav-tabs .dropdown-toggle .caret,
179
+ .nav-pills .dropdown-toggle .caret
180
+ border-top-color: $linkColor
181
+ margin-top: 6px
182
+
183
+ .nav-tabs .dropdown-toggle:hover .caret,
184
+ .nav-pills .dropdown-toggle:hover .caret
185
+ border-top-color: $linkColorHover
186
+
187
+ // Active dropdown links
188
+ // -------------------------
189
+
190
+ .nav-tabs .active .dropdown-toggle .caret,
191
+ .nav-pills .active .dropdown-toggle .caret
192
+ border-top-color: $grayDark
193
+
194
+ // Active:hover dropdown links
195
+ // -------------------------
196
+ .nav > .dropdown.active > a:hover
197
+ color: $black
198
+ cursor: pointer
199
+
200
+ // Open dropdowns
201
+ // -------------------------
202
+
203
+ .nav-tabs .open .dropdown-toggle,
204
+ .nav-pills .open .dropdown-toggle,
205
+ .nav > .open.active > a:hover
206
+ color: $white
207
+ background-color: $grayLight
208
+ border-color: $grayLight
209
+
210
+ .nav .open .caret,
211
+ .nav .open.active .caret,
212
+ .nav .open a:hover .caret
213
+ border-top-color: $white
214
+ +opacity(1)
215
+
216
+ // Dropdowns in stacked tabs
217
+ .tabs-stacked .open > a:hover
218
+ border-color: $grayLight
219
+
220
+ // TABBABLE
221
+ // --------
222
+
223
+ // COMMON STYLES
224
+ // -------------
225
+
226
+ // Clear any floats
227
+ .tabbable
228
+ +clearfix
229
+
230
+ // Remove border on bottom, left, right
231
+
232
+ .tabs-below .nav-tabs,
233
+ .tabs-right .nav-tabs,
234
+ .tabs-left .nav-tabs
235
+ border-bottom: 0
236
+
237
+ // Show/hide tabbable areas
238
+
239
+ .tab-content > .tab-pane,
240
+ .pill-content > .pill-pane
241
+ display: none
242
+
243
+ .tab-content > .active,
244
+ .pill-content > .active
245
+ display: block
246
+
247
+ // BOTTOM
248
+ // ------
249
+
250
+ .tabs-below .nav-tabs
251
+ border-top: 1px solid #ddd
252
+
253
+ .tabs-below .nav-tabs > li
254
+ margin-top: -1px
255
+ margin-bottom: 0
256
+
257
+ .tabs-below .nav-tabs > li > a
258
+ +border-radius(0 0 4px 4px)
259
+ &:hover
260
+ border-bottom-color: transparent
261
+ border-top-color: #ddd
262
+
263
+ .tabs-below .nav-tabs .active > a,
264
+ .tabs-below .nav-tabs .active > a:hover
265
+ border-color: transparent #ddd #ddd #ddd
266
+
267
+ // LEFT & RIGHT
268
+ // ------------
269
+
270
+ // Common styles
271
+
272
+ .tabs-left .nav-tabs > li,
273
+ .tabs-right .nav-tabs > li
274
+ float: none
275
+
276
+ .tabs-left .nav-tabs > li > a,
277
+ .tabs-right .nav-tabs > li > a
278
+ min-width: 74px
279
+ margin-right: 0
280
+ margin-bottom: 3px
281
+
282
+ // Tabs on the left
283
+ .tabs-left .nav-tabs
284
+ float: left
285
+ margin-right: 19px
286
+ border-right: 1px solid #ddd
287
+
288
+ .tabs-left .nav-tabs > li > a
289
+ margin-right: -1px
290
+ +border-radius(4px 0 0 4px)
291
+
292
+ .tabs-left .nav-tabs > li > a:hover
293
+ border-color: $grayLighter #dddddd $grayLighter $grayLighter
294
+
295
+ .tabs-left .nav-tabs .active > a,
296
+ .tabs-left .nav-tabs .active > a:hover
297
+ border-color: #ddd transparent #ddd #ddd
298
+ *border-right-color: $white
299
+
300
+ // Tabs on the right
301
+ .tabs-right .nav-tabs
302
+ float: right
303
+ margin-left: 19px
304
+ border-left: 1px solid #ddd
305
+
306
+ .tabs-right .nav-tabs > li > a
307
+ margin-left: -1px
308
+ +border-radius(0 4px 4px 0)
309
+
310
+ .tabs-right .nav-tabs > li > a:hover
311
+ border-color: $grayLighter $grayLighter $grayLighter #dddddd
312
+
313
+ .tabs-right .nav-tabs .active > a,
314
+ .tabs-right .nav-tabs .active > a:hover
315
+ border-color: #ddd #ddd #ddd transparent
316
+ *border-left-color: $white