twitter-bootstrap-rails 1.3.1 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of twitter-bootstrap-rails might be problematic. Click here for more details.

@@ -1,27 +1,26 @@
1
- /*!
2
- * Bootstrap @VERSION
3
- *
4
- * Copyright 2011 Twitter, Inc
5
- * Licensed under the Apache License v2.0
6
- * http://www.apache.org/licenses/LICENSE-2.0
7
- *
8
- * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
- * Date: @DATE
10
- */
11
-
12
- // CSS Reset
13
- @import "reset.less";
14
-
15
- // Core variables and mixins
16
- @import "variables.less"; // Modify this for custom colors, font-sizes, etc
17
- @import "mixins.less";
18
-
19
- // Grid system and page structure
20
- @import "scaffolding.less";
21
-
22
- // Styled patterns and elements
23
- @import "type.less";
24
- @import "forms.less";
25
- @import "tables.less";
26
- @import "patterns.less";
27
-
1
+ /*!
2
+ * Bootstrap @VERSION
3
+ *
4
+ * Copyright 2011 Twitter, Inc
5
+ * Licensed under the Apache License v2.0
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
+ * Date: @DATE
10
+ */
11
+
12
+ // CSS Reset
13
+ @import "reset.less";
14
+
15
+ // Core variables and mixins
16
+ @import "variables.less"; // Modify this for custom colors, font-sizes, etc
17
+ @import "mixins.less";
18
+
19
+ // Grid system and page structure
20
+ @import "scaffolding.less";
21
+
22
+ // Styled patterns and elements
23
+ @import "type.less";
24
+ @import "forms.less";
25
+ @import "tables.less";
26
+ @import "patterns.less";
@@ -1,466 +1,479 @@
1
- /* Forms.less
2
- * Base styles for various input types, form layouts, and states
3
- * ------------------------------------------------------------- */
4
-
5
-
6
- // FORM STYLES
7
- // -----------
8
-
9
- form {
10
- margin-bottom: @baseline;
11
- }
12
-
13
- // Groups of fields with labels on top (legends)
14
- fieldset {
15
- margin-bottom: @baseline;
16
- padding-top: @baseline;
17
- legend {
18
- display: block;
19
- padding-left: 150px;
20
- font-size: @basefont * 1.5;
21
- line-height: 1;
22
- color: @grayDark;
23
- *padding: 0 0 5px 145px; /* IE6-7 */
24
- *line-height: 1.5; /* IE6-7 */
25
- }
26
- }
27
-
28
- // Parent element that clears floats and wraps labels and fields together
29
- form .clearfix {
30
- margin-bottom: @baseline;
31
- .clearfix()
32
- }
33
-
34
- // Set font for forms
35
- label,
36
- input,
37
- select,
38
- textarea {
39
- #font > .sans-serif(normal,13px,normal);
40
- }
41
-
42
- // Float labels left
43
- label {
44
- padding-top: 6px;
45
- font-size: @basefont;
46
- line-height: @baseline;
47
- float: left;
48
- width: 130px;
49
- text-align: right;
50
- color: @grayDark;
51
- }
52
-
53
- // Shift over the inside div to align all label's relevant content
54
- form .input {
55
- margin-left: 150px;
56
- }
57
-
58
- // Checkboxs and radio buttons
59
- input[type=checkbox],
60
- input[type=radio] {
61
- cursor: pointer;
62
- }
63
-
64
- // Inputs, Textareas, Selects
65
- input,
66
- textarea,
67
- select,
68
- .uneditable-input {
69
- display: inline-block;
70
- width: 210px;
71
- height: @baseline;
72
- padding: 4px;
73
- font-size: @basefont;
74
- line-height: @baseline;
75
- color: @gray;
76
- border: 1px solid #ccc;
77
- .border-radius(3px);
78
- }
79
-
80
- /* mini reset for non-html5 file types */
81
- input[type=checkbox],
82
- input[type=radio] {
83
- width: auto;
84
- height: auto;
85
- padding: 0;
86
- margin: 3px 0;
87
- *margin-top: 0; /* IE6-7 */
88
- line-height: normal;
89
- border: none;
90
- }
91
-
92
- input[type=file] {
93
- background-color: @white;
94
- padding: initial;
95
- border: initial;
96
- line-height: initial;
97
- .box-shadow(none);
98
- }
99
-
100
- input[type=button],
101
- input[type=reset],
102
- input[type=submit] {
103
- width: auto;
104
- height: auto;
105
- }
106
-
107
- select,
108
- input[type=file] {
109
- height: @baseline * 1.5; // In IE7, the height of the select element cannot be changed by height, only font-size
110
- line-height: @baseline * 1.5;
111
- *margin-top: 4px; /* For IE7, add top margin to align select with labels */
112
- }
113
-
114
- // Make multiple select elements height not fixed
115
- select[multiple] {
116
- height: inherit;
117
- }
118
-
119
- textarea {
120
- height: auto;
121
- }
122
-
123
- // For text that needs to appear as an input but should not be an input
124
- .uneditable-input {
125
- background-color: @white;
126
- display: block;
127
- border-color: #eee;
128
- .box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
129
- cursor: not-allowed;
130
- }
131
-
132
- // Placeholder text gets special styles; can't be bundled together though for some reason
133
- :-moz-placeholder {
134
- color: @grayLight;
135
- }
136
- ::-webkit-input-placeholder {
137
- color: @grayLight;
138
- }
139
-
140
- // Focus states
141
- input,
142
- textarea {
143
- @transition: border linear .2s, box-shadow linear .2s;
144
- .transition(@transition);
145
- .box-shadow(inset 0 1px 3px rgba(0,0,0,.1));
146
- }
147
- input:focus,
148
- textarea:focus {
149
- outline: 0;
150
- border-color: rgba(82,168,236,.8);
151
- @shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
152
- .box-shadow(@shadow);
153
- }
154
- input[type=file]:focus,
155
- input[type=checkbox]:focus,
156
- select:focus {
157
- .box-shadow(none); // override for file inputs
158
- outline: 1px dotted #666; // Selet elements don't get box-shadow styles, so instead we do outline
159
- }
160
-
161
- // Error styles
162
- form div.clearfix.error {
163
- background: lighten(@red, 57%);
164
- padding: 10px 0;
165
- margin: -10px 0 10px;
166
- .border-radius(4px);
167
- @error-text: desaturate(lighten(@red, 25%), 25%);
168
- > label,
169
- span.help-inline,
170
- span.help-block {
171
- color: @red;
172
- }
173
- input,
174
- textarea {
175
- border-color: @error-text;
176
- .box-shadow(0 0 3px rgba(171,41,32,.25));
177
- &:focus {
178
- border-color: darken(@error-text, 10%);
179
- .box-shadow(0 0 6px rgba(171,41,32,.5));
180
- }
181
- }
182
- .input-prepend,
183
- .input-append {
184
- span.add-on {
185
- background: lighten(@red, 50%);
186
- border-color: @error-text;
187
- color: darken(@error-text, 10%);
188
- }
189
- }
190
- }
191
-
192
- // Form element sizes
193
- // TODO v2: remove duplication here and just stick to .input-[size] in light of adding .spanN sizes
194
- .input-mini,
195
- input.mini,
196
- textarea.mini,
197
- select.mini {
198
- width: 60px;
199
- }
200
- .input-small,
201
- input.small,
202
- textarea.small,
203
- select.small {
204
- width: 90px;
205
- }
206
- .input-medium,
207
- input.medium,
208
- textarea.medium,
209
- select.medium {
210
- width: 150px;
211
- }
212
- .input-large,
213
- input.large,
214
- textarea.large,
215
- select.large {
216
- width: 210px;
217
- }
218
- .input-xlarge,
219
- input.xlarge,
220
- textarea.xlarge,
221
- select.xlarge {
222
- width: 270px;
223
- }
224
- .input-xxlarge,
225
- input.xxlarge,
226
- textarea.xxlarge,
227
- select.xxlarge {
228
- width: 530px;
229
- }
230
- textarea.xxlarge {
231
- overflow-y: auto;
232
- }
233
-
234
- // Grid style input sizes
235
- // This is a duplication of the main grid .columns() mixin, but subtracts 10px to account for input padding and border
236
- .formColumns(@columnSpan: 1) {
237
- display: inline-block;
238
- float: none;
239
- width: ((@gridColumnWidth - 10) * @columnSpan) + ((@gridColumnWidth - 10) * (@columnSpan - 1));
240
- margin-left: 0;
241
- }
242
- input,
243
- textarea,
244
- select {
245
- // Default columns
246
- &.span1 { .formColumns(1); }
247
- &.span2 { .formColumns(2); }
248
- &.span3 { .formColumns(3); }
249
- &.span4 { .formColumns(4); }
250
- &.span5 { .formColumns(5); }
251
- &.span6 { .formColumns(6); }
252
- &.span7 { .formColumns(7); }
253
- &.span8 { .formColumns(8); }
254
- &.span9 { .formColumns(9); }
255
- &.span10 { .formColumns(10); }
256
- &.span11 { .formColumns(11); }
257
- &.span12 { .formColumns(12); }
258
- &.span13 { .formColumns(13); }
259
- &.span14 { .formColumns(14); }
260
- &.span15 { .formColumns(15); }
261
- &.span16 { .formColumns(16); }
262
- }
263
-
264
- // Disabled and read-only inputs
265
- input[disabled],
266
- select[disabled],
267
- textarea[disabled],
268
- input[readonly],
269
- select[readonly],
270
- textarea[readonly] {
271
- background-color: #f5f5f5;
272
- border-color: #ddd;
273
- cursor: not-allowed;
274
- }
275
-
276
- // Actions (the buttons)
277
- .actions {
278
- background: #f5f5f5;
279
- margin-top: @baseline;
280
- margin-bottom: @baseline;
281
- padding: (@baseline - 1) 20px @baseline 150px;
282
- border-top: 1px solid #ddd;
283
- .border-radius(0 0 3px 3px);
284
- .secondary-action {
285
- float: right;
286
- a {
287
- line-height: 30px;
288
- &:hover {
289
- text-decoration: underline;
290
- }
291
- }
292
- }
293
- }
294
-
295
- // Help Text
296
- .help-inline,
297
- .help-block {
298
- font-size: @basefont - 2;
299
- line-height: @baseline;
300
- color: @grayLight;
301
- }
302
- .help-inline {
303
- padding-left: 5px;
304
- *position: relative; /* IE6-7 */
305
- *top: -5px; /* IE6-7 */
306
- }
307
-
308
- // Big blocks of help text
309
- .help-block {
310
- display: block;
311
- max-width: 600px;
312
- }
313
-
314
- // Inline Fields (input fields that appear as inline objects
315
- .inline-inputs {
316
- color: @gray;
317
- span, input {
318
- display: inline-block;
319
- }
320
- input.mini {
321
- width: 60px;
322
- }
323
- input.small {
324
- width: 90px;
325
- }
326
- span {
327
- padding: 0 2px 0 1px;
328
- }
329
- }
330
-
331
- // Allow us to put symbols and text within the input field for a cleaner look
332
- .input-prepend,
333
- .input-append {
334
- input {
335
- .border-radius(0 3px 3px 0);
336
- }
337
- .add-on {
338
- position: relative;
339
- background: #f5f5f5;
340
- border: 1px solid #ccc;
341
- z-index: 2;
342
- float: left;
343
- display: block;
344
- width: auto;
345
- min-width: 16px;
346
- height: 18px;
347
- padding: 4px 4px 4px 5px;
348
- margin-right: -1px;
349
- font-weight: normal;
350
- line-height: 18px;
351
- color: @grayLight;
352
- text-align: center;
353
- text-shadow: 0 1px 0 @white;
354
- .border-radius(3px 0 0 3px);
355
- }
356
- .active {
357
- background: lighten(@green, 30);
358
- border-color: @green;
359
- }
360
- }
361
- .input-prepend {
362
- .add-on {
363
- *margin-top: 1px; /* IE6-7 */
364
- }
365
- }
366
- .input-append {
367
- input {
368
- float: left;
369
- .border-radius(3px 0 0 3px);
370
- }
371
- .add-on {
372
- .border-radius(0 3px 3px 0);
373
- margin-right: 0;
374
- margin-left: -1px;
375
- }
376
- }
377
-
378
- // Stacked options for forms (radio buttons or checkboxes)
379
- .inputs-list {
380
- margin: 0 0 5px;
381
- width: 100%;
382
- li {
383
- display: block;
384
- padding: 0;
385
- width: 100%;
386
- }
387
- label {
388
- display: block;
389
- float: none;
390
- width: auto;
391
- padding: 0;
392
- line-height: @baseline;
393
- text-align: left;
394
- white-space: normal;
395
- strong {
396
- color: @gray;
397
- }
398
- small {
399
- font-size: @basefont - 2;
400
- font-weight: normal;
401
- }
402
- }
403
- .inputs-list {
404
- margin-left: 25px;
405
- margin-bottom: 10px;
406
- padding-top: 0;
407
- }
408
- &:first-child {
409
- padding-top: 6px;
410
- }
411
- li + li {
412
- padding-top: 2px;
413
- }
414
- input[type=radio],
415
- input[type=checkbox] {
416
- margin-bottom: 0;
417
- }
418
- }
419
-
420
- // Stacked forms
421
- .form-stacked {
422
- padding-left: 20px;
423
- fieldset {
424
- padding-top: @baseline / 2;
425
- }
426
- legend {
427
- padding-left: 0;
428
- }
429
- label {
430
- display: block;
431
- float: none;
432
- width: auto;
433
- font-weight: bold;
434
- text-align: left;
435
- line-height: 20px;
436
- padding-top: 0;
437
- }
438
- .clearfix {
439
- margin-bottom: @baseline / 2;
440
- div.input {
441
- margin-left: 0;
442
- }
443
- }
444
- .inputs-list {
445
- margin-bottom: 0;
446
- li {
447
- padding-top: 0;
448
- label {
449
- font-weight: normal;
450
- padding-top: 0;
451
- }
452
- }
453
- }
454
- div.clearfix.error {
455
- padding-top: 10px;
456
- padding-bottom: 10px;
457
- padding-left: 10px;
458
- margin-top: 0;
459
- margin-left: -10px;
460
- }
461
- .actions {
462
- margin-left: -20px;
463
- padding-left: 20px;
464
- }
465
- }
466
-
1
+ /* Forms.less
2
+ * Base styles for various input types, form layouts, and states
3
+ * ------------------------------------------------------------- */
4
+
5
+
6
+ // FORM STYLES
7
+ // -----------
8
+
9
+ form {
10
+ margin-bottom: @baseline;
11
+ }
12
+
13
+ // Groups of fields with labels on top (legends)
14
+ fieldset {
15
+ margin-bottom: @baseline;
16
+ padding-top: @baseline;
17
+ legend {
18
+ display: block;
19
+ padding-left: 150px;
20
+ font-size: @basefont * 1.5;
21
+ line-height: 1;
22
+ color: @grayDark;
23
+ *padding: 0 0 5px 145px; /* IE6-7 */
24
+ *line-height: 1.5; /* IE6-7 */
25
+ }
26
+ }
27
+
28
+ // Parent element that clears floats and wraps labels and fields together
29
+ form .clearfix {
30
+ margin-bottom: @baseline;
31
+ .clearfix()
32
+ }
33
+
34
+ // Set font for forms
35
+ label,
36
+ input,
37
+ select,
38
+ textarea {
39
+ #font > .sans-serif(normal,13px,normal);
40
+ }
41
+
42
+ // Float labels left
43
+ label {
44
+ padding-top: 6px;
45
+ font-size: @basefont;
46
+ line-height: @baseline;
47
+ float: left;
48
+ width: 130px;
49
+ text-align: right;
50
+ color: @grayDark;
51
+ }
52
+
53
+ // Shift over the inside div to align all label's relevant content
54
+ form .input {
55
+ margin-left: 150px;
56
+ }
57
+
58
+ // Checkboxs and radio buttons
59
+ input[type=checkbox],
60
+ input[type=radio] {
61
+ cursor: pointer;
62
+ }
63
+
64
+ // Inputs, Textareas, Selects
65
+ input,
66
+ textarea,
67
+ select,
68
+ .uneditable-input {
69
+ display: inline-block;
70
+ width: 210px;
71
+ height: @baseline;
72
+ padding: 4px;
73
+ font-size: @basefont;
74
+ line-height: @baseline;
75
+ color: @gray;
76
+ border: 1px solid #ccc;
77
+ .border-radius(3px);
78
+ }
79
+
80
+ // remove padding from select
81
+ select {
82
+ padding: initial;
83
+ }
84
+
85
+ // mini reset for non-html5 file types
86
+ input[type=checkbox],
87
+ input[type=radio] {
88
+ width: auto;
89
+ height: auto;
90
+ padding: 0;
91
+ margin: 3px 0;
92
+ *margin-top: 0; /* IE6-7 */
93
+ line-height: normal;
94
+ border: none;
95
+ }
96
+
97
+ input[type=file] {
98
+ background-color: @white;
99
+ padding: initial;
100
+ border: initial;
101
+ line-height: initial;
102
+ .box-shadow(none);
103
+ }
104
+
105
+ input[type=button],
106
+ input[type=reset],
107
+ input[type=submit] {
108
+ width: auto;
109
+ height: auto;
110
+ }
111
+
112
+ select,
113
+ input[type=file] {
114
+ height: @baseline * 1.5; // In IE7, the height of the select element cannot be changed by height, only font-size
115
+ *height: auto; // Reset for IE7
116
+ line-height: @baseline * 1.5;
117
+ *margin-top: 4px; /* For IE7, add top margin to align select with labels */
118
+ }
119
+
120
+ // Make multiple select elements height not fixed
121
+ select[multiple] {
122
+ height: inherit;
123
+ background-color: @white; // Fixes Chromium bug of unreadable items
124
+ }
125
+
126
+ textarea {
127
+ height: auto;
128
+ }
129
+
130
+ // For text that needs to appear as an input but should not be an input
131
+ .uneditable-input {
132
+ background-color: @white;
133
+ display: block;
134
+ border-color: #eee;
135
+ .box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
136
+ cursor: not-allowed;
137
+ }
138
+
139
+ // Placeholder text gets special styles; can't be bundled together though for some reason
140
+ :-moz-placeholder {
141
+ color: @grayLight;
142
+ }
143
+ ::-webkit-input-placeholder {
144
+ color: @grayLight;
145
+ }
146
+
147
+ // Focus states
148
+ input,
149
+ textarea {
150
+ @transition: border linear .2s, box-shadow linear .2s;
151
+ .transition(@transition);
152
+ .box-shadow(inset 0 1px 3px rgba(0,0,0,.1));
153
+ }
154
+ input:focus,
155
+ textarea:focus {
156
+ outline: 0;
157
+ border-color: rgba(82,168,236,.8);
158
+ @shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
159
+ .box-shadow(@shadow);
160
+ }
161
+ input[type=file]:focus,
162
+ input[type=checkbox]:focus,
163
+ select:focus {
164
+ .box-shadow(none); // override for file inputs
165
+ outline: 1px dotted #666; // Selet elements don't get box-shadow styles, so instead we do outline
166
+ }
167
+
168
+
169
+ // FORM FIELD FEEDBACK STATES
170
+ // --------------------------
171
+
172
+ // Mixin for form field states
173
+ .formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
174
+ // Set the text color
175
+ > label,
176
+ .help-block,
177
+ .help-inline {
178
+ color: @textColor;
179
+ }
180
+ // Style inputs accordingly
181
+ input,
182
+ textarea {
183
+ color: @textColor;
184
+ border-color: @borderColor;
185
+ &:focus {
186
+ border-color: darken(@borderColor, 10%);
187
+ .box-shadow(0 0 6px lighten(@borderColor, 20%);
188
+ }
189
+ }
190
+ // Give a small background color for input-prepend/-append
191
+ .input-prepend .add-on,
192
+ .input-append .add-on {
193
+ color: @textColor;
194
+ background-color: @backgroundColor;
195
+ border-color: @textColor;
196
+ }
197
+ }
198
+ // Error
199
+ form .clearfix.error {
200
+ .formFieldState(#b94a48, #ee5f5b, lighten(#ee5f5b, 30%));
201
+ }
202
+ // Warning
203
+ form .clearfix.warning {
204
+ .formFieldState(#c09853, #ccae64, lighten(#CCAE64, 5%));
205
+ }
206
+ // Success
207
+ form .clearfix.success {
208
+ .formFieldState(#468847, #57a957, lighten(#57a957, 30%));
209
+ }
210
+
211
+
212
+ // Form element sizes
213
+ // TODO v2: remove duplication here and just stick to .input-[size] in light of adding .spanN sizes
214
+ .input-mini,
215
+ input.mini,
216
+ textarea.mini,
217
+ select.mini {
218
+ width: 60px;
219
+ }
220
+ .input-small,
221
+ input.small,
222
+ textarea.small,
223
+ select.small {
224
+ width: 90px;
225
+ }
226
+ .input-medium,
227
+ input.medium,
228
+ textarea.medium,
229
+ select.medium {
230
+ width: 150px;
231
+ }
232
+ .input-large,
233
+ input.large,
234
+ textarea.large,
235
+ select.large {
236
+ width: 210px;
237
+ }
238
+ .input-xlarge,
239
+ input.xlarge,
240
+ textarea.xlarge,
241
+ select.xlarge {
242
+ width: 270px;
243
+ }
244
+ .input-xxlarge,
245
+ input.xxlarge,
246
+ textarea.xxlarge,
247
+ select.xxlarge {
248
+ width: 530px;
249
+ }
250
+ textarea.xxlarge {
251
+ overflow-y: auto;
252
+ }
253
+
254
+ // Grid style input sizes
255
+ // This is a duplication of the main grid .columns() mixin, but subtracts 10px to account for input padding and border
256
+ .formColumns(@columnSpan: 1) {
257
+ display: inline-block;
258
+ float: none;
259
+ width: ((@gridColumnWidth) * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1)) - 10;
260
+ margin-left: 0;
261
+ }
262
+ input,
263
+ textarea {
264
+ // Default columns
265
+ &.span1 { .formColumns(1); }
266
+ &.span2 { .formColumns(2); }
267
+ &.span3 { .formColumns(3); }
268
+ &.span4 { .formColumns(4); }
269
+ &.span5 { .formColumns(5); }
270
+ &.span6 { .formColumns(6); }
271
+ &.span7 { .formColumns(7); }
272
+ &.span8 { .formColumns(8); }
273
+ &.span9 { .formColumns(9); }
274
+ &.span10 { .formColumns(10); }
275
+ &.span11 { .formColumns(11); }
276
+ &.span12 { .formColumns(12); }
277
+ &.span13 { .formColumns(13); }
278
+ &.span14 { .formColumns(14); }
279
+ &.span15 { .formColumns(15); }
280
+ &.span16 { .formColumns(16); }
281
+ }
282
+
283
+ // Disabled and read-only inputs
284
+ input[disabled],
285
+ select[disabled],
286
+ textarea[disabled],
287
+ input[readonly],
288
+ select[readonly],
289
+ textarea[readonly] {
290
+ background-color: #f5f5f5;
291
+ border-color: #ddd;
292
+ cursor: not-allowed;
293
+ }
294
+
295
+ // Actions (the buttons)
296
+ .actions {
297
+ background: #f5f5f5;
298
+ margin-top: @baseline;
299
+ margin-bottom: @baseline;
300
+ padding: (@baseline - 1) 20px @baseline 150px;
301
+ border-top: 1px solid #ddd;
302
+ .border-radius(0 0 3px 3px);
303
+ .secondary-action {
304
+ float: right;
305
+ a {
306
+ line-height: 30px;
307
+ &:hover {
308
+ text-decoration: underline;
309
+ }
310
+ }
311
+ }
312
+ }
313
+
314
+ // Help Text
315
+ // TODO: Do we need to set basefont and baseline here?
316
+ .help-inline,
317
+ .help-block {
318
+ font-size: @basefont;
319
+ line-height: @baseline;
320
+ color: @grayLight;
321
+ }
322
+ .help-inline {
323
+ padding-left: 5px;
324
+ *position: relative; /* IE6-7 */
325
+ *top: -5px; /* IE6-7 */
326
+ }
327
+
328
+ // Big blocks of help text
329
+ .help-block {
330
+ display: block;
331
+ max-width: 600px;
332
+ }
333
+
334
+ // Inline Fields (input fields that appear as inline objects
335
+ .inline-inputs {
336
+ color: @gray;
337
+ span {
338
+ padding: 0 2px 0 1px;
339
+ }
340
+ }
341
+
342
+ // Allow us to put symbols and text within the input field for a cleaner look
343
+ .input-prepend,
344
+ .input-append {
345
+ input {
346
+ .border-radius(0 3px 3px 0);
347
+ }
348
+ .add-on {
349
+ position: relative;
350
+ background: #f5f5f5;
351
+ border: 1px solid #ccc;
352
+ z-index: 2;
353
+ float: left;
354
+ display: block;
355
+ width: auto;
356
+ min-width: 16px;
357
+ height: 18px;
358
+ padding: 4px 4px 4px 5px;
359
+ margin-right: -1px;
360
+ font-weight: normal;
361
+ line-height: 18px;
362
+ color: @grayLight;
363
+ text-align: center;
364
+ text-shadow: 0 1px 0 @white;
365
+ .border-radius(3px 0 0 3px);
366
+ }
367
+ .active {
368
+ background: lighten(@green, 30);
369
+ border-color: @green;
370
+ }
371
+ }
372
+ .input-prepend {
373
+ .add-on {
374
+ *margin-top: 1px; /* IE6-7 */
375
+ }
376
+ }
377
+ .input-append {
378
+ input {
379
+ float: left;
380
+ .border-radius(3px 0 0 3px);
381
+ }
382
+ .add-on {
383
+ .border-radius(0 3px 3px 0);
384
+ margin-right: 0;
385
+ margin-left: -1px;
386
+ }
387
+ }
388
+
389
+ // Stacked options for forms (radio buttons or checkboxes)
390
+ .inputs-list {
391
+ margin: 0 0 5px;
392
+ width: 100%;
393
+ li {
394
+ display: block;
395
+ padding: 0;
396
+ width: 100%;
397
+ }
398
+ label {
399
+ display: block;
400
+ float: none;
401
+ width: auto;
402
+ padding: 0;
403
+ margin-left: 20px;
404
+ line-height: @baseline;
405
+ text-align: left;
406
+ white-space: normal;
407
+ strong {
408
+ color: @gray;
409
+ }
410
+ small {
411
+ font-size: @basefont - 2;
412
+ font-weight: normal;
413
+ }
414
+ }
415
+ .inputs-list {
416
+ margin-left: 25px;
417
+ margin-bottom: 10px;
418
+ padding-top: 0;
419
+ }
420
+ &:first-child {
421
+ padding-top: 6px;
422
+ }
423
+ li + li {
424
+ padding-top: 2px;
425
+ }
426
+ input[type=radio],
427
+ input[type=checkbox] {
428
+ margin-bottom: 0;
429
+ margin-left: -20px;
430
+ float: left;
431
+ }
432
+ }
433
+
434
+ // Stacked forms
435
+ .form-stacked {
436
+ padding-left: 20px;
437
+ fieldset {
438
+ padding-top: @baseline / 2;
439
+ }
440
+ legend {
441
+ padding-left: 0;
442
+ }
443
+ label {
444
+ display: block;
445
+ float: none;
446
+ width: auto;
447
+ font-weight: bold;
448
+ text-align: left;
449
+ line-height: 20px;
450
+ padding-top: 0;
451
+ }
452
+ .clearfix {
453
+ margin-bottom: @baseline / 2;
454
+ div.input {
455
+ margin-left: 0;
456
+ }
457
+ }
458
+ .inputs-list {
459
+ margin-bottom: 0;
460
+ li {
461
+ padding-top: 0;
462
+ label {
463
+ font-weight: normal;
464
+ padding-top: 0;
465
+ }
466
+ }
467
+ }
468
+ div.clearfix.error {
469
+ padding-top: 10px;
470
+ padding-bottom: 10px;
471
+ padding-left: 10px;
472
+ margin-top: 0;
473
+ margin-left: -10px;
474
+ }
475
+ .actions {
476
+ margin-left: -20px;
477
+ padding-left: 20px;
478
+ }
479
+ }