bootstrap-generators 2.0.4 → 2.1.1
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.
- data/README.md +211 -63
- data/lib/bootstrap/generators/version.rb +1 -1
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.scss +102 -28
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +104 -31
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/bootstrap-affix.js +104 -0
- data/vendor/assets/javascripts/bootstrap-alert.js +1 -1
- data/vendor/assets/javascripts/bootstrap-button.js +2 -2
- data/vendor/assets/javascripts/bootstrap-carousel.js +12 -5
- data/vendor/assets/javascripts/bootstrap-collapse.js +4 -3
- data/vendor/assets/javascripts/bootstrap-dropdown.js +66 -16
- data/vendor/assets/javascripts/bootstrap-modal.js +95 -74
- data/vendor/assets/javascripts/bootstrap-popover.js +9 -4
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +9 -9
- data/vendor/assets/javascripts/bootstrap-tab.js +2 -2
- data/vendor/assets/javascripts/bootstrap-tooltip.js +15 -15
- data/vendor/assets/javascripts/bootstrap-transition.js +2 -3
- data/vendor/assets/javascripts/bootstrap-typeahead.js +51 -36
- data/vendor/assets/javascripts/bootstrap.js +1 -1
- data/vendor/assets/stylesheets/bootstrap-responsive.css +1058 -0
- data/vendor/assets/stylesheets/bootstrap-responsive.min.css +9 -0
- data/vendor/assets/stylesheets/bootstrap.css +5774 -0
- data/vendor/assets/stylesheets/bootstrap.min.css +9 -0
- data/vendor/twitter/bootstrap/less/accordion.less +3 -2
- data/vendor/twitter/bootstrap/less/alerts.less +16 -9
- data/vendor/twitter/bootstrap/less/bootstrap.less +1 -1
- data/vendor/twitter/bootstrap/less/breadcrumbs.less +10 -10
- data/vendor/twitter/bootstrap/less/button-groups.less +79 -25
- data/vendor/twitter/bootstrap/less/buttons.less +107 -67
- data/vendor/twitter/bootstrap/less/carousel.less +13 -3
- data/vendor/twitter/bootstrap/less/close.less +4 -2
- data/vendor/twitter/bootstrap/less/code.less +6 -5
- data/vendor/twitter/bootstrap/less/component-animations.less +4 -2
- data/vendor/twitter/bootstrap/less/dropdowns.less +82 -15
- data/vendor/twitter/bootstrap/less/forms.less +124 -57
- data/vendor/twitter/bootstrap/less/grid.less +17 -1
- data/vendor/twitter/bootstrap/less/hero-unit.less +4 -2
- data/vendor/twitter/bootstrap/less/labels-badges.less +19 -2
- data/vendor/twitter/bootstrap/less/layouts.less +1 -2
- data/vendor/twitter/bootstrap/less/mixins.less +112 -77
- data/vendor/twitter/bootstrap/less/modals.less +12 -4
- data/vendor/twitter/bootstrap/less/navbar.less +245 -128
- data/vendor/twitter/bootstrap/less/navs.less +38 -17
- data/vendor/twitter/bootstrap/less/pager.less +11 -7
- data/vendor/twitter/bootstrap/less/pagination.less +23 -15
- data/vendor/twitter/bootstrap/less/popovers.less +101 -33
- data/vendor/twitter/bootstrap/less/progress-bars.less +18 -13
- data/vendor/twitter/bootstrap/less/reset.less +10 -4
- data/vendor/twitter/bootstrap/less/responsive-1200px-min.less +9 -7
- data/vendor/twitter/bootstrap/less/responsive-767px-max.less +95 -70
- data/vendor/twitter/bootstrap/less/responsive-768px-979px.less +7 -5
- data/vendor/twitter/bootstrap/less/responsive-navbar.less +30 -6
- data/vendor/twitter/bootstrap/less/responsive-utilities.less +17 -15
- data/vendor/twitter/bootstrap/less/responsive.less +5 -5
- data/vendor/twitter/bootstrap/less/scaffolding.less +27 -4
- data/vendor/twitter/bootstrap/less/sprites.less +21 -19
- data/vendor/twitter/bootstrap/less/tables.less +81 -12
- data/vendor/twitter/bootstrap/less/thumbnails.less +9 -4
- data/vendor/twitter/bootstrap/less/tooltip.less +47 -12
- data/vendor/twitter/bootstrap/less/type.less +75 -86
- data/vendor/twitter/bootstrap/less/utilities.less +9 -2
- data/vendor/twitter/bootstrap/less/variables.less +104 -31
- data/vendor/twitter/bootstrap/less/wells.less +7 -5
- data/vendor/twitter/bootstrap/sass/_accordion.scss +3 -2
- data/vendor/twitter/bootstrap/sass/_alerts.scss +15 -8
- data/vendor/twitter/bootstrap/sass/_breadcrumbs.scss +10 -10
- data/vendor/twitter/bootstrap/sass/_button-groups.scss +77 -23
- data/vendor/twitter/bootstrap/sass/_buttons.scss +106 -66
- data/vendor/twitter/bootstrap/sass/_carousel.scss +13 -3
- data/vendor/twitter/bootstrap/sass/_close.scss +5 -3
- data/vendor/twitter/bootstrap/sass/_code.scss +7 -6
- data/vendor/twitter/bootstrap/sass/_component-animations.scss +5 -3
- data/vendor/twitter/bootstrap/sass/_dropdowns.scss +85 -18
- data/vendor/twitter/bootstrap/sass/_forms.scss +121 -53
- data/vendor/twitter/bootstrap/sass/_grid.scss +17 -1
- data/vendor/twitter/bootstrap/sass/_hero-unit.scss +4 -2
- data/vendor/twitter/bootstrap/sass/_labels-badges.scss +29 -12
- data/vendor/twitter/bootstrap/sass/_layouts.scss +2 -3
- data/vendor/twitter/bootstrap/sass/_mixins.scss +163 -127
- data/vendor/twitter/bootstrap/sass/_modals.scss +12 -4
- data/vendor/twitter/bootstrap/sass/_navbar.scss +243 -127
- data/vendor/twitter/bootstrap/sass/_navs.scss +36 -15
- data/vendor/twitter/bootstrap/sass/_pager.scss +12 -8
- data/vendor/twitter/bootstrap/sass/_pagination.scss +23 -15
- data/vendor/twitter/bootstrap/sass/_popovers.scss +101 -33
- data/vendor/twitter/bootstrap/sass/_progress-bars.scss +18 -13
- data/vendor/twitter/bootstrap/sass/_reset.scss +8 -3
- data/vendor/twitter/bootstrap/sass/_responsive-1200px-min.scss +9 -7
- data/vendor/twitter/bootstrap/sass/_responsive-767px-max.scss +95 -70
- data/vendor/twitter/bootstrap/sass/_responsive-768px-979px.scss +8 -6
- data/vendor/twitter/bootstrap/sass/_responsive-navbar.scss +29 -5
- data/vendor/twitter/bootstrap/sass/_responsive-utilities.scss +32 -15
- data/vendor/twitter/bootstrap/sass/_scaffolding.scss +29 -4
- data/vendor/twitter/bootstrap/sass/_sprites.scss +21 -19
- data/vendor/twitter/bootstrap/sass/_tables.scss +79 -11
- data/vendor/twitter/bootstrap/sass/_thumbnails.scss +9 -4
- data/vendor/twitter/bootstrap/sass/_tooltip.scss +47 -12
- data/vendor/twitter/bootstrap/sass/_type.scss +74 -85
- data/vendor/twitter/bootstrap/sass/_utilities.scss +24 -2
- data/vendor/twitter/bootstrap/sass/_variables.scss +102 -28
- data/vendor/twitter/bootstrap/sass/_wells.scss +7 -5
- data/vendor/twitter/bootstrap/sass/bootstrap.scss +1 -1
- data/vendor/twitter/bootstrap/sass/responsive.scss +5 -5
- metadata +15 -10
|
@@ -1,27 +1,35 @@
|
|
|
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
|
|
|
17
|
-
//
|
|
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
|
|
18
22
|
.navbar-inner {
|
|
19
23
|
min-height: @navbarHeight;
|
|
20
24
|
padding-left: 20px;
|
|
21
25
|
padding-right: 20px;
|
|
22
26
|
#gradient > .vertical(@navbarBackgroundHighlight, @navbarBackground);
|
|
27
|
+
border: 1px solid @navbarBorder;
|
|
23
28
|
.border-radius(4px);
|
|
24
|
-
.box-shadow(
|
|
29
|
+
.box-shadow(0 1px 4px rgba(0,0,0,.065));
|
|
30
|
+
|
|
31
|
+
// Prevent floats from breaking the navbar
|
|
32
|
+
.clearfix();
|
|
25
33
|
}
|
|
26
34
|
|
|
27
35
|
// Set width to auto for default container
|
|
@@ -36,49 +44,62 @@
|
|
|
36
44
|
}
|
|
37
45
|
|
|
38
46
|
|
|
39
|
-
// Brand
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
// Brand: website or project name
|
|
48
|
+
// -------------------------
|
|
49
|
+
.navbar .brand {
|
|
50
|
+
float: left;
|
|
51
|
+
display: block;
|
|
52
|
+
// Vertically center the text given @navbarHeight
|
|
53
|
+
padding: ((@navbarHeight - @baseLineHeight) / 2) 20px ((@navbarHeight - @baseLineHeight) / 2);
|
|
54
|
+
margin-left: -20px; // negative indent to left-align the text down the page
|
|
55
|
+
font-size: 20px;
|
|
56
|
+
font-weight: 200;
|
|
57
|
+
color: @navbarBrandColor;
|
|
58
|
+
text-shadow: 0 1px 0 @navbarBackgroundHighlight;
|
|
59
|
+
&:hover {
|
|
44
60
|
text-decoration: none;
|
|
45
61
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
margin-bottom: 0;
|
|
62
|
-
line-height: @navbarHeight;
|
|
63
|
-
}
|
|
64
|
-
// Janky solution for now to account for links outside the .nav
|
|
65
|
-
.navbar-link {
|
|
66
|
-
color: @navbarLinkColor;
|
|
67
|
-
&:hover {
|
|
68
|
-
color: @navbarLinkColorHover;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
// Buttons in navbar
|
|
72
|
-
.btn,
|
|
73
|
-
.btn-group {
|
|
74
|
-
.navbarVerticalAlign(30px); // Vertically center in navbar
|
|
75
|
-
}
|
|
76
|
-
.btn-group .btn {
|
|
77
|
-
margin: 0; // then undo the margin here so we don't accidentally double it
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Plain text in topbar
|
|
65
|
+
// -------------------------
|
|
66
|
+
.navbar-text {
|
|
67
|
+
margin-bottom: 0;
|
|
68
|
+
line-height: @navbarHeight;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Janky solution for now to account for links outside the .nav
|
|
72
|
+
// -------------------------
|
|
73
|
+
.navbar-link {
|
|
74
|
+
color: @navbarLinkColor;
|
|
75
|
+
&:hover {
|
|
76
|
+
color: @navbarLinkColorHover;
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
|
|
80
|
+
// Dividers in navbar
|
|
81
|
+
// -------------------------
|
|
82
|
+
.navbar .divider-vertical {
|
|
83
|
+
height: @navbarHeight;
|
|
84
|
+
margin: 0 9px;
|
|
85
|
+
border-left: 1px solid @navbarBackground;
|
|
86
|
+
border-right: 1px solid @navbarBackgroundHighlight;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Buttons in navbar
|
|
90
|
+
// -------------------------
|
|
91
|
+
.navbar .btn,
|
|
92
|
+
.navbar .btn-group {
|
|
93
|
+
.navbarVerticalAlign(30px); // Vertically center in navbar
|
|
94
|
+
}
|
|
95
|
+
.navbar .btn-group .btn,
|
|
96
|
+
.navbar .input-prepend .btn,
|
|
97
|
+
.navbar .input-append .btn {
|
|
98
|
+
margin-top: 0; // then undo the margin here so we don't accidentally double it
|
|
99
|
+
}
|
|
100
|
+
|
|
81
101
|
// Navbar forms
|
|
102
|
+
// -------------------------
|
|
82
103
|
.navbar-form {
|
|
83
104
|
margin-bottom: 0; // remove default bottom margin
|
|
84
105
|
.clearfix();
|
|
@@ -89,7 +110,8 @@
|
|
|
89
110
|
.navbarVerticalAlign(30px); // Vertically center in navbar
|
|
90
111
|
}
|
|
91
112
|
input,
|
|
92
|
-
select
|
|
113
|
+
select,
|
|
114
|
+
.btn {
|
|
93
115
|
display: inline-block;
|
|
94
116
|
margin-bottom: 0;
|
|
95
117
|
}
|
|
@@ -109,40 +131,38 @@
|
|
|
109
131
|
}
|
|
110
132
|
|
|
111
133
|
// Navbar search
|
|
134
|
+
// -------------------------
|
|
112
135
|
.navbar-search {
|
|
113
136
|
position: relative;
|
|
114
137
|
float: left;
|
|
115
|
-
.navbarVerticalAlign(
|
|
138
|
+
.navbarVerticalAlign(30px); // Vertically center in navbar
|
|
116
139
|
margin-bottom: 0;
|
|
117
140
|
.search-query {
|
|
118
|
-
|
|
141
|
+
margin-bottom: 0;
|
|
142
|
+
padding: 4px 14px;
|
|
119
143
|
#font > .sans-serif(13px, normal, 1);
|
|
120
|
-
|
|
121
|
-
background-color: @navbarSearchBackground;
|
|
122
|
-
border: 1px solid @navbarSearchBorder;
|
|
123
|
-
.box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
|
|
124
|
-
.transition(none);
|
|
125
|
-
|
|
126
|
-
.placeholder(@navbarSearchPlaceholderColor);
|
|
127
|
-
|
|
128
|
-
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
|
129
|
-
&:focus,
|
|
130
|
-
&.focused {
|
|
131
|
-
padding: 5px 10px;
|
|
132
|
-
color: @grayDark;
|
|
133
|
-
text-shadow: 0 1px 0 @white;
|
|
134
|
-
background-color: @navbarSearchBackgroundFocus;
|
|
135
|
-
border: 0;
|
|
136
|
-
.box-shadow(0 0 3px rgba(0,0,0,.15));
|
|
137
|
-
outline: 0;
|
|
138
|
-
}
|
|
144
|
+
.border-radius(15px); // redeclare because of specificity of the type attribute
|
|
139
145
|
}
|
|
140
146
|
}
|
|
141
147
|
|
|
142
148
|
|
|
143
149
|
|
|
144
|
-
//
|
|
145
|
-
//
|
|
150
|
+
// Static navbar
|
|
151
|
+
// -------------------------
|
|
152
|
+
|
|
153
|
+
.navbar-static-top {
|
|
154
|
+
position: static;
|
|
155
|
+
width: 100%;
|
|
156
|
+
margin-bottom: 0; // remove 18px margin for default navbar
|
|
157
|
+
.navbar-inner {
|
|
158
|
+
.border-radius(0);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
// Fixed navbar
|
|
165
|
+
// -------------------------
|
|
146
166
|
|
|
147
167
|
// Shared (top/bottom) styles
|
|
148
168
|
.navbar-fixed-top,
|
|
@@ -151,7 +171,14 @@
|
|
|
151
171
|
right: 0;
|
|
152
172
|
left: 0;
|
|
153
173
|
z-index: @zindexFixedNavbar;
|
|
154
|
-
margin-bottom: 0; // remove 18px margin for
|
|
174
|
+
margin-bottom: 0; // remove 18px margin for default navbar
|
|
175
|
+
}
|
|
176
|
+
.navbar-fixed-top .navbar-inner,
|
|
177
|
+
.navbar-static-top .navbar-inner {
|
|
178
|
+
border-width: 0 0 1px;
|
|
179
|
+
}
|
|
180
|
+
.navbar-fixed-bottom .navbar-inner {
|
|
181
|
+
border-width: 1px 0 0;
|
|
155
182
|
}
|
|
156
183
|
.navbar-fixed-top .navbar-inner,
|
|
157
184
|
.navbar-fixed-bottom .navbar-inner {
|
|
@@ -160,6 +187,9 @@
|
|
|
160
187
|
.border-radius(0);
|
|
161
188
|
}
|
|
162
189
|
|
|
190
|
+
// Reset container width
|
|
191
|
+
// Required here as we reset the width earlier on and the grid mixins don't override early enough
|
|
192
|
+
.navbar-static-top .container,
|
|
163
193
|
.navbar-fixed-top .container,
|
|
164
194
|
.navbar-fixed-bottom .container {
|
|
165
195
|
#grid > .core > .span(@gridColumns);
|
|
@@ -169,10 +199,19 @@
|
|
|
169
199
|
.navbar-fixed-top {
|
|
170
200
|
top: 0;
|
|
171
201
|
}
|
|
202
|
+
.navbar-fixed-top,
|
|
203
|
+
.navbar-static-top {
|
|
204
|
+
.navbar-inner {
|
|
205
|
+
.box-shadow(inset 0 -1px 0 rgba(0,0,0,.1), 0 1px 10px rgba(0,0,0,.1));
|
|
206
|
+
}
|
|
207
|
+
}
|
|
172
208
|
|
|
173
209
|
// Fixed to bottom
|
|
174
210
|
.navbar-fixed-bottom {
|
|
175
211
|
bottom: 0;
|
|
212
|
+
.navbar-inner {
|
|
213
|
+
.box-shadow(inset 0 1px 0 rgba(0,0,0,.1), 0 -1px 10px rgba(0,0,0,.1));
|
|
214
|
+
}
|
|
176
215
|
}
|
|
177
216
|
|
|
178
217
|
|
|
@@ -189,9 +228,9 @@
|
|
|
189
228
|
}
|
|
190
229
|
.navbar .nav.pull-right {
|
|
191
230
|
float: right; // redeclare due to specificity
|
|
231
|
+
margin-right: 0; // remove margin on float right nav
|
|
192
232
|
}
|
|
193
233
|
.navbar .nav > li {
|
|
194
|
-
display: block;
|
|
195
234
|
float: left;
|
|
196
235
|
}
|
|
197
236
|
|
|
@@ -199,29 +238,17 @@
|
|
|
199
238
|
.navbar .nav > li > a {
|
|
200
239
|
float: none;
|
|
201
240
|
// Vertically center the text given @navbarHeight
|
|
202
|
-
|
|
203
|
-
padding: ((@navbarHeight - @elementHeight) / 2 - 1) 10px ((@navbarHeight - @elementHeight) / 2 + 1);
|
|
204
|
-
line-height: 19px;
|
|
241
|
+
padding: ((@navbarHeight - @baseLineHeight) / 2) 15px ((@navbarHeight - @baseLineHeight) / 2);
|
|
205
242
|
color: @navbarLinkColor;
|
|
206
243
|
text-decoration: none;
|
|
207
|
-
text-shadow: 0
|
|
208
|
-
}
|
|
209
|
-
// Buttons
|
|
210
|
-
.navbar .btn {
|
|
211
|
-
display: inline-block;
|
|
212
|
-
padding: 4px 10px 4px;
|
|
213
|
-
// Vertically center the button given @navbarHeight
|
|
214
|
-
@elementHeight: 28px;
|
|
215
|
-
margin: ((@navbarHeight - @elementHeight) / 2 - 1) 5px ((@navbarHeight - @elementHeight) / 2);
|
|
216
|
-
line-height: @baseLineHeight;
|
|
244
|
+
text-shadow: 0 1px 0 @navbarBackgroundHighlight;
|
|
217
245
|
}
|
|
218
|
-
.navbar .
|
|
219
|
-
margin:
|
|
220
|
-
// Vertically center the button given @navbarHeight
|
|
221
|
-
@elementHeight: 28px;
|
|
222
|
-
padding: ((@navbarHeight - @elementHeight) / 2 - 1) 5px ((@navbarHeight - @elementHeight) / 2);
|
|
246
|
+
.navbar .nav .dropdown-toggle .caret {
|
|
247
|
+
margin-top: 8px;
|
|
223
248
|
}
|
|
249
|
+
|
|
224
250
|
// Hover
|
|
251
|
+
.navbar .nav > li > a:focus,
|
|
225
252
|
.navbar .nav > li > a:hover {
|
|
226
253
|
background-color: @navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover from .active
|
|
227
254
|
color: @navbarLinkColorHover;
|
|
@@ -229,27 +256,13 @@
|
|
|
229
256
|
}
|
|
230
257
|
|
|
231
258
|
// Active nav items
|
|
232
|
-
.navbar .nav .active > a,
|
|
233
|
-
.navbar .nav .active > a:hover
|
|
259
|
+
.navbar .nav > .active > a,
|
|
260
|
+
.navbar .nav > .active > a:hover,
|
|
261
|
+
.navbar .nav > .active > a:focus {
|
|
234
262
|
color: @navbarLinkColorActive;
|
|
235
263
|
text-decoration: none;
|
|
236
264
|
background-color: @navbarLinkBackgroundActive;
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
// Dividers (basically a vertical hr)
|
|
240
|
-
.navbar .divider-vertical {
|
|
241
|
-
height: @navbarHeight;
|
|
242
|
-
width: 1px;
|
|
243
|
-
margin: 0 9px;
|
|
244
|
-
overflow: hidden;
|
|
245
|
-
background-color: @navbarBackground;
|
|
246
|
-
border-right: 1px solid @navbarBackgroundHighlight;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
// Secondary (floated right) nav in topbar
|
|
250
|
-
.navbar .nav.pull-right {
|
|
251
|
-
margin-left: 10px;
|
|
252
|
-
margin-right: 0;
|
|
265
|
+
.box-shadow(inset 0 3px 8px rgba(0,0,0,.125));
|
|
253
266
|
}
|
|
254
267
|
|
|
255
268
|
// Navbar button for toggling navbar items in responsive layouts
|
|
@@ -260,8 +273,8 @@
|
|
|
260
273
|
padding: 7px 10px;
|
|
261
274
|
margin-left: 5px;
|
|
262
275
|
margin-right: 5px;
|
|
263
|
-
.buttonBackground(@navbarBackgroundHighlight, @navbarBackground);
|
|
264
|
-
.box-shadow(
|
|
276
|
+
.buttonBackground(darken(@navbarBackgroundHighlight, 5%), darken(@navbarBackground, 5%));
|
|
277
|
+
.box-shadow(inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075));
|
|
265
278
|
}
|
|
266
279
|
.navbar .btn-navbar .icon-bar {
|
|
267
280
|
display: block;
|
|
@@ -276,11 +289,12 @@
|
|
|
276
289
|
}
|
|
277
290
|
|
|
278
291
|
|
|
292
|
+
|
|
279
293
|
// Dropdown menus
|
|
280
294
|
// --------------
|
|
281
295
|
|
|
282
296
|
// Menu position and menu carets
|
|
283
|
-
.navbar .dropdown-menu {
|
|
297
|
+
.navbar .nav > li > .dropdown-menu {
|
|
284
298
|
&:before {
|
|
285
299
|
content: '';
|
|
286
300
|
display: inline-block;
|
|
@@ -304,7 +318,7 @@
|
|
|
304
318
|
}
|
|
305
319
|
}
|
|
306
320
|
// Menu position and menu caret support for dropups via extra dropup class
|
|
307
|
-
.navbar-fixed-bottom .dropdown-menu {
|
|
321
|
+
.navbar-fixed-bottom .nav > li > .dropdown-menu {
|
|
308
322
|
&:before {
|
|
309
323
|
border-top: 7px solid #ccc;
|
|
310
324
|
border-top-color: @dropdownBorder;
|
|
@@ -319,32 +333,28 @@
|
|
|
319
333
|
top: auto;
|
|
320
334
|
}
|
|
321
335
|
}
|
|
322
|
-
// Dropdown toggle caret
|
|
323
|
-
.navbar .nav li.dropdown .dropdown-toggle .caret,
|
|
324
|
-
.navbar .nav li.dropdown.open .caret {
|
|
325
|
-
border-top-color: @white;
|
|
326
|
-
border-bottom-color: @white;
|
|
327
|
-
}
|
|
328
|
-
.navbar .nav li.dropdown.active .caret {
|
|
329
|
-
.opacity(100);
|
|
330
|
-
}
|
|
331
336
|
|
|
332
337
|
// Remove background color from open dropdown
|
|
333
338
|
.navbar .nav li.dropdown.open > .dropdown-toggle,
|
|
334
339
|
.navbar .nav li.dropdown.active > .dropdown-toggle,
|
|
335
340
|
.navbar .nav li.dropdown.open.active > .dropdown-toggle {
|
|
336
|
-
background-color:
|
|
341
|
+
background-color: @navbarLinkBackgroundActive;
|
|
342
|
+
color: @navbarLinkColorActive;
|
|
337
343
|
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
344
|
+
.navbar .nav li.dropdown > .dropdown-toggle .caret {
|
|
345
|
+
border-top-color: @navbarLinkColor;
|
|
346
|
+
border-bottom-color: @navbarLinkColor;
|
|
347
|
+
}
|
|
348
|
+
.navbar .nav li.dropdown.open > .dropdown-toggle .caret,
|
|
349
|
+
.navbar .nav li.dropdown.active > .dropdown-toggle .caret,
|
|
350
|
+
.navbar .nav li.dropdown.open.active > .dropdown-toggle .caret {
|
|
351
|
+
border-top-color: @navbarLinkColorActive;
|
|
352
|
+
border-bottom-color: @navbarLinkColorActive;
|
|
342
353
|
}
|
|
343
354
|
|
|
344
355
|
// Right aligned menus need alt position
|
|
345
|
-
|
|
346
|
-
.navbar .
|
|
347
|
-
.navbar .dropdown-menu.pull-right {
|
|
356
|
+
.navbar .pull-right > li > .dropdown-menu,
|
|
357
|
+
.navbar .nav > li > .dropdown-menu.pull-right {
|
|
348
358
|
left: auto;
|
|
349
359
|
right: 0;
|
|
350
360
|
&:before {
|
|
@@ -355,4 +365,111 @@
|
|
|
355
365
|
left: auto;
|
|
356
366
|
right: 13px;
|
|
357
367
|
}
|
|
358
|
-
|
|
368
|
+
.dropdown-menu {
|
|
369
|
+
left: auto;
|
|
370
|
+
right: 100%;
|
|
371
|
+
margin-left: 0;
|
|
372
|
+
margin-right: -1px;
|
|
373
|
+
.border-radius(6px 0 6px 6px);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
// Inverted navbar
|
|
379
|
+
// -------------------------
|
|
380
|
+
|
|
381
|
+
.navbar-inverse {
|
|
382
|
+
color: @navbarInverseText;
|
|
383
|
+
|
|
384
|
+
.navbar-inner {
|
|
385
|
+
#gradient > .vertical(@navbarInverseBackgroundHighlight, @navbarInverseBackground);
|
|
386
|
+
border-color: @navbarInverseBorder;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.brand,
|
|
390
|
+
.nav > li > a {
|
|
391
|
+
color: @navbarInverseLinkColor;
|
|
392
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
|
393
|
+
&:hover {
|
|
394
|
+
color: @navbarInverseLinkColorHover;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.nav > li > a:focus,
|
|
399
|
+
.nav > li > a:hover {
|
|
400
|
+
background-color: @navbarInverseLinkBackgroundHover;
|
|
401
|
+
color: @navbarInverseLinkColorHover;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.nav .active > a,
|
|
405
|
+
.nav .active > a:hover,
|
|
406
|
+
.nav .active > a:focus {
|
|
407
|
+
color: @navbarInverseLinkColorActive;
|
|
408
|
+
background-color: @navbarInverseLinkBackgroundActive;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// Inline text links
|
|
412
|
+
.navbar-link {
|
|
413
|
+
color: @navbarInverseLinkColor;
|
|
414
|
+
&:hover {
|
|
415
|
+
color: @navbarInverseLinkColorHover;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
// Dividers in navbar
|
|
420
|
+
.divider-vertical {
|
|
421
|
+
border-left-color: @navbarInverseBackground;
|
|
422
|
+
border-right-color: @navbarInverseBackgroundHighlight;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
// Dropdowns
|
|
426
|
+
.nav li.dropdown.open > .dropdown-toggle,
|
|
427
|
+
.nav li.dropdown.active > .dropdown-toggle,
|
|
428
|
+
.nav li.dropdown.open.active > .dropdown-toggle {
|
|
429
|
+
background-color: @navbarInverseLinkBackgroundActive;
|
|
430
|
+
color: @navbarInverseLinkColorActive;
|
|
431
|
+
}
|
|
432
|
+
.nav li.dropdown > .dropdown-toggle .caret {
|
|
433
|
+
border-top-color: @navbarInverseLinkColor;
|
|
434
|
+
border-bottom-color: @navbarInverseLinkColor;
|
|
435
|
+
}
|
|
436
|
+
.nav li.dropdown.open > .dropdown-toggle .caret,
|
|
437
|
+
.nav li.dropdown.active > .dropdown-toggle .caret,
|
|
438
|
+
.nav li.dropdown.open.active > .dropdown-toggle .caret {
|
|
439
|
+
border-top-color: @navbarInverseLinkColorActive;
|
|
440
|
+
border-bottom-color: @navbarInverseLinkColorActive;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
// Navbar search
|
|
444
|
+
.navbar-search {
|
|
445
|
+
.search-query {
|
|
446
|
+
color: @white;
|
|
447
|
+
background-color: @navbarInverseSearchBackground;
|
|
448
|
+
border-color: @navbarInverseSearchBorder;
|
|
449
|
+
.box-shadow(inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15));
|
|
450
|
+
.transition(none);
|
|
451
|
+
.placeholder(@navbarInverseSearchPlaceholderColor);
|
|
452
|
+
|
|
453
|
+
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
|
454
|
+
&:focus,
|
|
455
|
+
&.focused {
|
|
456
|
+
padding: 5px 15px;
|
|
457
|
+
color: @grayDark;
|
|
458
|
+
text-shadow: 0 1px 0 @white;
|
|
459
|
+
background-color: @navbarInverseSearchBackgroundFocus;
|
|
460
|
+
border: 0;
|
|
461
|
+
.box-shadow(0 0 3px rgba(0,0,0,.15));
|
|
462
|
+
outline: 0;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
// Navbar collapse button
|
|
468
|
+
.btn-navbar {
|
|
469
|
+
.buttonBackground(darken(@navbarInverseBackgroundHighlight, 5%), darken(@navbarInverseBackground, 5%));
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|