compass_twitter_bootstrap 2.0.3 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/README.md +41 -7
- data/build/convert.rb +27 -11
- data/lib/compass_twitter_bootstrap/version.rb +1 -1
- data/stylesheets/_compass_twitter_bootstrap.scss +2 -1
- data/stylesheets/_compass_twitter_bootstrap_awesome.scss +1 -1
- data/stylesheets/_compass_twitter_bootstrap_responsive.scss +1 -1
- data/stylesheets/compass_twitter_bootstrap/_accordion.scss +4 -3
- data/stylesheets/compass_twitter_bootstrap/_alerts.scss +31 -10
- data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +14 -14
- data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +91 -55
- data/stylesheets/compass_twitter_bootstrap/_buttons.scss +126 -84
- data/stylesheets/compass_twitter_bootstrap/_carousel.scss +33 -23
- data/stylesheets/compass_twitter_bootstrap/_close.scss +7 -5
- data/stylesheets/compass_twitter_bootstrap/_code.scss +12 -8
- data/stylesheets/compass_twitter_bootstrap/_component-animations.scss +9 -7
- data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +112 -22
- data/stylesheets/compass_twitter_bootstrap/_font-awesome.scss +258 -196
- data/stylesheets/compass_twitter_bootstrap/_forms.scss +262 -161
- data/stylesheets/compass_twitter_bootstrap/_grid.scss +18 -2
- data/stylesheets/compass_twitter_bootstrap/_hero-unit.scss +11 -8
- data/stylesheets/compass_twitter_bootstrap/_labels-badges.scss +42 -26
- data/stylesheets/compass_twitter_bootstrap/_layouts.scss +3 -4
- data/stylesheets/compass_twitter_bootstrap/_media.scss +55 -0
- data/stylesheets/compass_twitter_bootstrap/_mixins.scss +243 -189
- data/stylesheets/compass_twitter_bootstrap/_modals.scss +28 -23
- data/stylesheets/compass_twitter_bootstrap/_navbar.scss +269 -143
- data/stylesheets/compass_twitter_bootstrap/_navs.scss +59 -46
- data/stylesheets/compass_twitter_bootstrap/_pager.scss +17 -12
- data/stylesheets/compass_twitter_bootstrap/_pagination.scss +92 -27
- data/stylesheets/compass_twitter_bootstrap/_popovers.scss +116 -36
- data/stylesheets/compass_twitter_bootstrap/_progress-bars.scss +35 -30
- data/stylesheets/compass_twitter_bootstrap/_reset.scss +101 -11
- data/stylesheets/compass_twitter_bootstrap/_responsive-1200px-min.scss +9 -7
- data/stylesheets/compass_twitter_bootstrap/_responsive-767px-max.scss +115 -71
- data/stylesheets/compass_twitter_bootstrap/_responsive-768px-979px.scss +8 -6
- data/stylesheets/compass_twitter_bootstrap/_responsive-navbar.scss +53 -14
- data/stylesheets/compass_twitter_bootstrap/_responsive-utilities.scss +17 -15
- data/stylesheets/compass_twitter_bootstrap/_responsive.scss +48 -0
- data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +27 -4
- data/stylesheets/compass_twitter_bootstrap/_sprites.scss +24 -22
- data/stylesheets/compass_twitter_bootstrap/_tables.scss +122 -61
- data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +12 -7
- data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +50 -15
- data/stylesheets/compass_twitter_bootstrap/_type.scss +93 -93
- data/stylesheets/compass_twitter_bootstrap/_utilities.scss +9 -2
- data/stylesheets/compass_twitter_bootstrap/_variables.scss +134 -38
- data/stylesheets/compass_twitter_bootstrap/_wells.scss +11 -10
- data/stylesheets_sass/_compass_twitter_bootstrap.sass +2 -1
- data/stylesheets_sass/_compass_twitter_bootstrap_awesome.sass +1 -1
- data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +1 -1
- data/stylesheets_sass/compass_twitter_bootstrap/_accordion.sass +4 -3
- data/stylesheets_sass/compass_twitter_bootstrap/_alerts.sass +27 -9
- data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +12 -13
- data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +93 -55
- data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +113 -88
- data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +31 -23
- data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +5 -4
- data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +12 -9
- data/stylesheets_sass/compass_twitter_bootstrap/_component-animations.sass +7 -6
- data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +105 -21
- data/stylesheets_sass/compass_twitter_bootstrap/_font-awesome.sass +228 -31
- data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +255 -155
- data/stylesheets_sass/compass_twitter_bootstrap/_grid.sass +16 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_hero-unit.sass +10 -7
- data/stylesheets_sass/compass_twitter_bootstrap/_labels-badges.sass +38 -31
- data/stylesheets_sass/compass_twitter_bootstrap/_layouts.sass +3 -4
- data/stylesheets_sass/compass_twitter_bootstrap/_media.sass +48 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +215 -174
- data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +25 -26
- data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +229 -134
- data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +53 -46
- data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +16 -12
- data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +78 -23
- data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +106 -40
- data/stylesheets_sass/compass_twitter_bootstrap/_progress-bars.sass +35 -30
- data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +80 -12
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-1200px-min.sass +8 -7
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-767px-max.sass +89 -54
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-768px-979px.sass +7 -6
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-navbar.sass +38 -13
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-utilities.sass +18 -17
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive.sass +44 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +24 -4
- data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +25 -8
- data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +110 -83
- data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +11 -7
- data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +43 -19
- data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +123 -75
- data/stylesheets_sass/compass_twitter_bootstrap/_utilities.sass +7 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +141 -37
- data/stylesheets_sass/compass_twitter_bootstrap/_wells.sass +10 -9
- data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.svg +247 -167
- data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/bootstrap-affix.js +117 -0
- data/vendor/assets/javascripts/bootstrap-alert.js +13 -4
- data/vendor/assets/javascripts/bootstrap-all.js +2 -1
- data/vendor/assets/javascripts/bootstrap-button.js +17 -8
- data/vendor/assets/javascripts/bootstrap-carousel.js +30 -14
- data/vendor/assets/javascripts/bootstrap-collapse.js +24 -14
- data/vendor/assets/javascripts/bootstrap-dropdown.js +80 -19
- data/vendor/assets/javascripts/bootstrap-modal.js +111 -84
- data/vendor/assets/javascripts/bootstrap-popover.js +21 -5
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +21 -10
- data/vendor/assets/javascripts/bootstrap-tab.js +17 -8
- data/vendor/assets/javascripts/bootstrap-tooltip.js +36 -24
- data/vendor/assets/javascripts/bootstrap-transition.js +6 -7
- data/vendor/assets/javascripts/bootstrap-typeahead.js +87 -49
- metadata +17 -7
@@ -1,16 +1,6 @@
|
|
1
|
-
//
|
2
|
-
//
|
3
|
-
|
4
|
-
// Recalculate z-index where appropriate
|
5
|
-
.modal-open
|
6
|
-
.dropdown-menu
|
7
|
-
z-index: $zindexDropdown + $zindexModal
|
8
|
-
.dropdown.open
|
9
|
-
*z-index: $zindexDropdown + $zindexModal
|
10
|
-
.popover
|
11
|
-
z-index: $zindexPopover + $zindexModal
|
12
|
-
.tooltip
|
13
|
-
z-index: $zindexTooltip + $zindexModal
|
1
|
+
//
|
2
|
+
// Modals
|
3
|
+
// --------------------------------------------------
|
14
4
|
|
15
5
|
// Background
|
16
6
|
.modal-backdrop
|
@@ -27,30 +17,31 @@
|
|
27
17
|
|
28
18
|
.modal-backdrop,
|
29
19
|
.modal-backdrop.fade.in
|
30
|
-
+
|
20
|
+
+ctb-opacity(80)
|
31
21
|
|
32
22
|
// Base modal
|
33
23
|
.modal
|
34
24
|
position: fixed
|
35
|
-
top:
|
25
|
+
top: 10%
|
36
26
|
left: 50%
|
37
27
|
z-index: $zindexModal
|
38
|
-
overflow: auto
|
39
28
|
width: 560px
|
40
|
-
margin: -
|
29
|
+
margin-left: -280px
|
41
30
|
background-color: $white
|
42
31
|
border: 1px solid #999
|
43
32
|
border: 1px solid rgba(0, 0, 0, 0.3)
|
44
33
|
*border: 1px solid #999
|
45
34
|
/* IE6-7
|
46
|
-
+
|
47
|
-
+
|
48
|
-
+
|
35
|
+
+ctb-border-radius(6px)
|
36
|
+
+ctb-box-shadow(0 3px 7px rgba(0, 0, 0, 0.3))
|
37
|
+
+ctb-background-clip(padding-box)
|
38
|
+
// Remove focus outline from opened modal
|
39
|
+
outline: none
|
49
40
|
&.fade
|
50
|
-
+
|
41
|
+
+ctb-transition("opacity .3s linear, top .3s ease-out")
|
51
42
|
top: -25%
|
52
43
|
&.fade.in
|
53
|
-
top:
|
44
|
+
top: 10%
|
54
45
|
|
55
46
|
.modal-header
|
56
47
|
padding: 9px 15px
|
@@ -58,9 +49,14 @@
|
|
58
49
|
// Close icon
|
59
50
|
.close
|
60
51
|
margin-top: 2px
|
52
|
+
// Heading
|
53
|
+
h3
|
54
|
+
margin: 0
|
55
|
+
line-height: 30px
|
61
56
|
|
62
|
-
// Body (where all modal content
|
57
|
+
// Body (where all modal content resides)
|
63
58
|
.modal-body
|
59
|
+
position: relative
|
64
60
|
overflow-y: auto
|
65
61
|
max-height: 400px
|
66
62
|
padding: 15px
|
@@ -77,9 +73,9 @@
|
|
77
73
|
// right align buttons
|
78
74
|
background-color: #f5f5f5
|
79
75
|
border-top: 1px solid #ddd
|
80
|
-
+
|
81
|
-
+
|
82
|
-
+
|
76
|
+
+ctb-border-radius(0 0 6px 6px)
|
77
|
+
+ctb-box-shadow(inset 0 1px 0 $white)
|
78
|
+
+ctb-clearfix
|
83
79
|
// clear it in case folks use .pull-* classes on buttons
|
84
80
|
// Properly space out buttons
|
85
81
|
.btn + .btn
|
@@ -89,3 +85,6 @@
|
|
89
85
|
// but override that for button groups
|
90
86
|
.btn-group .btn + .btn
|
91
87
|
margin-left: -1px
|
88
|
+
// and override it for block buttons as well
|
89
|
+
.btn-block + .btn-block
|
90
|
+
margin-left: 0
|
@@ -1,24 +1,30 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
//
|
2
|
+
// Navbars (Redux)
|
3
|
+
// --------------------------------------------------
|
3
4
|
|
4
5
|
// COMMON STYLES
|
5
6
|
// -------------
|
6
7
|
|
8
|
+
// Base class and wrapper
|
7
9
|
.navbar
|
10
|
+
overflow: visible
|
11
|
+
margin-bottom: $baseLineHeight
|
8
12
|
// Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
|
9
13
|
*position: relative
|
10
14
|
*z-index: 2
|
11
|
-
overflow: visible
|
12
|
-
margin-bottom: $baseLineHeight
|
13
15
|
|
14
|
-
//
|
16
|
+
// Inner for background effects
|
17
|
+
// Gradient is applied to its own element because overflow visible is not honored by IE when filter is present
|
15
18
|
.navbar-inner
|
16
19
|
min-height: $navbarHeight
|
17
20
|
padding-left: 20px
|
18
21
|
padding-right: 20px
|
19
|
-
+
|
20
|
-
|
21
|
-
+
|
22
|
+
+ctb-gradient-vertical($navbarBackgroundHighlight, $navbarBackground)
|
23
|
+
border: 1px solid $navbarBorder
|
24
|
+
+ctb-border-radius($baseBorderRadius)
|
25
|
+
+ctb-box-shadow(0 1px 4px rgba(0, 0, 0, 0.065))
|
26
|
+
// Prevent floats from breaking the navbar
|
27
|
+
+ctb-clearfix
|
22
28
|
|
23
29
|
// Set width to auto for default container
|
24
30
|
// We then reset it for fixed navbars in the #gridSystem mixin
|
@@ -28,57 +34,75 @@
|
|
28
34
|
// Override the default collapsed state
|
29
35
|
.nav-collapse.collapse
|
30
36
|
height: auto
|
37
|
+
overflow: visible
|
31
38
|
|
32
|
-
// Brand
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
39
|
+
// Brand: website or project name
|
40
|
+
// -------------------------
|
41
|
+
.navbar .brand
|
42
|
+
float: left
|
43
|
+
display: block
|
44
|
+
// Vertically center the text given $navbarHeight
|
45
|
+
padding: ($navbarHeight - $baseLineHeight) / 2 20px ($navbarHeight - $baseLineHeight) / 2
|
46
|
+
margin-left: -20px
|
47
|
+
// negative indent to left-align the text down the page
|
48
|
+
font-size: 20px
|
49
|
+
font-weight: 200
|
50
|
+
color: $navbarBrandColor
|
51
|
+
text-shadow: 0 1px 0 $navbarBackgroundHighlight
|
52
|
+
&:hover
|
37
53
|
text-decoration: none
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
54
|
+
|
55
|
+
// Plain text in topbar
|
56
|
+
// -------------------------
|
57
|
+
.navbar-text
|
58
|
+
margin-bottom: 0
|
59
|
+
line-height: $navbarHeight
|
60
|
+
color: $navbarText
|
61
|
+
|
62
|
+
// Janky solution for now to account for links outside the .nav
|
63
|
+
// -------------------------
|
64
|
+
.navbar-link
|
65
|
+
color: $navbarLinkColor
|
66
|
+
&:hover
|
67
|
+
color: $navbarLinkColorHover
|
68
|
+
|
69
|
+
// Dividers in navbar
|
70
|
+
// -------------------------
|
71
|
+
.navbar .divider-vertical
|
72
|
+
height: $navbarHeight
|
73
|
+
margin: 0 9px
|
74
|
+
border-left: 1px solid $navbarBackground
|
75
|
+
border-right: 1px solid $navbarBackgroundHighlight
|
76
|
+
|
77
|
+
// Buttons in navbar
|
78
|
+
// -------------------------
|
79
|
+
|
80
|
+
.navbar .btn,
|
81
|
+
.navbar .btn-group
|
82
|
+
+ctb-navbarVerticalAlign(30px)
|
83
|
+
// Vertically center in navbar
|
84
|
+
|
85
|
+
.navbar .btn-group .btn,
|
86
|
+
.navbar .input-prepend .btn,
|
87
|
+
.navbar .input-append .btn
|
88
|
+
margin-top: 0
|
89
|
+
// then undo the margin here so we don't accidentally double it
|
68
90
|
|
69
91
|
// Navbar forms
|
92
|
+
// -------------------------
|
70
93
|
.navbar-form
|
71
94
|
margin-bottom: 0
|
72
95
|
// remove default bottom margin
|
73
|
-
+
|
96
|
+
+ctb-clearfix
|
74
97
|
input,
|
75
98
|
select,
|
76
99
|
.radio,
|
77
100
|
.checkbox
|
78
|
-
+
|
101
|
+
+ctb-navbarVerticalAlign(30px)
|
79
102
|
// Vertically center in navbar
|
80
103
|
input,
|
81
|
-
select
|
104
|
+
select,
|
105
|
+
.btn
|
82
106
|
display: inline-block
|
83
107
|
margin-bottom: 0
|
84
108
|
input[type="image"],
|
@@ -87,7 +111,7 @@
|
|
87
111
|
margin-top: 3px
|
88
112
|
.input-append,
|
89
113
|
.input-prepend
|
90
|
-
margin-top:
|
114
|
+
margin-top: 5px
|
91
115
|
white-space: nowrap
|
92
116
|
// preven two items from separating within a .navbar-form that has .pull-left
|
93
117
|
input
|
@@ -95,38 +119,32 @@
|
|
95
119
|
// remove the margin on top since it's on the parent
|
96
120
|
|
97
121
|
// Navbar search
|
122
|
+
// -------------------------
|
98
123
|
.navbar-search
|
99
124
|
position: relative
|
100
125
|
float: left
|
101
|
-
+
|
126
|
+
+ctb-navbarVerticalAlign(30px)
|
102
127
|
// Vertically center in navbar
|
103
128
|
margin-bottom: 0
|
104
129
|
.search-query
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
background-color: $navbarSearchBackgroundFocus
|
124
|
-
border: 0
|
125
|
-
+bootstrap-box-shadow(0 0 3px rgba(0, 0, 0, 0.15))
|
126
|
-
outline: 0
|
127
|
-
|
128
|
-
// FIXED NAVBAR
|
129
|
-
// ------------
|
130
|
+
margin-bottom: 0
|
131
|
+
padding: 4px 14px
|
132
|
+
+ctb-font-sans-serif(13px, normal, 1)
|
133
|
+
+ctb-border-radius(15px)
|
134
|
+
// redeclare because of specificity of the type attribute
|
135
|
+
|
136
|
+
// Static navbar
|
137
|
+
// -------------------------
|
138
|
+
|
139
|
+
.navbar-static-top
|
140
|
+
position: static
|
141
|
+
margin-bottom: 0
|
142
|
+
// remove 18px margin for default navbar
|
143
|
+
.navbar-inner
|
144
|
+
+ctb-border-radius(0)
|
145
|
+
|
146
|
+
// Fixed navbar
|
147
|
+
// -------------------------
|
130
148
|
|
131
149
|
// Shared (top/bottom) styles
|
132
150
|
|
@@ -137,25 +155,43 @@
|
|
137
155
|
left: 0
|
138
156
|
z-index: $zindexFixedNavbar
|
139
157
|
margin-bottom: 0
|
140
|
-
// remove 18px margin for
|
158
|
+
// remove 18px margin for default navbar
|
159
|
+
|
160
|
+
.navbar-fixed-top .navbar-inner,
|
161
|
+
.navbar-static-top .navbar-inner
|
162
|
+
border-width: 0 0 1px
|
163
|
+
|
164
|
+
.navbar-fixed-bottom .navbar-inner
|
165
|
+
border-width: 1px 0 0
|
141
166
|
|
142
167
|
.navbar-fixed-top .navbar-inner,
|
143
168
|
.navbar-fixed-bottom .navbar-inner
|
144
169
|
padding-left: 0
|
145
170
|
padding-right: 0
|
146
|
-
+
|
171
|
+
+ctb-border-radius(0)
|
147
172
|
|
173
|
+
// Reset container width
|
174
|
+
// Required here as we reset the width earlier on and the grid mixins don't override early enough
|
175
|
+
|
176
|
+
.navbar-static-top .container,
|
148
177
|
.navbar-fixed-top .container,
|
149
178
|
.navbar-fixed-bottom .container
|
150
|
-
+
|
179
|
+
+ctb-core-span($gridColumns)
|
151
180
|
|
152
181
|
// Fixed to top
|
153
182
|
.navbar-fixed-top
|
154
183
|
top: 0
|
155
184
|
|
185
|
+
.navbar-fixed-top,
|
186
|
+
.navbar-static-top
|
187
|
+
.navbar-inner
|
188
|
+
+ctb-box-shadow(#{0 1px 10px rgba(0, 0, 0, 0.1)})
|
189
|
+
|
156
190
|
// Fixed to bottom
|
157
191
|
.navbar-fixed-bottom
|
158
192
|
bottom: 0
|
193
|
+
.navbar-inner
|
194
|
+
+ctb-box-shadow(#{0 -1px 10px rgba(0, 0, 0, 0.1)})
|
159
195
|
|
160
196
|
// NAVIGATION
|
161
197
|
// ----------
|
@@ -170,38 +206,27 @@
|
|
170
206
|
.navbar .nav.pull-right
|
171
207
|
float: right
|
172
208
|
// redeclare due to specificity
|
209
|
+
margin-right: 0
|
210
|
+
// remove margin on float right nav
|
173
211
|
|
174
212
|
.navbar .nav > li
|
175
|
-
display: block
|
176
213
|
float: left
|
177
214
|
|
178
215
|
// Links
|
179
216
|
.navbar .nav > li > a
|
180
217
|
float: none
|
181
|
-
// Vertically center the text given
|
182
|
-
|
183
|
-
padding: ($navbarHeight - $elementHeight) / 2 - 1 10px ($navbarHeight - $elementHeight) / 2 + 1
|
184
|
-
line-height: 19px
|
218
|
+
// Vertically center the text given $navbarHeight
|
219
|
+
padding: ($navbarHeight - $baseLineHeight) / 2 15px ($navbarHeight - $baseLineHeight) / 2
|
185
220
|
color: $navbarLinkColor
|
186
221
|
text-decoration: none
|
187
|
-
text-shadow: 0
|
222
|
+
text-shadow: 0 1px 0 $navbarBackgroundHighlight
|
188
223
|
|
189
|
-
|
190
|
-
|
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
|
224
|
+
.navbar .nav .dropdown-toggle .caret
|
225
|
+
margin-top: 8px
|
203
226
|
|
204
227
|
// Hover
|
228
|
+
|
229
|
+
.navbar .nav > li > a:focus,
|
205
230
|
.navbar .nav > li > a:hover
|
206
231
|
background-color: $navbarLinkBackgroundHover
|
207
232
|
// "transparent" is default to differentiate :hover from .active
|
@@ -210,25 +235,13 @@
|
|
210
235
|
|
211
236
|
// Active nav items
|
212
237
|
|
213
|
-
.navbar .nav .active > a,
|
214
|
-
.navbar .nav .active > a:hover
|
238
|
+
.navbar .nav > .active > a,
|
239
|
+
.navbar .nav > .active > a:hover,
|
240
|
+
.navbar .nav > .active > a:focus
|
215
241
|
color: $navbarLinkColorActive
|
216
242
|
text-decoration: none
|
217
243
|
background-color: $navbarLinkBackgroundActive
|
218
|
-
|
219
|
-
// Dividers (basically a vertical hr)
|
220
|
-
.navbar .divider-vertical
|
221
|
-
height: $navbarHeight
|
222
|
-
width: 1px
|
223
|
-
margin: 0 9px
|
224
|
-
overflow: hidden
|
225
|
-
background-color: $navbarBackground
|
226
|
-
border-right: 1px solid $navbarBackgroundHighlight
|
227
|
-
|
228
|
-
// Secondary (floated right) nav in topbar
|
229
|
-
.navbar .nav.pull-right
|
230
|
-
margin-left: 10px
|
231
|
-
margin-right: 0
|
244
|
+
+ctb-box-shadow(inset 0 3px 8px rgba(0, 0, 0, 0.125))
|
232
245
|
|
233
246
|
// Navbar button for toggling navbar items in responsive layouts
|
234
247
|
// These definitions need to come after '.navbar .btn'
|
@@ -238,16 +251,16 @@
|
|
238
251
|
padding: 7px 10px
|
239
252
|
margin-left: 5px
|
240
253
|
margin-right: 5px
|
241
|
-
+
|
242
|
-
+
|
254
|
+
+ctb-buttonBackground(darken($navbarBackgroundHighlight, 5%), darken($navbarBackground, 5%))
|
255
|
+
+ctb-box-shadow(#{inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.075)})
|
243
256
|
|
244
257
|
.navbar .btn-navbar .icon-bar
|
245
258
|
display: block
|
246
259
|
width: 18px
|
247
260
|
height: 2px
|
248
261
|
background-color: #f5f5f5
|
249
|
-
+
|
250
|
-
+
|
262
|
+
+ctb-border-radius(1px)
|
263
|
+
+ctb-box-shadow(0 1px 0 rgba(0, 0, 0, 0.25))
|
251
264
|
|
252
265
|
.btn-navbar .icon-bar + .icon-bar
|
253
266
|
margin-top: 3px
|
@@ -256,7 +269,7 @@
|
|
256
269
|
// --------------
|
257
270
|
|
258
271
|
// Menu position and menu carets
|
259
|
-
.navbar .dropdown-menu
|
272
|
+
.navbar .nav > li > .dropdown-menu
|
260
273
|
&:before
|
261
274
|
content: ''
|
262
275
|
display: inline-block
|
@@ -278,7 +291,7 @@
|
|
278
291
|
left: 10px
|
279
292
|
|
280
293
|
// Menu position and menu caret support for dropups via extra dropup class
|
281
|
-
.navbar-fixed-bottom .dropdown-menu
|
294
|
+
.navbar-fixed-bottom .nav > li > .dropdown-menu
|
282
295
|
&:before
|
283
296
|
border-top: 7px solid #ccc
|
284
297
|
border-top-color: $dropdownBorder
|
@@ -291,32 +304,33 @@
|
|
291
304
|
bottom: -6px
|
292
305
|
top: auto
|
293
306
|
|
294
|
-
//
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
border-top-color: $white
|
299
|
-
border-bottom-color: $white
|
300
|
-
|
301
|
-
.navbar .nav li.dropdown.active .caret
|
302
|
-
+bootstrap-opacity(100)
|
307
|
+
// Caret should match text color on hover
|
308
|
+
.navbar .nav li.dropdown > a:hover .caret
|
309
|
+
border-top-color: $navbarLinkColorActive
|
310
|
+
border-bottom-color: $navbarLinkColorActive
|
303
311
|
|
304
312
|
// Remove background color from open dropdown
|
305
313
|
|
306
314
|
.navbar .nav li.dropdown.open > .dropdown-toggle,
|
307
315
|
.navbar .nav li.dropdown.active > .dropdown-toggle,
|
308
316
|
.navbar .nav li.dropdown.open.active > .dropdown-toggle
|
309
|
-
background-color:
|
317
|
+
background-color: $navbarLinkBackgroundActive
|
318
|
+
color: $navbarLinkColorActive
|
310
319
|
|
311
|
-
|
312
|
-
|
313
|
-
color: $
|
320
|
+
.navbar .nav li.dropdown > .dropdown-toggle .caret
|
321
|
+
border-top-color: $navbarLinkColor
|
322
|
+
border-bottom-color: $navbarLinkColor
|
323
|
+
|
324
|
+
.navbar .nav li.dropdown.open > .dropdown-toggle .caret,
|
325
|
+
.navbar .nav li.dropdown.active > .dropdown-toggle .caret,
|
326
|
+
.navbar .nav li.dropdown.open.active > .dropdown-toggle .caret
|
327
|
+
border-top-color: $navbarLinkColorActive
|
328
|
+
border-bottom-color: $navbarLinkColorActive
|
314
329
|
|
315
330
|
// Right aligned menus need alt position
|
316
|
-
// TODO: rejigger this at some point to simplify the selectors
|
317
331
|
|
318
|
-
.navbar .pull-right .dropdown-menu,
|
319
|
-
.navbar .dropdown-menu.pull-right
|
332
|
+
.navbar .pull-right > li > .dropdown-menu,
|
333
|
+
.navbar .nav > li > .dropdown-menu.pull-right
|
320
334
|
left: auto
|
321
335
|
right: 0
|
322
336
|
&:before
|
@@ -325,3 +339,84 @@
|
|
325
339
|
&:after
|
326
340
|
left: auto
|
327
341
|
right: 13px
|
342
|
+
.dropdown-menu
|
343
|
+
left: auto
|
344
|
+
right: 100%
|
345
|
+
margin-left: 0
|
346
|
+
margin-right: -1px
|
347
|
+
+ctb-border-radius(6px 0 6px 6px)
|
348
|
+
|
349
|
+
// Inverted navbar
|
350
|
+
// -------------------------
|
351
|
+
|
352
|
+
.navbar-inverse
|
353
|
+
.navbar-inner
|
354
|
+
+ctb-gradient-vertical($navbarInverseBackgroundHighlight, $navbarInverseBackground)
|
355
|
+
border-color: $navbarInverseBorder
|
356
|
+
.brand,
|
357
|
+
.nav > li > a
|
358
|
+
color: $navbarInverseLinkColor
|
359
|
+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
|
360
|
+
&:hover
|
361
|
+
color: $navbarInverseLinkColorHover
|
362
|
+
.brand
|
363
|
+
color: $navbarInverseBrandColor
|
364
|
+
.navbar-text
|
365
|
+
color: $navbarInverseText
|
366
|
+
.nav > li > a:focus,
|
367
|
+
.nav > li > a:hover
|
368
|
+
background-color: $navbarInverseLinkBackgroundHover
|
369
|
+
color: $navbarInverseLinkColorHover
|
370
|
+
.nav .active > a,
|
371
|
+
.nav .active > a:hover,
|
372
|
+
.nav .active > a:focus
|
373
|
+
color: $navbarInverseLinkColorActive
|
374
|
+
background-color: $navbarInverseLinkBackgroundActive
|
375
|
+
// Inline text links
|
376
|
+
.navbar-link
|
377
|
+
color: $navbarInverseLinkColor
|
378
|
+
&:hover
|
379
|
+
color: $navbarInverseLinkColorHover
|
380
|
+
// Dividers in navbar
|
381
|
+
.divider-vertical
|
382
|
+
border-left-color: $navbarInverseBackground
|
383
|
+
border-right-color: $navbarInverseBackgroundHighlight
|
384
|
+
// Dropdowns
|
385
|
+
.nav li.dropdown.open > .dropdown-toggle,
|
386
|
+
.nav li.dropdown.active > .dropdown-toggle,
|
387
|
+
.nav li.dropdown.open.active > .dropdown-toggle
|
388
|
+
background-color: $navbarInverseLinkBackgroundActive
|
389
|
+
color: $navbarInverseLinkColorActive
|
390
|
+
.nav li.dropdown > a:hover .caret
|
391
|
+
border-top-color: $navbarInverseLinkColorActive
|
392
|
+
border-bottom-color: $navbarInverseLinkColorActive
|
393
|
+
.nav li.dropdown > .dropdown-toggle .caret
|
394
|
+
border-top-color: $navbarInverseLinkColor
|
395
|
+
border-bottom-color: $navbarInverseLinkColor
|
396
|
+
.nav li.dropdown.open > .dropdown-toggle .caret,
|
397
|
+
.nav li.dropdown.active > .dropdown-toggle .caret,
|
398
|
+
.nav li.dropdown.open.active > .dropdown-toggle .caret
|
399
|
+
border-top-color: $navbarInverseLinkColorActive
|
400
|
+
border-bottom-color: $navbarInverseLinkColorActive
|
401
|
+
// Navbar search
|
402
|
+
.navbar-search
|
403
|
+
.search-query
|
404
|
+
color: $white
|
405
|
+
background-color: $navbarInverseSearchBackground
|
406
|
+
border-color: $navbarInverseSearchBorder
|
407
|
+
+ctb-box-shadow(#{inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.15)})
|
408
|
+
+ctb-transition(none)
|
409
|
+
+ctb-placeholder($navbarInverseSearchPlaceholderColor)
|
410
|
+
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
411
|
+
&:focus,
|
412
|
+
&.focused
|
413
|
+
padding: 5px 15px
|
414
|
+
color: $grayDark
|
415
|
+
text-shadow: 0 1px 0 $white
|
416
|
+
background-color: $navbarInverseSearchBackgroundFocus
|
417
|
+
border: 0
|
418
|
+
+ctb-box-shadow(0 0 3px rgba(0, 0, 0, 0.15))
|
419
|
+
outline: 0
|
420
|
+
// Navbar collapse button
|
421
|
+
.btn-navbar
|
422
|
+
+ctb-buttonBackground(darken($navbarInverseBackgroundHighlight, 5%), darken($navbarInverseBackground, 5%))
|