twitter-bootstrap-rails 2.0.2 → 2.0.4
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 +34 -23
- data/lib/generators/bootstrap/install/install_generator.rb +36 -12
- data/lib/generators/bootstrap/install/templates/application.css +0 -1
- data/lib/generators/bootstrap/install/templates/bootstrap.coffee +1 -10
- data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less +19 -0
- data/lib/generators/bootstrap/layout/templates/layout.html.erb +18 -23
- data/lib/generators/bootstrap/layout/templates/layout.html.haml +4 -9
- data/lib/generators/bootstrap/layout/templates/layout.html.slim +4 -9
- data/lib/generators/bootstrap/themed/templates/_form.html.erb +19 -12
- data/lib/generators/bootstrap/themed/templates/_form.html.haml +13 -11
- data/lib/generators/bootstrap/themed/templates/edit.html.erb +1 -4
- data/lib/generators/bootstrap/themed/templates/edit.html.haml +1 -2
- data/lib/generators/bootstrap/themed/templates/edit.html.slim +1 -1
- data/lib/generators/bootstrap/themed/templates/index.html.erb +24 -28
- data/lib/generators/bootstrap/themed/templates/index.html.haml +3 -3
- data/lib/generators/bootstrap/themed/templates/new.html.erb +1 -3
- data/lib/generators/bootstrap/themed/templates/new.html.haml +1 -1
- data/lib/generators/bootstrap/themed/templates/new.html.slim +1 -1
- data/lib/generators/bootstrap/themed/templates/show.html.erb +11 -7
- data/lib/generators/bootstrap/themed/templates/show.html.haml +1 -1
- data/lib/generators/bootstrap/themed/themed_generator.rb +4 -4
- data/lib/twitter/bootstrap/rails/engine.rb +9 -3
- data/lib/twitter/bootstrap/rails/twitter-bootstrap-breadcrumbs.rb +25 -0
- data/lib/twitter/bootstrap/rails/version.rb +1 -1
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-alert.js +8 -5
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-button.js +5 -3
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js +9 -2
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js +5 -3
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-modal.js +6 -5
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-popover.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tab.js +2 -2
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js +3 -3
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-transition.js +3 -3
- data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js +8 -8
- data/vendor/toolkit/twitter/bootstrap/alerts.less +2 -14
- data/vendor/toolkit/twitter/bootstrap/badges.less +36 -0
- data/vendor/toolkit/twitter/bootstrap/bootstrap.less +2 -1
- data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +3 -1
- data/vendor/toolkit/twitter/bootstrap/button-groups.less +34 -8
- data/vendor/toolkit/twitter/bootstrap/buttons.less +38 -16
- data/vendor/toolkit/twitter/bootstrap/code.less +15 -2
- data/vendor/toolkit/twitter/bootstrap/component-animations.less +4 -2
- data/vendor/toolkit/twitter/bootstrap/dropdowns.less +46 -29
- data/vendor/toolkit/twitter/bootstrap/forms.less +120 -80
- data/vendor/toolkit/twitter/bootstrap/grid.less +2 -5
- data/vendor/toolkit/twitter/bootstrap/hero-unit.less +3 -1
- data/vendor/toolkit/twitter/bootstrap/labels.less +29 -7
- data/vendor/toolkit/twitter/bootstrap/mixins.less +233 -156
- data/vendor/toolkit/twitter/bootstrap/modals.less +22 -4
- data/vendor/toolkit/twitter/bootstrap/navbar.less +90 -41
- data/vendor/toolkit/twitter/bootstrap/navs.less +39 -20
- data/vendor/toolkit/twitter/bootstrap/pager.less +6 -0
- data/vendor/toolkit/twitter/bootstrap/pagination.less +1 -0
- data/vendor/toolkit/twitter/bootstrap/progress-bars.less +15 -1
- data/vendor/toolkit/twitter/bootstrap/reset.less +2 -2
- data/vendor/toolkit/twitter/bootstrap/responsive.less +80 -32
- data/vendor/toolkit/twitter/bootstrap/scaffolding.less +4 -4
- data/vendor/toolkit/twitter/bootstrap/sprites.less +10 -8
- data/vendor/toolkit/twitter/bootstrap/tables.less +39 -19
- data/vendor/toolkit/twitter/bootstrap/thumbnails.less +2 -2
- data/vendor/toolkit/twitter/bootstrap/type.less +25 -8
- data/vendor/toolkit/twitter/bootstrap/variables.less +114 -12
- data/vendor/toolkit/twitter/bootstrap/wells.less +10 -0
- data/vendor/toolkit/twitter/bootstrap_base.less +2 -0
- metadata +15 -14
- data/lib/generators/bootstrap/install/templates/bootstrap.less +0 -6
- data/vendor/assets/stylesheets/twitter/bootstrap.css.less +0 -1
- data/vendor/toolkit/twitter/bootstrap.less +0 -1
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
// -------------
|
|
7
7
|
|
|
8
8
|
.navbar {
|
|
9
|
+
// Fix for IE7's bad z-indexing so dropdowns don't appear below content that follows the navbar
|
|
10
|
+
*position: relative;
|
|
11
|
+
*z-index: 2;
|
|
12
|
+
|
|
9
13
|
overflow: visible;
|
|
10
14
|
margin-bottom: @baseLineHeight;
|
|
11
15
|
}
|
|
@@ -20,6 +24,12 @@
|
|
|
20
24
|
.box-shadow(@shadow);
|
|
21
25
|
}
|
|
22
26
|
|
|
27
|
+
// Set width to auto for default container
|
|
28
|
+
// We then reset it for fixed navbars in the #gridSystem mixin
|
|
29
|
+
.navbar .container {
|
|
30
|
+
width: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
23
33
|
// Navbar button for toggling navbar items in responsive layouts
|
|
24
34
|
.btn-navbar {
|
|
25
35
|
display: none;
|
|
@@ -50,6 +60,7 @@
|
|
|
50
60
|
|
|
51
61
|
// Brand, links, text, and buttons
|
|
52
62
|
.navbar {
|
|
63
|
+
color: @navbarText;
|
|
53
64
|
// Hover and active states
|
|
54
65
|
.brand:hover {
|
|
55
66
|
text-decoration: none;
|
|
@@ -68,20 +79,15 @@
|
|
|
68
79
|
// Plain text in topbar
|
|
69
80
|
.navbar-text {
|
|
70
81
|
margin-bottom: 0;
|
|
71
|
-
line-height:
|
|
72
|
-
color: @navbarText;
|
|
73
|
-
a:hover {
|
|
74
|
-
color: @white;
|
|
75
|
-
background-color: transparent;
|
|
76
|
-
}
|
|
82
|
+
line-height: @navbarHeight;
|
|
77
83
|
}
|
|
78
84
|
// Buttons in navbar
|
|
79
85
|
.btn,
|
|
80
86
|
.btn-group {
|
|
81
|
-
|
|
87
|
+
.navbarVerticalAlign(30px); // Vertically center in navbar
|
|
82
88
|
}
|
|
83
89
|
.btn-group .btn {
|
|
84
|
-
margin-top: 0;
|
|
90
|
+
margin-top: 0; // then undo the margin here so we don't accidentally double it
|
|
85
91
|
}
|
|
86
92
|
}
|
|
87
93
|
|
|
@@ -90,56 +96,62 @@
|
|
|
90
96
|
margin-bottom: 0; // remove default bottom margin
|
|
91
97
|
.clearfix();
|
|
92
98
|
input,
|
|
99
|
+
select,
|
|
100
|
+
.radio,
|
|
101
|
+
.checkbox {
|
|
102
|
+
.navbarVerticalAlign(30px); // Vertically center in navbar
|
|
103
|
+
}
|
|
104
|
+
input,
|
|
93
105
|
select {
|
|
94
106
|
display: inline-block;
|
|
95
|
-
margin-top: 5px;
|
|
96
107
|
margin-bottom: 0;
|
|
97
108
|
}
|
|
98
|
-
.radio,
|
|
99
|
-
.checkbox {
|
|
100
|
-
margin-top: 5px;
|
|
101
|
-
}
|
|
102
109
|
input[type="image"],
|
|
103
110
|
input[type="checkbox"],
|
|
104
111
|
input[type="radio"] {
|
|
105
112
|
margin-top: 3px;
|
|
106
113
|
}
|
|
114
|
+
.input-append,
|
|
115
|
+
.input-prepend {
|
|
116
|
+
margin-top: 6px;
|
|
117
|
+
white-space: nowrap; // preven two items from separating within a .navbar-form that has .pull-left
|
|
118
|
+
input {
|
|
119
|
+
margin-top: 0; // remove the margin on top since it's on the parent
|
|
120
|
+
}
|
|
121
|
+
}
|
|
107
122
|
}
|
|
108
123
|
|
|
109
124
|
// Navbar search
|
|
110
125
|
.navbar-search {
|
|
111
126
|
position: relative;
|
|
112
127
|
float: left;
|
|
113
|
-
|
|
128
|
+
.navbarVerticalAlign(28px); // Vertically center in navbar
|
|
114
129
|
margin-bottom: 0;
|
|
115
130
|
.search-query {
|
|
116
131
|
padding: 4px 9px;
|
|
117
132
|
#font > .sans-serif(13px, normal, 1);
|
|
118
133
|
color: @white;
|
|
119
|
-
color:
|
|
120
|
-
|
|
121
|
-
background: rgba(255,255,255,.3);
|
|
122
|
-
border: 1px solid #111;
|
|
134
|
+
background-color: @navbarSearchBackground;
|
|
135
|
+
border: 1px solid @navbarSearchBorder;
|
|
123
136
|
@shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.15);
|
|
124
137
|
.box-shadow(@shadow);
|
|
125
138
|
.transition(none);
|
|
126
139
|
|
|
127
|
-
// Placeholder text gets special styles; can't be
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
color: @
|
|
133
|
-
background-color: @grayLight;
|
|
134
|
-
background-color: rgba(255,255,255,.5);
|
|
140
|
+
// Placeholder text gets special styles; can't be a grouped selector
|
|
141
|
+
&:-moz-placeholder {
|
|
142
|
+
color: @navbarSearchPlaceholderColor;
|
|
143
|
+
}
|
|
144
|
+
&::-webkit-input-placeholder {
|
|
145
|
+
color: @navbarSearchPlaceholderColor;
|
|
135
146
|
}
|
|
136
|
-
|
|
147
|
+
|
|
148
|
+
// Focus states (we use .focused since IE7-8 and down doesn't support :focus)
|
|
137
149
|
&:focus,
|
|
138
150
|
&.focused {
|
|
139
151
|
padding: 5px 10px;
|
|
140
152
|
color: @grayDark;
|
|
141
153
|
text-shadow: 0 1px 0 @white;
|
|
142
|
-
background-color: @
|
|
154
|
+
background-color: @navbarSearchBackgroundFocus;
|
|
143
155
|
border: 0;
|
|
144
156
|
.box-shadow(0 0 3px rgba(0,0,0,.15));
|
|
145
157
|
outline: 0;
|
|
@@ -148,22 +160,42 @@
|
|
|
148
160
|
}
|
|
149
161
|
|
|
150
162
|
|
|
163
|
+
|
|
151
164
|
// FIXED NAVBAR
|
|
152
165
|
// ------------
|
|
153
166
|
|
|
154
|
-
|
|
167
|
+
// Shared (top/bottom) styles
|
|
168
|
+
.navbar-fixed-top,
|
|
169
|
+
.navbar-fixed-bottom {
|
|
155
170
|
position: fixed;
|
|
156
|
-
top: 0;
|
|
157
171
|
right: 0;
|
|
158
172
|
left: 0;
|
|
159
173
|
z-index: @zindexFixedNavbar;
|
|
174
|
+
margin-bottom: 0; // remove 18px margin for static navbar
|
|
160
175
|
}
|
|
161
|
-
.navbar-fixed-top .navbar-inner
|
|
176
|
+
.navbar-fixed-top .navbar-inner,
|
|
177
|
+
.navbar-fixed-bottom .navbar-inner {
|
|
162
178
|
padding-left: 0;
|
|
163
179
|
padding-right: 0;
|
|
164
|
-
.border-radius(
|
|
180
|
+
.border-radius(0);
|
|
165
181
|
}
|
|
166
182
|
|
|
183
|
+
.navbar-fixed-top .container,
|
|
184
|
+
.navbar-fixed-bottom .container {
|
|
185
|
+
#grid > .core > .span(@gridColumns);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Fixed to top
|
|
189
|
+
.navbar-fixed-top {
|
|
190
|
+
top: 0;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// Fixed to bottom
|
|
194
|
+
.navbar-fixed-bottom {
|
|
195
|
+
bottom: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
|
|
167
199
|
|
|
168
200
|
// NAVIGATION
|
|
169
201
|
// ----------
|
|
@@ -194,7 +226,7 @@
|
|
|
194
226
|
}
|
|
195
227
|
// Hover
|
|
196
228
|
.navbar .nav > li > a:hover {
|
|
197
|
-
background-color: transparent
|
|
229
|
+
background-color: @navbarLinkBackgroundHover; // "transparent" is default to differentiate :hover from .active
|
|
198
230
|
color: @navbarLinkColorHover;
|
|
199
231
|
text-decoration: none;
|
|
200
232
|
}
|
|
@@ -202,10 +234,9 @@
|
|
|
202
234
|
// Active nav items
|
|
203
235
|
.navbar .nav .active > a,
|
|
204
236
|
.navbar .nav .active > a:hover {
|
|
205
|
-
color: @
|
|
237
|
+
color: @navbarLinkColorActive;
|
|
206
238
|
text-decoration: none;
|
|
207
|
-
background-color: @
|
|
208
|
-
background-color: rgba(0,0,0,.5);
|
|
239
|
+
background-color: @navbarLinkBackgroundActive;
|
|
209
240
|
}
|
|
210
241
|
|
|
211
242
|
// Dividers (basically a vertical hr)
|
|
@@ -239,7 +270,7 @@
|
|
|
239
270
|
border-left: 7px solid transparent;
|
|
240
271
|
border-right: 7px solid transparent;
|
|
241
272
|
border-bottom: 7px solid #ccc;
|
|
242
|
-
border-bottom-color:
|
|
273
|
+
border-bottom-color: @dropdownBorder;
|
|
243
274
|
position: absolute;
|
|
244
275
|
top: -7px;
|
|
245
276
|
left: 9px;
|
|
@@ -249,17 +280,33 @@
|
|
|
249
280
|
display: inline-block;
|
|
250
281
|
border-left: 6px solid transparent;
|
|
251
282
|
border-right: 6px solid transparent;
|
|
252
|
-
border-bottom: 6px solid @
|
|
283
|
+
border-bottom: 6px solid @dropdownBackground;
|
|
253
284
|
position: absolute;
|
|
254
285
|
top: -6px;
|
|
255
286
|
left: 10px;
|
|
256
287
|
}
|
|
257
288
|
}
|
|
258
|
-
|
|
289
|
+
// Menu position and menu caret support for dropups via extra dropup class
|
|
290
|
+
.navbar-fixed-bottom .dropdown-menu {
|
|
291
|
+
&:before {
|
|
292
|
+
border-top: 7px solid #ccc;
|
|
293
|
+
border-top-color: @dropdownBorder;
|
|
294
|
+
border-bottom: 0;
|
|
295
|
+
bottom: -7px;
|
|
296
|
+
top: auto;
|
|
297
|
+
}
|
|
298
|
+
&:after {
|
|
299
|
+
border-top: 6px solid @dropdownBackground;
|
|
300
|
+
border-bottom: 0;
|
|
301
|
+
bottom: -6px;
|
|
302
|
+
top: auto;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
259
305
|
// Dropdown toggle caret
|
|
260
306
|
.navbar .nav .dropdown-toggle .caret,
|
|
261
307
|
.navbar .nav .open.dropdown .caret {
|
|
262
308
|
border-top-color: @white;
|
|
309
|
+
border-bottom-color: @white;
|
|
263
310
|
}
|
|
264
311
|
.navbar .nav .active .caret {
|
|
265
312
|
.opacity(100);
|
|
@@ -278,7 +325,9 @@
|
|
|
278
325
|
}
|
|
279
326
|
|
|
280
327
|
// Right aligned menus need alt position
|
|
281
|
-
|
|
328
|
+
// TODO: rejigger this at some point to simplify the selectors
|
|
329
|
+
.navbar .nav.pull-right .dropdown-menu,
|
|
330
|
+
.navbar .nav .dropdown-menu.pull-right {
|
|
282
331
|
left: auto;
|
|
283
332
|
right: 0;
|
|
284
333
|
&:before {
|
|
@@ -289,4 +338,4 @@
|
|
|
289
338
|
left: auto;
|
|
290
339
|
right: 13px;
|
|
291
340
|
}
|
|
292
|
-
}
|
|
341
|
+
}
|
|
@@ -21,36 +21,42 @@
|
|
|
21
21
|
background-color: @grayLighter;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
// Nav headers (for dropdowns and lists)
|
|
25
|
+
.nav .nav-header {
|
|
26
|
+
display: block;
|
|
27
|
+
padding: 3px 15px;
|
|
28
|
+
font-size: 11px;
|
|
29
|
+
font-weight: bold;
|
|
30
|
+
line-height: @baseLineHeight;
|
|
31
|
+
color: @grayLight;
|
|
32
|
+
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
|
33
|
+
text-transform: uppercase;
|
|
34
|
+
}
|
|
35
|
+
// Space them out when they follow another list item (link)
|
|
36
|
+
.nav li + .nav-header {
|
|
37
|
+
margin-top: 9px;
|
|
38
|
+
}
|
|
24
39
|
|
|
25
40
|
|
|
26
41
|
// NAV LIST
|
|
27
42
|
// --------
|
|
28
43
|
|
|
29
44
|
.nav-list {
|
|
30
|
-
padding-left:
|
|
31
|
-
padding-right:
|
|
45
|
+
padding-left: 15px;
|
|
46
|
+
padding-right: 15px;
|
|
32
47
|
margin-bottom: 0;
|
|
33
48
|
}
|
|
34
49
|
.nav-list > li > a,
|
|
35
50
|
.nav-list .nav-header {
|
|
36
|
-
display: block;
|
|
37
|
-
padding: 3px 15px;
|
|
38
51
|
margin-left: -15px;
|
|
39
52
|
margin-right: -15px;
|
|
40
53
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
|
41
54
|
}
|
|
42
|
-
.nav-list
|
|
43
|
-
|
|
44
|
-
font-weight: bold;
|
|
45
|
-
line-height: @baseLineHeight;
|
|
46
|
-
color: @grayLight;
|
|
47
|
-
text-transform: uppercase;
|
|
48
|
-
}
|
|
49
|
-
.nav-list > li + .nav-header {
|
|
50
|
-
margin-top: 9px;
|
|
55
|
+
.nav-list > li > a {
|
|
56
|
+
padding: 3px 15px;
|
|
51
57
|
}
|
|
52
|
-
.nav-list .active > a,
|
|
53
|
-
.nav-list .active > a:hover {
|
|
58
|
+
.nav-list > .active > a,
|
|
59
|
+
.nav-list > .active > a:hover {
|
|
54
60
|
color: @white;
|
|
55
61
|
text-shadow: 0 -1px 0 rgba(0,0,0,.2);
|
|
56
62
|
background-color: @linkColor;
|
|
@@ -58,6 +64,10 @@
|
|
|
58
64
|
.nav-list [class^="icon-"] {
|
|
59
65
|
margin-right: 2px;
|
|
60
66
|
}
|
|
67
|
+
// Dividers (basically an hr) within the dropdown
|
|
68
|
+
.nav-list .divider {
|
|
69
|
+
.nav-divider();
|
|
70
|
+
}
|
|
61
71
|
|
|
62
72
|
|
|
63
73
|
|
|
@@ -96,8 +106,9 @@
|
|
|
96
106
|
|
|
97
107
|
// Actual tabs (as links)
|
|
98
108
|
.nav-tabs > li > a {
|
|
99
|
-
padding-top:
|
|
100
|
-
padding-bottom:
|
|
109
|
+
padding-top: 8px;
|
|
110
|
+
padding-bottom: 8px;
|
|
111
|
+
line-height: @baseLineHeight;
|
|
101
112
|
border: 1px solid transparent;
|
|
102
113
|
.border-radius(4px 4px 0 0);
|
|
103
114
|
&:hover {
|
|
@@ -127,8 +138,8 @@
|
|
|
127
138
|
}
|
|
128
139
|
|
|
129
140
|
// Active state
|
|
130
|
-
.nav-pills .active > a,
|
|
131
|
-
.nav-pills .active > a:hover {
|
|
141
|
+
.nav-pills > .active > a,
|
|
142
|
+
.nav-pills > .active > a:hover {
|
|
132
143
|
color: @white;
|
|
133
144
|
background-color: @linkColor;
|
|
134
145
|
}
|
|
@@ -152,7 +163,7 @@
|
|
|
152
163
|
}
|
|
153
164
|
.nav-tabs.nav-stacked > li > a {
|
|
154
165
|
border: 1px solid #ddd;
|
|
155
|
-
.border-radius(
|
|
166
|
+
.border-radius(0);
|
|
156
167
|
}
|
|
157
168
|
.nav-tabs.nav-stacked > li:first-child > a {
|
|
158
169
|
.border-radius(4px 4px 0 0);
|
|
@@ -194,11 +205,13 @@
|
|
|
194
205
|
.nav-tabs .dropdown-toggle .caret,
|
|
195
206
|
.nav-pills .dropdown-toggle .caret {
|
|
196
207
|
border-top-color: @linkColor;
|
|
208
|
+
border-bottom-color: @linkColor;
|
|
197
209
|
margin-top: 6px;
|
|
198
210
|
}
|
|
199
211
|
.nav-tabs .dropdown-toggle:hover .caret,
|
|
200
212
|
.nav-pills .dropdown-toggle:hover .caret {
|
|
201
213
|
border-top-color: @linkColorHover;
|
|
214
|
+
border-bottom-color: @linkColorHover;
|
|
202
215
|
}
|
|
203
216
|
|
|
204
217
|
// Active dropdown links
|
|
@@ -206,6 +219,7 @@
|
|
|
206
219
|
.nav-tabs .active .dropdown-toggle .caret,
|
|
207
220
|
.nav-pills .active .dropdown-toggle .caret {
|
|
208
221
|
border-top-color: @grayDark;
|
|
222
|
+
border-bottom-color: @grayDark;
|
|
209
223
|
}
|
|
210
224
|
|
|
211
225
|
// Active:hover dropdown links
|
|
@@ -228,6 +242,7 @@
|
|
|
228
242
|
.nav .open.active .caret,
|
|
229
243
|
.nav .open a:hover .caret {
|
|
230
244
|
border-top-color: @white;
|
|
245
|
+
border-bottom-color: @white;
|
|
231
246
|
.opacity(100);
|
|
232
247
|
}
|
|
233
248
|
|
|
@@ -249,6 +264,10 @@
|
|
|
249
264
|
.tabbable {
|
|
250
265
|
.clearfix();
|
|
251
266
|
}
|
|
267
|
+
.tab-content {
|
|
268
|
+
display: table; // prevent content from running below tabs
|
|
269
|
+
width: 100%;
|
|
270
|
+
}
|
|
252
271
|
|
|
253
272
|
// Remove border on bottom, left, right
|
|
254
273
|
.tabs-below .nav-tabs,
|
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
to { background-position: 40px 0; }
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
// IE9
|
|
21
|
+
@-ms-keyframes progress-bar-stripes {
|
|
22
|
+
from { background-position: 0 0; }
|
|
23
|
+
to { background-position: 40px 0; }
|
|
24
|
+
}
|
|
25
|
+
|
|
20
26
|
// Spec
|
|
21
27
|
@keyframes progress-bar-stripes {
|
|
22
28
|
from { background-position: 0 0; }
|
|
@@ -54,7 +60,7 @@
|
|
|
54
60
|
|
|
55
61
|
// Striped bars
|
|
56
62
|
.progress-striped .bar {
|
|
57
|
-
#gradient > .striped(#
|
|
63
|
+
#gradient > .striped(#149bdf);
|
|
58
64
|
.background-size(40px 40px);
|
|
59
65
|
}
|
|
60
66
|
|
|
@@ -93,3 +99,11 @@
|
|
|
93
99
|
.progress-info.progress-striped .bar {
|
|
94
100
|
#gradient > .striped(#5bc0de);
|
|
95
101
|
}
|
|
102
|
+
|
|
103
|
+
// Warning (orange)
|
|
104
|
+
.progress-warning .bar {
|
|
105
|
+
#gradient > .vertical(lighten(@orange, 15%), @orange);
|
|
106
|
+
}
|
|
107
|
+
.progress-warning.progress-striped .bar {
|
|
108
|
+
#gradient > .striped(lighten(@orange, 15%));
|
|
109
|
+
}
|
|
@@ -75,10 +75,10 @@ sub {
|
|
|
75
75
|
// -------------------------
|
|
76
76
|
|
|
77
77
|
img {
|
|
78
|
-
max-width: 100%;
|
|
79
78
|
height: auto;
|
|
80
79
|
border: 0;
|
|
81
80
|
-ms-interpolation-mode: bicubic;
|
|
81
|
+
vertical-align: middle;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
// Forms
|
|
@@ -108,7 +108,7 @@ input[type="button"],
|
|
|
108
108
|
input[type="reset"],
|
|
109
109
|
input[type="submit"] {
|
|
110
110
|
cursor: pointer; // Cursors on all buttons applied consistently
|
|
111
|
-
-webkit-appearance: button; // Style
|
|
111
|
+
-webkit-appearance: button; // Style clickable inputs in iOS
|
|
112
112
|
}
|
|
113
113
|
input[type="search"] { // Appearance in Safari/Chrome
|
|
114
114
|
-webkit-appearance: textfield;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Bootstrap Responsive v2.0.
|
|
2
|
+
* Bootstrap Responsive v2.0.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright 2012 Twitter, Inc
|
|
5
5
|
* Licensed under the Apache License v2.0
|
|
@@ -31,6 +31,37 @@
|
|
|
31
31
|
visibility: hidden;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
// Visibility utilities
|
|
35
|
+
|
|
36
|
+
// For desktops
|
|
37
|
+
.visible-phone { display: none; }
|
|
38
|
+
.visible-tablet { display: none; }
|
|
39
|
+
.visible-desktop { display: block; }
|
|
40
|
+
.hidden-phone { display: block; }
|
|
41
|
+
.hidden-tablet { display: block; }
|
|
42
|
+
.hidden-desktop { display: none; }
|
|
43
|
+
|
|
44
|
+
// Phones only
|
|
45
|
+
@media (max-width: 767px) {
|
|
46
|
+
// Show
|
|
47
|
+
.visible-phone { display: block; }
|
|
48
|
+
// Hide
|
|
49
|
+
.hidden-phone { display: none; }
|
|
50
|
+
// Hide everything else
|
|
51
|
+
.hidden-desktop { display: block; }
|
|
52
|
+
.visible-desktop { display: none; }
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Tablets & small desktops only
|
|
56
|
+
@media (min-width: 768px) and (max-width: 979px) {
|
|
57
|
+
// Show
|
|
58
|
+
.visible-tablet { display: block; }
|
|
59
|
+
// Hide
|
|
60
|
+
.hidden-tablet { display: none; }
|
|
61
|
+
// Hide everything else
|
|
62
|
+
.hidden-desktop { display: block; }
|
|
63
|
+
.visible-desktop { display: none; }
|
|
64
|
+
}
|
|
34
65
|
|
|
35
66
|
|
|
36
67
|
// UP TO LANDSCAPE PHONE
|
|
@@ -49,26 +80,6 @@
|
|
|
49
80
|
line-height: @baseLineHeight;
|
|
50
81
|
}
|
|
51
82
|
|
|
52
|
-
// Make span* classes full width
|
|
53
|
-
input[class*="span"],
|
|
54
|
-
select[class*="span"],
|
|
55
|
-
textarea[class*="span"],
|
|
56
|
-
.uneditable-input {
|
|
57
|
-
display: block;
|
|
58
|
-
width: 100%;
|
|
59
|
-
height: 28px; /* Make inputs at least the height of their button counterpart */
|
|
60
|
-
/* Makes inputs behave like true block-level elements */
|
|
61
|
-
-webkit-box-sizing: border-box; /* Older Webkit */
|
|
62
|
-
-moz-box-sizing: border-box; /* Older FF */
|
|
63
|
-
-ms-box-sizing: border-box; /* IE8 */
|
|
64
|
-
box-sizing: border-box; /* CSS3 spec*/
|
|
65
|
-
}
|
|
66
|
-
// But don't let it screw up prepend/append inputs
|
|
67
|
-
.input-prepend input[class*="span"],
|
|
68
|
-
.input-append input[class*="span"] {
|
|
69
|
-
width: auto;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
83
|
// Update checkboxes for iOS
|
|
73
84
|
input[type="checkbox"],
|
|
74
85
|
input[type="radio"] {
|
|
@@ -123,13 +134,23 @@
|
|
|
123
134
|
// LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
|
|
124
135
|
// --------------------------------------------------
|
|
125
136
|
|
|
126
|
-
@media (max-width:
|
|
137
|
+
@media (max-width: 767px) {
|
|
138
|
+
|
|
139
|
+
// Padding to set content in a bit
|
|
140
|
+
body {
|
|
141
|
+
padding-left: 20px;
|
|
142
|
+
padding-right: 20px;
|
|
143
|
+
}
|
|
144
|
+
.navbar-fixed-top {
|
|
145
|
+
margin-left: -20px;
|
|
146
|
+
margin-right: -20px;
|
|
147
|
+
}
|
|
148
|
+
|
|
127
149
|
// GRID & CONTAINERS
|
|
128
150
|
// -----------------
|
|
129
151
|
// Remove width from containers
|
|
130
152
|
.container {
|
|
131
153
|
width: auto;
|
|
132
|
-
padding: 0 20px;
|
|
133
154
|
}
|
|
134
155
|
// Fluid rows
|
|
135
156
|
.row-fluid {
|
|
@@ -147,6 +168,28 @@
|
|
|
147
168
|
width: auto;
|
|
148
169
|
margin: 0;
|
|
149
170
|
}
|
|
171
|
+
|
|
172
|
+
// THUMBNAILS
|
|
173
|
+
// ----------
|
|
174
|
+
.thumbnails [class*="span"] {
|
|
175
|
+
width: auto;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// FORM FIELDS
|
|
179
|
+
// -----------
|
|
180
|
+
// Make span* classes full width
|
|
181
|
+
input[class*="span"],
|
|
182
|
+
select[class*="span"],
|
|
183
|
+
textarea[class*="span"],
|
|
184
|
+
.uneditable-input {
|
|
185
|
+
.input-block-level();
|
|
186
|
+
}
|
|
187
|
+
// But don't let it screw up prepend/append inputs
|
|
188
|
+
.input-prepend input[class*="span"],
|
|
189
|
+
.input-append input[class*="span"] {
|
|
190
|
+
width: auto;
|
|
191
|
+
}
|
|
192
|
+
|
|
150
193
|
}
|
|
151
194
|
|
|
152
195
|
|
|
@@ -154,16 +197,16 @@
|
|
|
154
197
|
// PORTRAIT TABLET TO DEFAULT DESKTOP
|
|
155
198
|
// ----------------------------------
|
|
156
199
|
|
|
157
|
-
@media (min-width: 768px) and (max-width:
|
|
200
|
+
@media (min-width: 768px) and (max-width: 979px) {
|
|
158
201
|
|
|
159
202
|
// Fixed grid
|
|
160
|
-
#
|
|
203
|
+
#grid > .core(42px, 20px);
|
|
161
204
|
|
|
162
205
|
// Fluid grid
|
|
163
|
-
#
|
|
206
|
+
#grid > .fluid(5.801104972%, 2.762430939%);
|
|
164
207
|
|
|
165
208
|
// Input grid
|
|
166
|
-
#
|
|
209
|
+
#grid > .input(42px, 20px);
|
|
167
210
|
|
|
168
211
|
}
|
|
169
212
|
|
|
@@ -171,7 +214,7 @@
|
|
|
171
214
|
|
|
172
215
|
// TABLETS AND BELOW
|
|
173
216
|
// -----------------
|
|
174
|
-
@media (max-width:
|
|
217
|
+
@media (max-width: 979px) {
|
|
175
218
|
|
|
176
219
|
// UNFIX THE TOPBAR
|
|
177
220
|
// ----------------
|
|
@@ -215,6 +258,10 @@
|
|
|
215
258
|
.navbar .nav > .divider-vertical {
|
|
216
259
|
display: none;
|
|
217
260
|
}
|
|
261
|
+
.navbar .nav .nav-header {
|
|
262
|
+
color: @navbarText;
|
|
263
|
+
text-shadow: none;
|
|
264
|
+
}
|
|
218
265
|
// Nav and dropdown links in navbar
|
|
219
266
|
.navbar .nav > li > a,
|
|
220
267
|
.navbar .dropdown-menu a {
|
|
@@ -242,7 +289,7 @@
|
|
|
242
289
|
padding: 0;
|
|
243
290
|
background-color: transparent;
|
|
244
291
|
border: none;
|
|
245
|
-
.border-radius(
|
|
292
|
+
.border-radius(0);
|
|
246
293
|
.box-shadow(none);
|
|
247
294
|
}
|
|
248
295
|
.navbar .dropdown-menu:before,
|
|
@@ -293,6 +340,7 @@
|
|
|
293
340
|
@media (min-width: 980px) {
|
|
294
341
|
.nav-collapse.collapse {
|
|
295
342
|
height: auto !important;
|
|
343
|
+
overflow: visible !important;
|
|
296
344
|
}
|
|
297
345
|
}
|
|
298
346
|
|
|
@@ -304,13 +352,13 @@
|
|
|
304
352
|
@media (min-width: 1200px) {
|
|
305
353
|
|
|
306
354
|
// Fixed grid
|
|
307
|
-
#
|
|
355
|
+
#grid > .core(70px, 30px);
|
|
308
356
|
|
|
309
357
|
// Fluid grid
|
|
310
|
-
#
|
|
358
|
+
#grid > .fluid(5.982905983%, 2.564102564%);
|
|
311
359
|
|
|
312
360
|
// Input grid
|
|
313
|
-
#
|
|
361
|
+
#grid > .input(70px, 30px);
|
|
314
362
|
|
|
315
363
|
// Thumbnails
|
|
316
364
|
.thumbnails {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// -------------------------------------------------------------------------------------------
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
//
|
|
7
|
-
//
|
|
6
|
+
// Body reset
|
|
7
|
+
// ----------
|
|
8
8
|
|
|
9
9
|
body {
|
|
10
10
|
margin: 0;
|
|
@@ -12,11 +12,11 @@ body {
|
|
|
12
12
|
font-size: @baseFontSize;
|
|
13
13
|
line-height: @baseLineHeight;
|
|
14
14
|
color: @textColor;
|
|
15
|
-
background-color: @
|
|
15
|
+
background-color: @bodyBackground;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
//
|
|
19
|
+
// Links
|
|
20
20
|
// -----
|
|
21
21
|
|
|
22
22
|
a {
|