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