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
|
@@ -11,17 +11,21 @@ pre {
|
|
|
11
11
|
color: @grayDark;
|
|
12
12
|
.border-radius(3px);
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
// Inline code
|
|
14
16
|
code {
|
|
15
|
-
padding:
|
|
17
|
+
padding: 2px 4px;
|
|
16
18
|
color: #d14;
|
|
17
19
|
background-color: #f7f7f9;
|
|
18
20
|
border: 1px solid #e1e1e8;
|
|
19
21
|
}
|
|
22
|
+
|
|
23
|
+
// Blocks of code
|
|
20
24
|
pre {
|
|
21
25
|
display: block;
|
|
22
26
|
padding: (@baseLineHeight - 1) / 2;
|
|
23
27
|
margin: 0 0 @baseLineHeight / 2;
|
|
24
|
-
font-size: 12px
|
|
28
|
+
font-size: @baseFontSize * .925; // 13px to 12px
|
|
25
29
|
line-height: @baseLineHeight;
|
|
26
30
|
background-color: #f5f5f5;
|
|
27
31
|
border: 1px solid #ccc; // fallback for IE7-8
|
|
@@ -30,6 +34,7 @@ pre {
|
|
|
30
34
|
white-space: pre;
|
|
31
35
|
white-space: pre-wrap;
|
|
32
36
|
word-break: break-all;
|
|
37
|
+
word-wrap: break-word;
|
|
33
38
|
|
|
34
39
|
// Make prettyprint styles more spaced out for readability
|
|
35
40
|
&.prettyprint {
|
|
@@ -39,6 +44,14 @@ pre {
|
|
|
39
44
|
// Account for some code outputs that place code tags in pre tags
|
|
40
45
|
code {
|
|
41
46
|
padding: 0;
|
|
47
|
+
color: inherit;
|
|
42
48
|
background-color: transparent;
|
|
49
|
+
border: 0;
|
|
43
50
|
}
|
|
44
51
|
}
|
|
52
|
+
|
|
53
|
+
// Enable scrollable blocks of code
|
|
54
|
+
.pre-scrollable {
|
|
55
|
+
max-height: 340px;
|
|
56
|
+
overflow-y: scroll;
|
|
57
|
+
}
|
|
@@ -13,22 +13,22 @@
|
|
|
13
13
|
.open .dropdown-toggle {
|
|
14
14
|
outline: 0;
|
|
15
15
|
}
|
|
16
|
+
|
|
16
17
|
// Dropdown arrow/caret
|
|
18
|
+
// --------------------
|
|
17
19
|
.caret {
|
|
18
20
|
display: inline-block;
|
|
19
21
|
width: 0;
|
|
20
22
|
height: 0;
|
|
21
|
-
text-indent: -99999px;
|
|
22
|
-
// IE7 won't do the border trick if there's a text indent, but it doesn't
|
|
23
|
-
// do the content that text-indent is hiding, either, so we're ok.
|
|
24
|
-
*text-indent: 0;
|
|
25
23
|
vertical-align: top;
|
|
26
24
|
border-left: 4px solid transparent;
|
|
27
25
|
border-right: 4px solid transparent;
|
|
28
26
|
border-top: 4px solid @black;
|
|
29
27
|
.opacity(30);
|
|
30
|
-
content: "
|
|
28
|
+
content: "";
|
|
31
29
|
}
|
|
30
|
+
|
|
31
|
+
// Place the caret
|
|
32
32
|
.dropdown .caret {
|
|
33
33
|
margin-top: 8px;
|
|
34
34
|
margin-left: 2px;
|
|
@@ -37,7 +37,9 @@
|
|
|
37
37
|
.open.dropdown .caret {
|
|
38
38
|
.opacity(100);
|
|
39
39
|
}
|
|
40
|
+
|
|
40
41
|
// The dropdown menu (ul)
|
|
42
|
+
// ----------------------
|
|
41
43
|
.dropdown-menu {
|
|
42
44
|
position: absolute;
|
|
43
45
|
top: 100%;
|
|
@@ -46,12 +48,10 @@
|
|
|
46
48
|
float: left;
|
|
47
49
|
display: none; // none by default, but block on "open" of the menu
|
|
48
50
|
min-width: 160px;
|
|
49
|
-
max-width: 220px;
|
|
50
|
-
_width: 160px;
|
|
51
51
|
padding: 4px 0;
|
|
52
52
|
margin: 0; // override default ul
|
|
53
53
|
list-style: none;
|
|
54
|
-
background-color: @
|
|
54
|
+
background-color: @dropdownBackground;
|
|
55
55
|
border-color: #ccc;
|
|
56
56
|
border-color: rgba(0,0,0,.2);
|
|
57
57
|
border-style: solid;
|
|
@@ -64,27 +64,15 @@
|
|
|
64
64
|
*border-right-width: 2px;
|
|
65
65
|
*border-bottom-width: 2px;
|
|
66
66
|
|
|
67
|
-
//
|
|
68
|
-
&.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
margin-bottom: 2px;
|
|
67
|
+
// Aligns the dropdown menu to right
|
|
68
|
+
&.pull-right {
|
|
69
|
+
right: 0;
|
|
70
|
+
left: auto;
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
// Dividers (basically an hr) within the dropdown
|
|
75
74
|
.divider {
|
|
76
|
-
|
|
77
|
-
margin: 5px 1px;
|
|
78
|
-
overflow: hidden;
|
|
79
|
-
background-color: #e5e5e5;
|
|
80
|
-
border-bottom: 1px solid @white;
|
|
81
|
-
|
|
82
|
-
// IE7 needs a set width since we gave a height. Restricting just
|
|
83
|
-
// to IE7 to keep the 1px left/right space in other browsers.
|
|
84
|
-
// It is unclear where IE is getting the extra space that we need
|
|
85
|
-
// to negative-margin away, but so it goes.
|
|
86
|
-
*width: 100%;
|
|
87
|
-
*margin: -5px 0 5px;
|
|
75
|
+
.nav-divider();
|
|
88
76
|
}
|
|
89
77
|
|
|
90
78
|
// Links within the dropdown menu
|
|
@@ -93,22 +81,24 @@
|
|
|
93
81
|
padding: 3px 15px;
|
|
94
82
|
clear: both;
|
|
95
83
|
font-weight: normal;
|
|
96
|
-
line-height:
|
|
97
|
-
color: @
|
|
84
|
+
line-height: @baseLineHeight;
|
|
85
|
+
color: @dropdownLinkColor;
|
|
98
86
|
white-space: nowrap;
|
|
99
87
|
}
|
|
100
88
|
}
|
|
101
89
|
|
|
102
90
|
// Hover state
|
|
91
|
+
// -----------
|
|
103
92
|
.dropdown-menu li > a:hover,
|
|
104
93
|
.dropdown-menu .active > a,
|
|
105
94
|
.dropdown-menu .active > a:hover {
|
|
106
|
-
color: @
|
|
95
|
+
color: @dropdownLinkColorHover;
|
|
107
96
|
text-decoration: none;
|
|
108
|
-
background-color: @
|
|
97
|
+
background-color: @dropdownLinkBackgroundHover;
|
|
109
98
|
}
|
|
110
99
|
|
|
111
100
|
// Open state for the dropdown
|
|
101
|
+
// ---------------------------
|
|
112
102
|
.dropdown.open {
|
|
113
103
|
// IE7's z-index only goes to the nearest positioned ancestor, which would
|
|
114
104
|
// make the menu appear below buttons that appeared later on the page
|
|
@@ -124,7 +114,34 @@
|
|
|
124
114
|
}
|
|
125
115
|
}
|
|
126
116
|
|
|
117
|
+
// Right aligned dropdowns
|
|
118
|
+
.pull-right .dropdown-menu {
|
|
119
|
+
left: auto;
|
|
120
|
+
right: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
|
124
|
+
// ------------------------------------------------------
|
|
125
|
+
// Just add .dropup after the standard .dropdown class and you're set, bro.
|
|
126
|
+
// TODO: abstract this so that the navbar fixed styles are not placed here?
|
|
127
|
+
.dropup,
|
|
128
|
+
.navbar-fixed-bottom .dropdown {
|
|
129
|
+
// Reverse the caret
|
|
130
|
+
.caret {
|
|
131
|
+
border-top: 0;
|
|
132
|
+
border-bottom: 4px solid @black;
|
|
133
|
+
content: "\2191";
|
|
134
|
+
}
|
|
135
|
+
// Different positioning for bottom up menu
|
|
136
|
+
.dropdown-menu {
|
|
137
|
+
top: auto;
|
|
138
|
+
bottom: 100%;
|
|
139
|
+
margin-bottom: 1px;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
127
143
|
// Typeahead
|
|
144
|
+
// ---------
|
|
128
145
|
.typeahead {
|
|
129
146
|
margin-top: 2px; // give it some space to breathe
|
|
130
147
|
.border-radius(4px);
|
|
@@ -28,6 +28,12 @@ legend {
|
|
|
28
28
|
color: @grayDark;
|
|
29
29
|
border: 0;
|
|
30
30
|
border-bottom: 1px solid #eee;
|
|
31
|
+
|
|
32
|
+
// Small
|
|
33
|
+
small {
|
|
34
|
+
font-size: @baseLineHeight * .75;
|
|
35
|
+
color: @grayLight;
|
|
36
|
+
}
|
|
31
37
|
}
|
|
32
38
|
|
|
33
39
|
// Set font for forms
|
|
@@ -36,7 +42,13 @@ input,
|
|
|
36
42
|
button,
|
|
37
43
|
select,
|
|
38
44
|
textarea {
|
|
39
|
-
#font > .
|
|
45
|
+
#font > .shorthand(@baseFontSize,normal,@baseLineHeight); // Set size, weight, line-height here
|
|
46
|
+
}
|
|
47
|
+
input,
|
|
48
|
+
button,
|
|
49
|
+
select,
|
|
50
|
+
textarea {
|
|
51
|
+
font-family: @baseFontFamily; // And only set font-family here for those that need it (note the missing label element)
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
// Identify controls by their labels
|
|
@@ -59,7 +71,7 @@ select,
|
|
|
59
71
|
font-size: @baseFontSize;
|
|
60
72
|
line-height: @baseLineHeight;
|
|
61
73
|
color: @gray;
|
|
62
|
-
border: 1px solid
|
|
74
|
+
border: 1px solid @inputBorder;
|
|
63
75
|
.border-radius(3px);
|
|
64
76
|
}
|
|
65
77
|
.uneditable-textarea {
|
|
@@ -84,17 +96,21 @@ input[type="radio"] {
|
|
|
84
96
|
margin: 3px 0;
|
|
85
97
|
*margin-top: 0; /* IE7 */
|
|
86
98
|
line-height: normal;
|
|
87
|
-
border: 0;
|
|
88
99
|
cursor: pointer;
|
|
89
|
-
.border-radius(
|
|
100
|
+
.border-radius(0);
|
|
101
|
+
border: 0 \9; /* IE9 and down */
|
|
102
|
+
}
|
|
103
|
+
input[type="image"] {
|
|
104
|
+
border: 0;
|
|
90
105
|
}
|
|
91
106
|
|
|
92
107
|
// Reset the file input to browser defaults
|
|
93
108
|
input[type="file"] {
|
|
109
|
+
width: auto;
|
|
94
110
|
padding: initial;
|
|
95
111
|
line-height: initial;
|
|
96
112
|
border: initial;
|
|
97
|
-
background-color: @
|
|
113
|
+
background-color: @inputBackground;
|
|
98
114
|
background-color: initial;
|
|
99
115
|
.box-shadow(none);
|
|
100
116
|
}
|
|
@@ -115,10 +131,15 @@ input[type="file"] {
|
|
|
115
131
|
line-height: 28px;
|
|
116
132
|
}
|
|
117
133
|
|
|
134
|
+
// Reset line-height for IE
|
|
135
|
+
input[type="file"] {
|
|
136
|
+
line-height: 18px \9;
|
|
137
|
+
}
|
|
138
|
+
|
|
118
139
|
// Chrome on Linux and Mobile Safari need background-color
|
|
119
140
|
select {
|
|
120
141
|
width: 220px; // default input width + 10px of padding that doesn't get applied
|
|
121
|
-
background-color: @
|
|
142
|
+
background-color: @inputBackground;
|
|
122
143
|
}
|
|
123
144
|
|
|
124
145
|
// Make multiple select elements height not fixed
|
|
@@ -165,9 +186,11 @@ input[type="hidden"] {
|
|
|
165
186
|
}
|
|
166
187
|
|
|
167
188
|
// Radios and checkboxes on same line
|
|
189
|
+
// TODO v3: Convert .inline to .control-inline
|
|
168
190
|
.radio.inline,
|
|
169
191
|
.checkbox.inline {
|
|
170
192
|
display: inline-block;
|
|
193
|
+
padding-top: 5px;
|
|
171
194
|
margin-bottom: 0;
|
|
172
195
|
vertical-align: middle;
|
|
173
196
|
}
|
|
@@ -175,11 +198,6 @@ input[type="hidden"] {
|
|
|
175
198
|
.checkbox.inline + .checkbox.inline {
|
|
176
199
|
margin-left: 10px; // space out consecutive inline controls
|
|
177
200
|
}
|
|
178
|
-
// But don't forget to remove their padding on first-child
|
|
179
|
-
.controls > .radio.inline:first-child,
|
|
180
|
-
.controls > .checkbox.inline:first-child {
|
|
181
|
-
padding-top: 0;
|
|
182
|
-
}
|
|
183
201
|
|
|
184
202
|
|
|
185
203
|
|
|
@@ -198,9 +216,10 @@ textarea:focus {
|
|
|
198
216
|
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
|
|
199
217
|
.box-shadow(@shadow);
|
|
200
218
|
outline: 0;
|
|
201
|
-
outline: thin dotted \9; /* IE6-
|
|
219
|
+
outline: thin dotted \9; /* IE6-9 */
|
|
202
220
|
}
|
|
203
221
|
input[type="file"]:focus,
|
|
222
|
+
input[type="radio"]:focus,
|
|
204
223
|
input[type="checkbox"]:focus,
|
|
205
224
|
select:focus {
|
|
206
225
|
.box-shadow(none); // override for file inputs
|
|
@@ -234,7 +253,7 @@ textarea[class*="span"],
|
|
|
234
253
|
// GRID SIZING FOR INPUTS
|
|
235
254
|
// ----------------------
|
|
236
255
|
|
|
237
|
-
#
|
|
256
|
+
#grid > .input (@gridColumnWidth, @gridGutterWidth);
|
|
238
257
|
|
|
239
258
|
|
|
240
259
|
|
|
@@ -249,7 +268,7 @@ textarea[disabled],
|
|
|
249
268
|
input[readonly],
|
|
250
269
|
select[readonly],
|
|
251
270
|
textarea[readonly] {
|
|
252
|
-
background-color:
|
|
271
|
+
background-color: @inputDisabledBackground;
|
|
253
272
|
border-color: #ddd;
|
|
254
273
|
cursor: not-allowed;
|
|
255
274
|
}
|
|
@@ -260,33 +279,6 @@ textarea[readonly] {
|
|
|
260
279
|
// FORM FIELD FEEDBACK STATES
|
|
261
280
|
// --------------------------
|
|
262
281
|
|
|
263
|
-
// Mixin for form field states
|
|
264
|
-
.formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
|
|
265
|
-
// Set the text color
|
|
266
|
-
> label,
|
|
267
|
-
.help-block,
|
|
268
|
-
.help-inline {
|
|
269
|
-
color: @textColor;
|
|
270
|
-
}
|
|
271
|
-
// Style inputs accordingly
|
|
272
|
-
input,
|
|
273
|
-
select,
|
|
274
|
-
textarea {
|
|
275
|
-
color: @textColor;
|
|
276
|
-
border-color: @borderColor;
|
|
277
|
-
&:focus {
|
|
278
|
-
border-color: darken(@borderColor, 10%);
|
|
279
|
-
.box-shadow(0 0 6px lighten(@borderColor, 20%));
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
// Give a small background color for input-prepend/-append
|
|
283
|
-
.input-prepend .add-on,
|
|
284
|
-
.input-append .add-on {
|
|
285
|
-
color: @textColor;
|
|
286
|
-
background-color: @backgroundColor;
|
|
287
|
-
border-color: @textColor;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
282
|
// Warning
|
|
291
283
|
.control-group.warning {
|
|
292
284
|
.formFieldState(@warningText, @warningText, @warningBackground);
|
|
@@ -322,14 +314,15 @@ select:focus:required:invalid {
|
|
|
322
314
|
padding: (@baseLineHeight - 1) 20px @baseLineHeight;
|
|
323
315
|
margin-top: @baseLineHeight;
|
|
324
316
|
margin-bottom: @baseLineHeight;
|
|
325
|
-
background-color:
|
|
317
|
+
background-color: @grayLighter;
|
|
326
318
|
border-top: 1px solid #ddd;
|
|
319
|
+
.clearfix(); // Adding clearfix to allow for .pull-right button containers
|
|
327
320
|
}
|
|
328
321
|
|
|
329
322
|
// For text that needs to appear as an input but should not be an input
|
|
330
323
|
.uneditable-input {
|
|
331
324
|
display: block;
|
|
332
|
-
background-color: @
|
|
325
|
+
background-color: @inputBackground;
|
|
333
326
|
border-color: #eee;
|
|
334
327
|
.box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
|
|
335
328
|
cursor: not-allowed;
|
|
@@ -343,16 +336,19 @@ select:focus:required:invalid {
|
|
|
343
336
|
// HELP TEXT
|
|
344
337
|
// ---------
|
|
345
338
|
|
|
339
|
+
.help-block,
|
|
340
|
+
.help-inline {
|
|
341
|
+
color: @gray; // lighten the text some for contrast
|
|
342
|
+
}
|
|
343
|
+
|
|
346
344
|
.help-block {
|
|
347
|
-
|
|
348
|
-
margin-bottom:
|
|
349
|
-
color: @grayLight;
|
|
345
|
+
display: block; // account for any element using help-block
|
|
346
|
+
margin-bottom: @baseLineHeight / 2;
|
|
350
347
|
}
|
|
351
348
|
|
|
352
349
|
.help-inline {
|
|
353
350
|
display: inline-block;
|
|
354
351
|
.ie7-inline-block();
|
|
355
|
-
margin-bottom: 9px;
|
|
356
352
|
vertical-align: middle;
|
|
357
353
|
padding-left: 5px;
|
|
358
354
|
}
|
|
@@ -366,9 +362,10 @@ select:focus:required:invalid {
|
|
|
366
362
|
.input-prepend,
|
|
367
363
|
.input-append {
|
|
368
364
|
margin-bottom: 5px;
|
|
369
|
-
.clearfix(); // Clear the float to prevent wrapping
|
|
370
365
|
input,
|
|
366
|
+
select,
|
|
371
367
|
.uneditable-input {
|
|
368
|
+
*margin-left: 0;
|
|
372
369
|
.border-radius(0 3px 3px 0);
|
|
373
370
|
&:focus {
|
|
374
371
|
position: relative;
|
|
@@ -379,20 +376,21 @@ select:focus:required:invalid {
|
|
|
379
376
|
border-left-color: #ccc;
|
|
380
377
|
}
|
|
381
378
|
.add-on {
|
|
382
|
-
|
|
383
|
-
display: block;
|
|
379
|
+
display: inline-block;
|
|
384
380
|
width: auto;
|
|
385
381
|
min-width: 16px;
|
|
386
382
|
height: @baseLineHeight;
|
|
387
|
-
margin-right: -1px;
|
|
388
383
|
padding: 4px 5px;
|
|
389
384
|
font-weight: normal;
|
|
390
385
|
line-height: @baseLineHeight;
|
|
391
|
-
color: @grayLight;
|
|
392
386
|
text-align: center;
|
|
393
387
|
text-shadow: 0 1px 0 @white;
|
|
394
|
-
|
|
388
|
+
vertical-align: middle;
|
|
389
|
+
background-color: @grayLighter;
|
|
395
390
|
border: 1px solid #ccc;
|
|
391
|
+
}
|
|
392
|
+
.add-on,
|
|
393
|
+
.btn {
|
|
396
394
|
.border-radius(3px 0 0 3px);
|
|
397
395
|
}
|
|
398
396
|
.active {
|
|
@@ -401,32 +399,43 @@ select:focus:required:invalid {
|
|
|
401
399
|
}
|
|
402
400
|
}
|
|
403
401
|
.input-prepend {
|
|
404
|
-
.add-on
|
|
405
|
-
|
|
402
|
+
.add-on,
|
|
403
|
+
.btn {
|
|
404
|
+
margin-right: -1px;
|
|
406
405
|
}
|
|
407
406
|
}
|
|
408
407
|
.input-append {
|
|
409
408
|
input,
|
|
409
|
+
select
|
|
410
410
|
.uneditable-input {
|
|
411
|
-
float: left;
|
|
412
411
|
.border-radius(3px 0 0 3px);
|
|
413
412
|
}
|
|
414
413
|
.uneditable-input {
|
|
414
|
+
border-left-color: #eee;
|
|
415
415
|
border-right-color: #ccc;
|
|
416
416
|
}
|
|
417
|
-
.add-on
|
|
418
|
-
|
|
417
|
+
.add-on,
|
|
418
|
+
.btn {
|
|
419
419
|
margin-left: -1px;
|
|
420
420
|
.border-radius(0 3px 3px 0);
|
|
421
421
|
}
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
422
|
+
}
|
|
423
|
+
// Remove all border-radius for inputs with both prepend and append
|
|
424
|
+
.input-prepend.input-append {
|
|
425
|
+
input,
|
|
426
|
+
select,
|
|
427
|
+
.uneditable-input {
|
|
428
|
+
.border-radius(0);
|
|
429
|
+
}
|
|
430
|
+
.add-on:first-child,
|
|
431
|
+
.btn:first-child {
|
|
432
|
+
margin-right: -1px;
|
|
433
|
+
.border-radius(3px 0 0 3px);
|
|
434
|
+
}
|
|
435
|
+
.add-on:last-child,
|
|
436
|
+
.btn:last-child {
|
|
437
|
+
margin-left: -1px;
|
|
438
|
+
.border-radius(0 3px 3px 0);
|
|
430
439
|
}
|
|
431
440
|
}
|
|
432
441
|
|
|
@@ -457,48 +466,70 @@ select:focus:required:invalid {
|
|
|
457
466
|
textarea,
|
|
458
467
|
select,
|
|
459
468
|
.help-inline,
|
|
460
|
-
.uneditable-input
|
|
469
|
+
.uneditable-input,
|
|
470
|
+
.input-prepend,
|
|
471
|
+
.input-append {
|
|
461
472
|
display: inline-block;
|
|
462
473
|
margin-bottom: 0;
|
|
463
474
|
}
|
|
475
|
+
// Re-hide hidden elements due to specifity
|
|
476
|
+
.hide {
|
|
477
|
+
display: none;
|
|
478
|
+
}
|
|
464
479
|
}
|
|
465
480
|
.form-search label,
|
|
466
|
-
.form-inline label
|
|
481
|
+
.form-inline label {
|
|
482
|
+
display: inline-block;
|
|
483
|
+
}
|
|
484
|
+
// Remove margin for input-prepend/-append
|
|
467
485
|
.form-search .input-append,
|
|
468
486
|
.form-inline .input-append,
|
|
469
487
|
.form-search .input-prepend,
|
|
470
488
|
.form-inline .input-prepend {
|
|
471
|
-
|
|
489
|
+
margin-bottom: 0;
|
|
472
490
|
}
|
|
473
|
-
//
|
|
474
|
-
.form-search .
|
|
475
|
-
.form-
|
|
476
|
-
.form-
|
|
477
|
-
.form-inline .
|
|
491
|
+
// Inline checkbox/radio labels (remove padding on left)
|
|
492
|
+
.form-search .radio,
|
|
493
|
+
.form-search .checkbox,
|
|
494
|
+
.form-inline .radio,
|
|
495
|
+
.form-inline .checkbox {
|
|
496
|
+
padding-left: 0;
|
|
497
|
+
margin-bottom: 0;
|
|
478
498
|
vertical-align: middle;
|
|
479
499
|
}
|
|
500
|
+
// Remove float and margin, set to inline-block
|
|
501
|
+
.form-search .radio input[type="radio"],
|
|
502
|
+
.form-search .checkbox input[type="checkbox"],
|
|
503
|
+
.form-inline .radio input[type="radio"],
|
|
504
|
+
.form-inline .checkbox input[type="checkbox"] {
|
|
505
|
+
float: left;
|
|
506
|
+
margin-left: 0;
|
|
507
|
+
margin-right: 3px;
|
|
508
|
+
}
|
|
509
|
+
|
|
480
510
|
|
|
481
511
|
// Margin to space out fieldsets
|
|
482
512
|
.control-group {
|
|
483
513
|
margin-bottom: @baseLineHeight / 2;
|
|
484
514
|
}
|
|
485
515
|
|
|
516
|
+
// Legend collapses margin, so next element is responsible for spacing
|
|
517
|
+
legend + .control-group {
|
|
518
|
+
margin-top: @baseLineHeight;
|
|
519
|
+
-webkit-margin-top-collapse: separate;
|
|
520
|
+
}
|
|
521
|
+
|
|
486
522
|
// Horizontal-specific styles
|
|
487
523
|
// --------------------------
|
|
488
524
|
|
|
489
525
|
.form-horizontal {
|
|
490
|
-
// Legend collapses margin, so we're relegated to padding
|
|
491
|
-
legend + .control-group {
|
|
492
|
-
margin-top: @baseLineHeight;
|
|
493
|
-
-webkit-margin-top-collapse: separate;
|
|
494
|
-
}
|
|
495
526
|
// Increase spacing between groups
|
|
496
527
|
.control-group {
|
|
497
528
|
margin-bottom: @baseLineHeight;
|
|
498
529
|
.clearfix();
|
|
499
530
|
}
|
|
500
531
|
// Float the labels left
|
|
501
|
-
.control-
|
|
532
|
+
.control-label {
|
|
502
533
|
float: left;
|
|
503
534
|
width: 140px;
|
|
504
535
|
padding-top: 5px;
|
|
@@ -507,6 +538,15 @@ select:focus:required:invalid {
|
|
|
507
538
|
// Move over all input controls and content
|
|
508
539
|
.controls {
|
|
509
540
|
margin-left: 160px;
|
|
541
|
+
/* Super jank IE7 fix to ensure the inputs in .input-append and input-prepend don't inherit the margin of the parent, in this case .controls */
|
|
542
|
+
*display: inline-block;
|
|
543
|
+
*margin-left: 0;
|
|
544
|
+
*padding-left: 20px;
|
|
545
|
+
}
|
|
546
|
+
// Remove bottom margin on block level help text since that's accounted for on .control-group
|
|
547
|
+
.help-block {
|
|
548
|
+
margin-top: @baseLineHeight / 2;
|
|
549
|
+
margin-bottom: 0;
|
|
510
550
|
}
|
|
511
551
|
// Move over buttons in .form-actions to align with .controls
|
|
512
552
|
.form-actions {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
// GRID SYSTEM
|
|
2
|
-
// -----------
|
|
3
|
-
|
|
4
1
|
// Fixed (940px)
|
|
5
|
-
#
|
|
2
|
+
#grid > .core(@gridColumnWidth, @gridGutterWidth);
|
|
6
3
|
|
|
7
4
|
// Fluid (940px)
|
|
8
|
-
#
|
|
5
|
+
#grid > .fluid(@fluidGridColumnWidth, @fluidGridGutterWidth);
|
|
@@ -4,17 +4,19 @@
|
|
|
4
4
|
.hero-unit {
|
|
5
5
|
padding: 60px;
|
|
6
6
|
margin-bottom: 30px;
|
|
7
|
-
background-color:
|
|
7
|
+
background-color: @heroUnitBackground;
|
|
8
8
|
.border-radius(6px);
|
|
9
9
|
h1 {
|
|
10
10
|
margin-bottom: 0;
|
|
11
11
|
font-size: 60px;
|
|
12
12
|
line-height: 1;
|
|
13
|
+
color: @heroUnitHeadingColor;
|
|
13
14
|
letter-spacing: -1px;
|
|
14
15
|
}
|
|
15
16
|
p {
|
|
16
17
|
font-size: 18px;
|
|
17
18
|
font-weight: 200;
|
|
18
19
|
line-height: @baseLineHeight * 1.5;
|
|
20
|
+
color: @heroUnitLeadColor;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -1,16 +1,38 @@
|
|
|
1
1
|
// LABELS
|
|
2
2
|
// ------
|
|
3
3
|
|
|
4
|
+
// Base
|
|
4
5
|
.label {
|
|
5
|
-
padding: 1px
|
|
6
|
-
font-size: @baseFontSize * .
|
|
6
|
+
padding: 1px 4px 2px;
|
|
7
|
+
font-size: @baseFontSize * .846;
|
|
7
8
|
font-weight: bold;
|
|
9
|
+
line-height: 13px; // ensure proper line-height if floated
|
|
8
10
|
color: @white;
|
|
9
|
-
|
|
11
|
+
vertical-align: middle;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
|
10
14
|
background-color: @grayLight;
|
|
11
15
|
.border-radius(3px);
|
|
12
16
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
.label
|
|
16
|
-
|
|
17
|
+
|
|
18
|
+
// Hover state
|
|
19
|
+
.label:hover {
|
|
20
|
+
color: @white;
|
|
21
|
+
text-decoration: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Colors
|
|
25
|
+
.label-important { background-color: @errorText; }
|
|
26
|
+
.label-important:hover { background-color: darken(@errorText, 10%); }
|
|
27
|
+
|
|
28
|
+
.label-warning { background-color: @orange; }
|
|
29
|
+
.label-warning:hover { background-color: darken(@orange, 10%); }
|
|
30
|
+
|
|
31
|
+
.label-success { background-color: @successText; }
|
|
32
|
+
.label-success:hover { background-color: darken(@successText, 10%); }
|
|
33
|
+
|
|
34
|
+
.label-info { background-color: @infoText; }
|
|
35
|
+
.label-info:hover { background-color: darken(@infoText, 10%); }
|
|
36
|
+
|
|
37
|
+
.label-inverse { background-color: @grayDark; }
|
|
38
|
+
.label-inverse:hover { background-color: darken(@grayDark, 10%); }
|