flatstrap-sass 2.3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +14 -0
- data/README.md +52 -0
- data/lib/flatstrap-sass.rb +51 -0
- data/lib/flatstrap-sass/compass_functions.rb +19 -0
- data/lib/flatstrap-sass/engine.rb +7 -0
- data/lib/flatstrap-sass/sass_functions.rb +14 -0
- data/templates/project/manifest.rb +13 -0
- data/templates/project/styles.scss +5 -0
- data/vendor/assets/javascripts/application.js +154 -0
- data/vendor/assets/javascripts/bootstrap-affix.js +117 -0
- data/vendor/assets/javascripts/bootstrap-alert.js +99 -0
- data/vendor/assets/javascripts/bootstrap-button.js +105 -0
- data/vendor/assets/javascripts/bootstrap-carousel.js +207 -0
- data/vendor/assets/javascripts/bootstrap-collapse.js +167 -0
- data/vendor/assets/javascripts/bootstrap-dropdown.js +165 -0
- data/vendor/assets/javascripts/bootstrap-modal.js +247 -0
- data/vendor/assets/javascripts/bootstrap-popover.js +114 -0
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +162 -0
- data/vendor/assets/javascripts/bootstrap-tab.js +144 -0
- data/vendor/assets/javascripts/bootstrap-tooltip.js +361 -0
- data/vendor/assets/javascripts/bootstrap-transition.js +60 -0
- data/vendor/assets/javascripts/bootstrap-typeahead.js +335 -0
- data/vendor/assets/javascripts/bootstrap.js +2159 -0
- data/vendor/assets/javascripts/bootstrap.min.js +6 -0
- data/vendor/assets/javascripts/google-code-prettify/prettify.js +28 -0
- data/vendor/assets/javascripts/jquery.js +2 -0
- data/vendor/assets/stylesheets/flatstrap-responsive.scss +1 -0
- data/vendor/assets/stylesheets/flatstrap.scss +1 -0
- data/vendor/assets/stylesheets/flatstrap/_accordion.scss +33 -0
- data/vendor/assets/stylesheets/flatstrap/_alerts.scss +78 -0
- data/vendor/assets/stylesheets/flatstrap/_breadcrumbs.scss +23 -0
- data/vendor/assets/stylesheets/flatstrap/_button-groups.scss +211 -0
- data/vendor/assets/stylesheets/flatstrap/_buttons.scss +215 -0
- data/vendor/assets/stylesheets/flatstrap/_carousel.scss +156 -0
- data/vendor/assets/stylesheets/flatstrap/_close.scss +32 -0
- data/vendor/assets/stylesheets/flatstrap/_code.scss +59 -0
- data/vendor/assets/stylesheets/flatstrap/_component-animations.scss +22 -0
- data/vendor/assets/stylesheets/flatstrap/_dropdowns.scss +231 -0
- data/vendor/assets/stylesheets/flatstrap/_font-awesome.scss +534 -0
- data/vendor/assets/stylesheets/flatstrap/_forms.scss +646 -0
- data/vendor/assets/stylesheets/flatstrap/_grid.scss +21 -0
- data/vendor/assets/stylesheets/flatstrap/_hero-unit.scss +24 -0
- data/vendor/assets/stylesheets/flatstrap/_labels-badges.scss +79 -0
- data/vendor/assets/stylesheets/flatstrap/_layouts.scss +16 -0
- data/vendor/assets/stylesheets/flatstrap/_media.scss +55 -0
- data/vendor/assets/stylesheets/flatstrap/_mixins.scss +654 -0
- data/vendor/assets/stylesheets/flatstrap/_modals.scss +91 -0
- data/vendor/assets/stylesheets/flatstrap/_navbar.scss +481 -0
- data/vendor/assets/stylesheets/flatstrap/_navs.scss +388 -0
- data/vendor/assets/stylesheets/flatstrap/_pager.scss +42 -0
- data/vendor/assets/stylesheets/flatstrap/_pagination.scss +94 -0
- data/vendor/assets/stylesheets/flatstrap/_popovers.scss +130 -0
- data/vendor/assets/stylesheets/flatstrap/_progress-bars.scss +118 -0
- data/vendor/assets/stylesheets/flatstrap/_reset.scss +216 -0
- data/vendor/assets/stylesheets/flatstrap/_responsive-1200px-min.scss +28 -0
- data/vendor/assets/stylesheets/flatstrap/_responsive-767px-max.scss +193 -0
- data/vendor/assets/stylesheets/flatstrap/_responsive-768px-979px.scss +19 -0
- data/vendor/assets/stylesheets/flatstrap/_responsive-navbar.scss +184 -0
- data/vendor/assets/stylesheets/flatstrap/_responsive-utilities.scss +74 -0
- data/vendor/assets/stylesheets/flatstrap/_scaffolding.scss +42 -0
- data/vendor/assets/stylesheets/flatstrap/_tables.scss +183 -0
- data/vendor/assets/stylesheets/flatstrap/_thumbnails.scss +50 -0
- data/vendor/assets/stylesheets/flatstrap/_tooltip.scss +69 -0
- data/vendor/assets/stylesheets/flatstrap/_type.scss +247 -0
- data/vendor/assets/stylesheets/flatstrap/_utilities.scss +45 -0
- data/vendor/assets/stylesheets/flatstrap/_variables.scss +296 -0
- data/vendor/assets/stylesheets/flatstrap/_wells.scss +25 -0
- data/vendor/assets/stylesheets/flatstrap/bootstrap-responsive.scss +48 -0
- data/vendor/assets/stylesheets/flatstrap/bootstrap.scss +63 -0
- metadata +180 -0
@@ -0,0 +1,91 @@
|
|
1
|
+
//
|
2
|
+
// Modals
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Background
|
6
|
+
.modal-backdrop {
|
7
|
+
position: fixed;
|
8
|
+
top: 0;
|
9
|
+
right: 0;
|
10
|
+
bottom: 0;
|
11
|
+
left: 0;
|
12
|
+
z-index: $zindexModalBackdrop;
|
13
|
+
background-color: $black;
|
14
|
+
// Fade for backdrop
|
15
|
+
&.fade { opacity: 0; }
|
16
|
+
}
|
17
|
+
|
18
|
+
.modal-backdrop,
|
19
|
+
.modal-backdrop.fade.in {
|
20
|
+
@include opacity(80);
|
21
|
+
}
|
22
|
+
|
23
|
+
// Base modal
|
24
|
+
.modal {
|
25
|
+
position: fixed;
|
26
|
+
top: 10%;
|
27
|
+
left: 50%;
|
28
|
+
z-index: $zindexModal;
|
29
|
+
width: 560px;
|
30
|
+
margin-left: -280px;
|
31
|
+
background-color: $white;
|
32
|
+
border: 1px solid #999;
|
33
|
+
border: 1px solid rgba(0,0,0,.3);
|
34
|
+
*border: 1px solid #999; /* IE6-7 */
|
35
|
+
@include background-clip(padding-box);
|
36
|
+
// Remove focus outline from opened modal
|
37
|
+
outline: none;
|
38
|
+
|
39
|
+
&.fade {
|
40
|
+
@include transition(opacity .3s linear, top .3s ease-out);
|
41
|
+
top: -25%;
|
42
|
+
}
|
43
|
+
&.fade.in { top: 10%; }
|
44
|
+
}
|
45
|
+
.modal-header {
|
46
|
+
padding: 9px 15px;
|
47
|
+
border-bottom: 1px solid #eee;
|
48
|
+
// Close icon
|
49
|
+
.close { margin-top: 2px; }
|
50
|
+
// Heading
|
51
|
+
h3 {
|
52
|
+
margin: 0;
|
53
|
+
line-height: 30px;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
// Body (where all modal content resides)
|
58
|
+
.modal-body {
|
59
|
+
position: relative;
|
60
|
+
overflow-y: auto;
|
61
|
+
max-height: 400px;
|
62
|
+
padding: 15px;
|
63
|
+
}
|
64
|
+
// Remove bottom margin if need be
|
65
|
+
.modal-form {
|
66
|
+
margin-bottom: 0;
|
67
|
+
}
|
68
|
+
|
69
|
+
// Footer (for actions)
|
70
|
+
.modal-footer {
|
71
|
+
padding: 14px 15px 15px;
|
72
|
+
margin-bottom: 0;
|
73
|
+
text-align: right; // right align buttons
|
74
|
+
background-color: #f5f5f5;
|
75
|
+
border-top: 1px solid #ddd;
|
76
|
+
@include clearfix(); // clear it in case folks use .pull-* classes on buttons
|
77
|
+
|
78
|
+
// Properly space out buttons
|
79
|
+
.btn + .btn {
|
80
|
+
margin-left: 5px;
|
81
|
+
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
82
|
+
}
|
83
|
+
// but override that for button groups
|
84
|
+
.btn-group .btn + .btn {
|
85
|
+
margin-left: -1px;
|
86
|
+
}
|
87
|
+
// and override it for block buttons as well
|
88
|
+
.btn-block + .btn-block {
|
89
|
+
margin-left: 0;
|
90
|
+
}
|
91
|
+
}
|
@@ -0,0 +1,481 @@
|
|
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
|
+
|
14
|
+
// Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
|
15
|
+
*position: relative;
|
16
|
+
*z-index: 2;
|
17
|
+
}
|
18
|
+
|
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
|
21
|
+
.navbar-inner {
|
22
|
+
min-height: $navbarHeight;
|
23
|
+
padding-left: 20px;
|
24
|
+
padding-right: 20px;
|
25
|
+
@include gradient-vertical($navbarBackgroundHighlight, $navbarBackground);
|
26
|
+
border: 1px solid $navbarBorder;
|
27
|
+
|
28
|
+
// Prevent floats from breaking the navbar
|
29
|
+
@include clearfix();
|
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
|
+
overflow: visible;
|
42
|
+
}
|
43
|
+
|
44
|
+
|
45
|
+
// Brand: website or project name
|
46
|
+
// -------------------------
|
47
|
+
.navbar .brand {
|
48
|
+
float: left;
|
49
|
+
display: block;
|
50
|
+
// Vertically center the text given $navbarHeight
|
51
|
+
padding: (($navbarHeight - $baseLineHeight) / 2) 20px (($navbarHeight - $baseLineHeight) / 2);
|
52
|
+
margin-left: -20px; // negative indent to left-align the text down the page
|
53
|
+
font-size: 20px;
|
54
|
+
font-weight: 200;
|
55
|
+
color: $navbarBrandColor;
|
56
|
+
text-shadow: 0 1px 0 $navbarBackgroundHighlight;
|
57
|
+
&:hover,
|
58
|
+
&:focus {
|
59
|
+
text-decoration: none;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
// Plain text in topbar
|
64
|
+
// -------------------------
|
65
|
+
.navbar-text {
|
66
|
+
margin-bottom: 0;
|
67
|
+
line-height: $navbarHeight;
|
68
|
+
color: $navbarText;
|
69
|
+
}
|
70
|
+
|
71
|
+
// Janky solution for now to account for links outside the .nav
|
72
|
+
// -------------------------
|
73
|
+
.navbar-link {
|
74
|
+
color: $navbarLinkColor;
|
75
|
+
&:hover,
|
76
|
+
&:focus {
|
77
|
+
color: $navbarLinkColorHover;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
// Dividers in navbar
|
82
|
+
// -------------------------
|
83
|
+
.navbar .divider-vertical {
|
84
|
+
height: $navbarHeight;
|
85
|
+
margin: 0 9px;
|
86
|
+
border-left: 1px solid $navbarBackground;
|
87
|
+
border-right: 1px solid $navbarBackgroundHighlight;
|
88
|
+
}
|
89
|
+
|
90
|
+
// Buttons in navbar
|
91
|
+
// -------------------------
|
92
|
+
.navbar .btn,
|
93
|
+
.navbar .btn-group {
|
94
|
+
@include navbarVerticalAlign(30px); // Vertically center in navbar
|
95
|
+
}
|
96
|
+
.navbar .btn-group .btn,
|
97
|
+
.navbar .input-prepend .btn,
|
98
|
+
.navbar .input-append .btn,
|
99
|
+
.navbar .input-prepend .btn-group,
|
100
|
+
.navbar .input-append .btn-group {
|
101
|
+
margin-top: 0; // then undo the margin here so we don't accidentally double it
|
102
|
+
}
|
103
|
+
|
104
|
+
// Navbar forms
|
105
|
+
// -------------------------
|
106
|
+
.navbar-form {
|
107
|
+
margin-bottom: 0; // remove default bottom margin
|
108
|
+
@include clearfix();
|
109
|
+
input,
|
110
|
+
select,
|
111
|
+
.radio,
|
112
|
+
.checkbox {
|
113
|
+
@include navbarVerticalAlign(30px); // Vertically center in navbar
|
114
|
+
}
|
115
|
+
input,
|
116
|
+
select,
|
117
|
+
.btn {
|
118
|
+
display: inline-block;
|
119
|
+
margin-bottom: 0;
|
120
|
+
}
|
121
|
+
input[type="image"],
|
122
|
+
input[type="checkbox"],
|
123
|
+
input[type="radio"] {
|
124
|
+
margin-top: 3px;
|
125
|
+
}
|
126
|
+
.input-append,
|
127
|
+
.input-prepend {
|
128
|
+
margin-top: 5px;
|
129
|
+
white-space: nowrap; // preven two items from separating within a .navbar-form that has .pull-left
|
130
|
+
input {
|
131
|
+
margin-top: 0; // remove the margin on top since it's on the parent
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
// Navbar search
|
137
|
+
// -------------------------
|
138
|
+
.navbar-search {
|
139
|
+
position: relative;
|
140
|
+
float: left;
|
141
|
+
@include navbarVerticalAlign(30px); // Vertically center in navbar
|
142
|
+
margin-bottom: 0;
|
143
|
+
.search-query {
|
144
|
+
margin-bottom: 0;
|
145
|
+
padding: 4px 14px;
|
146
|
+
@include font-sans-serif(13px, normal, 1);
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
// Static navbar
|
153
|
+
// -------------------------
|
154
|
+
|
155
|
+
.navbar-static-top {
|
156
|
+
position: static;
|
157
|
+
margin-bottom: 0; // remove 18px margin for default navbar
|
158
|
+
}
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
// Fixed navbar
|
163
|
+
// -------------------------
|
164
|
+
|
165
|
+
// Shared (top/bottom) styles
|
166
|
+
.navbar-fixed-top,
|
167
|
+
.navbar-fixed-bottom {
|
168
|
+
position: fixed;
|
169
|
+
right: 0;
|
170
|
+
left: 0;
|
171
|
+
z-index: $zindexFixedNavbar;
|
172
|
+
margin-bottom: 0; // remove 18px margin for default navbar
|
173
|
+
}
|
174
|
+
.navbar-fixed-top .navbar-inner,
|
175
|
+
.navbar-static-top .navbar-inner {
|
176
|
+
border-width: 0 0 1px;
|
177
|
+
}
|
178
|
+
.navbar-fixed-bottom .navbar-inner {
|
179
|
+
border-width: 1px 0 0;
|
180
|
+
}
|
181
|
+
.navbar-fixed-top .navbar-inner,
|
182
|
+
.navbar-fixed-bottom .navbar-inner {
|
183
|
+
padding-left: 0;
|
184
|
+
padding-right: 0;
|
185
|
+
}
|
186
|
+
|
187
|
+
// Reset container width
|
188
|
+
// Required here as we reset the width earlier on and the grid mixins don't override early enough
|
189
|
+
.navbar-static-top .container,
|
190
|
+
.navbar-fixed-top .container,
|
191
|
+
.navbar-fixed-bottom .container {
|
192
|
+
@include grid-core-span($gridColumns, $gridColumnWidth, $gridGutterWidth);
|
193
|
+
}
|
194
|
+
|
195
|
+
// Fixed to top
|
196
|
+
.navbar-fixed-top {
|
197
|
+
top: 0;
|
198
|
+
}
|
199
|
+
.navbar-fixed-top,
|
200
|
+
.navbar-static-top {
|
201
|
+
.navbar-inner {
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
// Fixed to bottom
|
206
|
+
.navbar-fixed-bottom {
|
207
|
+
bottom: 0;
|
208
|
+
.navbar-inner {
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
// NAVIGATION
|
215
|
+
// ----------
|
216
|
+
|
217
|
+
.navbar .nav {
|
218
|
+
position: relative;
|
219
|
+
left: 0;
|
220
|
+
display: block;
|
221
|
+
float: left;
|
222
|
+
margin: 0 10px 0 0;
|
223
|
+
}
|
224
|
+
.navbar .nav.pull-right {
|
225
|
+
float: right; // redeclare due to specificity
|
226
|
+
margin-right: 0; // remove margin on float right nav
|
227
|
+
}
|
228
|
+
.navbar .nav > li {
|
229
|
+
float: left;
|
230
|
+
}
|
231
|
+
|
232
|
+
// Links
|
233
|
+
.navbar .nav > li > a {
|
234
|
+
float: none;
|
235
|
+
// Vertically center the text given $navbarHeight
|
236
|
+
padding: (($navbarHeight - $baseLineHeight) / 2) 15px (($navbarHeight - $baseLineHeight) / 2);
|
237
|
+
color: $navbarLinkColor;
|
238
|
+
text-decoration: none;
|
239
|
+
text-shadow: 0 1px 0 $navbarBackgroundHighlight;
|
240
|
+
}
|
241
|
+
.navbar .nav .dropdown-toggle .caret {
|
242
|
+
margin-top: 8px;
|
243
|
+
}
|
244
|
+
|
245
|
+
// Hover/focus
|
246
|
+
.navbar .nav > li > a:focus,
|
247
|
+
.navbar .nav > li > a:hover {
|
248
|
+
background-color: $navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover/:focus from .active
|
249
|
+
color: $navbarLinkColorHover;
|
250
|
+
text-decoration: none;
|
251
|
+
}
|
252
|
+
|
253
|
+
// Active nav items
|
254
|
+
.navbar .nav > .active > a,
|
255
|
+
.navbar .nav > .active > a:hover,
|
256
|
+
.navbar .nav > .active > a:focus {
|
257
|
+
color: $navbarLinkColorActive;
|
258
|
+
text-decoration: none;
|
259
|
+
background-color: $navbarLinkBackgroundActive;
|
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 buttonBackground(darken($navbarBackgroundHighlight, 5%), darken($navbarBackground, 5%));
|
271
|
+
}
|
272
|
+
.navbar .btn-navbar .icon-bar {
|
273
|
+
display: block;
|
274
|
+
width: 18px;
|
275
|
+
height: 2px;
|
276
|
+
background-color: #f5f5f5;
|
277
|
+
}
|
278
|
+
.btn-navbar .icon-bar + .icon-bar {
|
279
|
+
margin-top: 3px;
|
280
|
+
}
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
// Dropdown menus
|
285
|
+
// --------------
|
286
|
+
|
287
|
+
// Menu position and menu carets
|
288
|
+
.navbar .nav > li > .dropdown-menu {
|
289
|
+
&:before {
|
290
|
+
content: '';
|
291
|
+
display: inline-block;
|
292
|
+
border-left: 7px solid transparent;
|
293
|
+
border-right: 7px solid transparent;
|
294
|
+
border-bottom: 7px solid #ccc;
|
295
|
+
border-bottom-color: $dropdownBorder;
|
296
|
+
position: absolute;
|
297
|
+
top: -7px;
|
298
|
+
left: 9px;
|
299
|
+
}
|
300
|
+
&:after {
|
301
|
+
content: '';
|
302
|
+
display: inline-block;
|
303
|
+
border-left: 6px solid transparent;
|
304
|
+
border-right: 6px solid transparent;
|
305
|
+
border-bottom: 6px solid $dropdownBackground;
|
306
|
+
position: absolute;
|
307
|
+
top: -6px;
|
308
|
+
left: 10px;
|
309
|
+
}
|
310
|
+
}
|
311
|
+
// Menu position and menu caret support for dropups via extra dropup class
|
312
|
+
.navbar-fixed-bottom .nav > li > .dropdown-menu {
|
313
|
+
&:before {
|
314
|
+
border-top: 7px solid #ccc;
|
315
|
+
border-top-color: $dropdownBorder;
|
316
|
+
border-bottom: 0;
|
317
|
+
bottom: -7px;
|
318
|
+
top: auto;
|
319
|
+
}
|
320
|
+
&:after {
|
321
|
+
border-top: 6px solid $dropdownBackground;
|
322
|
+
border-bottom: 0;
|
323
|
+
bottom: -6px;
|
324
|
+
top: auto;
|
325
|
+
}
|
326
|
+
}
|
327
|
+
|
328
|
+
// Caret should match text color on hover/focus
|
329
|
+
.navbar .nav li.dropdown > a:hover .caret,
|
330
|
+
.navbar .nav li.dropdown > a:focus .caret {
|
331
|
+
border-top-color: $navbarLinkColorActive;
|
332
|
+
border-bottom-color: $navbarLinkColorActive;
|
333
|
+
}
|
334
|
+
|
335
|
+
// Remove background color from open dropdown
|
336
|
+
.navbar .nav li.dropdown.open > .dropdown-toggle,
|
337
|
+
.navbar .nav li.dropdown.active > .dropdown-toggle,
|
338
|
+
.navbar .nav li.dropdown.open.active > .dropdown-toggle {
|
339
|
+
background-color: $navbarLinkBackgroundActive;
|
340
|
+
color: $navbarLinkColorActive;
|
341
|
+
}
|
342
|
+
.navbar .nav li.dropdown > .dropdown-toggle .caret {
|
343
|
+
border-top-color: $navbarLinkColor;
|
344
|
+
border-bottom-color: $navbarLinkColor;
|
345
|
+
}
|
346
|
+
.navbar .nav li.dropdown.open > .dropdown-toggle .caret,
|
347
|
+
.navbar .nav li.dropdown.active > .dropdown-toggle .caret,
|
348
|
+
.navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {
|
349
|
+
border-top-color: $navbarLinkColorActive;
|
350
|
+
border-bottom-color: $navbarLinkColorActive;
|
351
|
+
}
|
352
|
+
|
353
|
+
// Right aligned menus need alt position
|
354
|
+
.navbar .pull-right > li > .dropdown-menu,
|
355
|
+
.navbar .nav > li > .dropdown-menu.pull-right {
|
356
|
+
left: auto;
|
357
|
+
right: 0;
|
358
|
+
&:before {
|
359
|
+
left: auto;
|
360
|
+
right: 12px;
|
361
|
+
}
|
362
|
+
&:after {
|
363
|
+
left: auto;
|
364
|
+
right: 13px;
|
365
|
+
}
|
366
|
+
.dropdown-menu {
|
367
|
+
left: auto;
|
368
|
+
right: 100%;
|
369
|
+
margin-left: 0;
|
370
|
+
margin-right: -1px;
|
371
|
+
}
|
372
|
+
}
|
373
|
+
|
374
|
+
|
375
|
+
// Inverted navbar
|
376
|
+
// -------------------------
|
377
|
+
|
378
|
+
.navbar-inverse {
|
379
|
+
|
380
|
+
.navbar-inner {
|
381
|
+
@include gradient-vertical($navbarInverseBackgroundHighlight, $navbarInverseBackground);
|
382
|
+
border-color: $navbarInverseBorder;
|
383
|
+
}
|
384
|
+
|
385
|
+
.brand,
|
386
|
+
.nav > li > a {
|
387
|
+
color: $navbarInverseLinkColor;
|
388
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
389
|
+
&:hover,
|
390
|
+
&:focus {
|
391
|
+
color: $navbarInverseLinkColorHover;
|
392
|
+
}
|
393
|
+
}
|
394
|
+
|
395
|
+
.brand {
|
396
|
+
color: $navbarInverseBrandColor;
|
397
|
+
}
|
398
|
+
|
399
|
+
.navbar-text {
|
400
|
+
color: $navbarInverseText;
|
401
|
+
}
|
402
|
+
|
403
|
+
.nav > li > a:focus,
|
404
|
+
.nav > li > a:hover {
|
405
|
+
background-color: $navbarInverseLinkBackgroundHover;
|
406
|
+
color: $navbarInverseLinkColorHover;
|
407
|
+
}
|
408
|
+
|
409
|
+
.nav .active > a,
|
410
|
+
.nav .active > a:hover,
|
411
|
+
.nav .active > a:focus {
|
412
|
+
color: $navbarInverseLinkColorActive;
|
413
|
+
background-color: $navbarInverseLinkBackgroundActive;
|
414
|
+
}
|
415
|
+
|
416
|
+
// Inline text links
|
417
|
+
.navbar-link {
|
418
|
+
color: $navbarInverseLinkColor;
|
419
|
+
&:hover,
|
420
|
+
&:focus {
|
421
|
+
color: $navbarInverseLinkColorHover;
|
422
|
+
}
|
423
|
+
}
|
424
|
+
|
425
|
+
// Dividers in navbar
|
426
|
+
.divider-vertical {
|
427
|
+
border-left-color: $navbarInverseBackground;
|
428
|
+
border-right-color: $navbarInverseBackgroundHighlight;
|
429
|
+
}
|
430
|
+
|
431
|
+
// Dropdowns
|
432
|
+
.nav li.dropdown.open > .dropdown-toggle,
|
433
|
+
.nav li.dropdown.active > .dropdown-toggle,
|
434
|
+
.nav li.dropdown.open.active > .dropdown-toggle {
|
435
|
+
background-color: $navbarInverseLinkBackgroundActive;
|
436
|
+
color: $navbarInverseLinkColorActive;
|
437
|
+
}
|
438
|
+
.nav li.dropdown > a:hover .caret,
|
439
|
+
.nav li.dropdown > a:focus .caret {
|
440
|
+
border-top-color: $navbarInverseLinkColorActive;
|
441
|
+
color: $navbarInverseLinkColorActive;
|
442
|
+
}
|
443
|
+
.nav li.dropdown > .dropdown-toggle .caret {
|
444
|
+
border-top-color: $navbarInverseLinkColor;
|
445
|
+
border-bottom-color: $navbarInverseLinkColor;
|
446
|
+
}
|
447
|
+
.nav li.dropdown.open > .dropdown-toggle .caret,
|
448
|
+
.nav li.dropdown.active > .dropdown-toggle .caret,
|
449
|
+
.nav li.dropdown.open.active > .dropdown-toggle .caret {
|
450
|
+
border-top-color: $navbarInverseLinkColorActive;
|
451
|
+
border-bottom-color: $navbarInverseLinkColorActive;
|
452
|
+
}
|
453
|
+
|
454
|
+
// Navbar search
|
455
|
+
.navbar-search {
|
456
|
+
.search-query {
|
457
|
+
color: $white;
|
458
|
+
background-color: $navbarInverseSearchBackground;
|
459
|
+
border-color: $navbarInverseSearchBorder;
|
460
|
+
@include transition(none);
|
461
|
+
@include placeholder($navbarInverseSearchPlaceholderColor);
|
462
|
+
|
463
|
+
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
464
|
+
&:focus,
|
465
|
+
&.focused {
|
466
|
+
padding: 5px 15px;
|
467
|
+
color: $grayDark;
|
468
|
+
text-shadow: 0 1px 0 $white;
|
469
|
+
background-color: $navbarInverseSearchBackgroundFocus;
|
470
|
+
border: 0;
|
471
|
+
outline: 0;
|
472
|
+
}
|
473
|
+
}
|
474
|
+
}
|
475
|
+
|
476
|
+
// Navbar collapse button
|
477
|
+
.btn-navbar {
|
478
|
+
@include buttonBackground(darken($navbarInverseBackgroundHighlight, 5%), darken($navbarInverseBackground, 5%));
|
479
|
+
}
|
480
|
+
|
481
|
+
}
|