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