rapido-css 0.0.1 → 0.0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data/README.mkdn +1 -2
  2. data/stylesheets/_rapido.scss +50 -3
  3. data/stylesheets/_susy.scss +1 -1
  4. data/stylesheets/components/_alerts.scss +8 -8
  5. data/stylesheets/components/_breadcrumbs.scss +3 -3
  6. data/stylesheets/components/_button-groups.scss +6 -9
  7. data/stylesheets/components/_buttons.scss +75 -74
  8. data/stylesheets/components/_captions.scss +4 -0
  9. data/stylesheets/components/_close.scss +3 -3
  10. data/stylesheets/components/_dropdowns.scss +10 -57
  11. data/stylesheets/components/_forms.scss +279 -439
  12. data/stylesheets/components/_labels.scss +39 -0
  13. data/stylesheets/components/_modals.scss +29 -13
  14. data/stylesheets/components/_navs.scss +55 -57
  15. data/stylesheets/components/_pager.scss +13 -10
  16. data/stylesheets/components/_pagination.scss +29 -24
  17. data/stylesheets/components/_responsive-navs.scss +5 -0
  18. data/stylesheets/components/_sliders.scss +40 -35
  19. data/stylesheets/components/_tables.scss +29 -31
  20. data/stylesheets/components/_tabs.scss +4 -0
  21. data/stylesheets/components/_type.scss +76 -60
  22. data/stylesheets/settings/_base.scss +17 -10
  23. data/stylesheets/settings/_colors.scss +4 -4
  24. data/stylesheets/settings/_components.scss +7 -8
  25. data/stylesheets/settings/_dimensions.scss +9 -7
  26. data/stylesheets/settings/_effects.scss +8 -5
  27. data/stylesheets/utilities/_animations.scss +15 -7
  28. data/stylesheets/utilities/_debug.scss +4 -0
  29. data/stylesheets/utilities/_helper-classes.scss +14 -1
  30. data/stylesheets/utilities/_icon-fonts.scss +33 -8
  31. data/stylesheets/utilities/_media-queries.scss +5 -0
  32. data/stylesheets/utilities/_mixins.scss +78 -103
  33. data/stylesheets/utilities/_sprites.scss +5 -9
  34. metadata +3 -8
  35. data/stylesheets/_components.scss +0 -24
  36. data/stylesheets/_settings.scss +0 -5
  37. data/stylesheets/_utilities.scss +0 -8
  38. data/stylesheets/components/_images.scss +0 -0
  39. data/stylesheets/components/_pills.scss +0 -91
  40. data/stylesheets/utilities/_retina-sprites.scss +0 -70
@@ -1,513 +1,351 @@
1
+ // ====================================================================================================================
2
+ // FORMS
3
+ // ====================================================================================================================
4
+
1
5
  @if $forms {
2
6
 
3
- // GENERICI
4
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
5
- form {
7
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
8
+ // Base
9
+ // --------------------------------------------------------------------------------------------------------------------
10
+
11
+ .form {
12
+ @extend .clearfix;
6
13
  margin: 0 0 em($base-line-height);
7
- }
8
- fieldset {
9
- padding: 0;
10
- margin: 0;
11
- border: 0;
12
- }
13
- legend {
14
- display: block;
15
- width: 100%;
16
- padding: 0;
17
- @include adjust-font-size-to($h5-size);
18
- font-weight: bold;
19
- border: 0;
20
- padding-bottom: rhythm(.5);
21
- margin-bottom: rhythm(.5) - 1;
22
- border-bottom: 1px solid #e5e5e5;
23
- small {
24
- font-size: em($base-font-size);
25
- color: $grayLight;
14
+
15
+ fieldset {
16
+ padding: 0;
17
+ margin: 0;
18
+ border: 0;
26
19
  }
27
- }
28
- label,
29
- input,
30
- button,
31
- select,
32
- textarea {
33
- // @include adjust-font-size-to($base-font-size);
34
- line-height: 1em;
35
- // @include adjust-font-size-to($base-font-size);
36
- }
37
- input,
38
- button,
39
- select,
40
- textarea {
41
- font-family: $base-font-family;
42
- }
43
- label {
44
- display: block;
45
- margin-bottom: em($label-margin-bottom);
46
- font-weight: bold;
47
- cursor: auto;
48
- }
49
- textarea,
50
- input[type="text"],
51
- input[type="password"],
52
- input[type="datetime"],
53
- input[type="datetime-local"],
54
- input[type="date"],
55
- input[type="month"],
56
- input[type="time"],
57
- input[type="week"],
58
- input[type="number"],
59
- input[type="email"],
60
- input[type="url"],
61
- input[type="search"],
62
- input[type="tel"],
63
- input[type="color"],
64
- .uneditable-input {
65
- @include border-radius($base-border-radius);
66
- display: inline-block;
67
- // font-size: $base-font-size;
68
- // line-height: $base-line-height;
69
- // @include adjust-font-size-to($base-font-size);
70
- padding: $input-padding;
71
- // padding: 0 $input-padding-side;
72
- vertical-align: middle;
73
- height: $input-height;
74
- // height: auto;
75
- border-width: $input-border;
76
- border-style: solid;
77
- @extend %input !optional;
78
- &:focus {
79
- outline: 0;
20
+ legend {
21
+ display: block;
22
+ width: 100%;
23
+ padding: 0;
24
+ @include adjust-font-size-to($h5-size);
25
+ font-weight: bold;
26
+ border: 0;
27
+ padding-bottom: rhythm(.5);
28
+ margin-bottom: rhythm(.5) - 1;
29
+ border-bottom: 1px solid #e5e5e5;
30
+ small {
31
+ font-size: em($base-font-size);
32
+ color: $grayLight;
33
+ }
80
34
  }
81
- }
82
- select {
83
- color: $text-color;
84
- display: inline-block;
85
- // option:disabled {color: $gray;}
86
- }
87
- input,
88
- textarea,
89
- .uneditable-input {
90
- width: 240px;
91
- }
92
- textarea {
93
- height: auto;
94
- line-height: rhythm(1);
95
- padding: $input-padding;
96
- }
97
-
98
-
99
- input[type="radio"],
100
- input[type="checkbox"] {
101
- margin: em(2px) 0 0;
102
- // *margin-top: 0; /* IE7 */
103
- // margin-top: 1px \9; /* IE8-9 */
104
- // line-height: normal;
105
- }
106
- input[type="file"],
107
- input[type="image"],
108
- input[type="submit"],
109
- input[type="reset"],
110
- input[type="button"],
111
- input[type="radio"],
112
- input[type="checkbox"] {
113
- width: auto;
114
- }
115
- select,
116
- input[type="file"] {
117
- *margin-top: 4px; /* For IE7, add top margin to align select with labels */
118
- }
119
- select, .select {
120
- width: 240px;
121
- }
122
- select[multiple],
123
- select[size] {
124
- height: auto;
125
- }
126
- select:focus,
127
- input[type="file"]:focus,
128
- input[type="radio"]:focus,
129
- input[type="checkbox"]:focus {
130
- // @include tab-focus(); // Bootstrap
131
- }
132
-
133
-
134
- // INPUT NON EDITABILE
135
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
136
- .uneditable-input,
137
- .uneditable-textarea {
138
- color: $grayLight;
139
- cursor: not-allowed;
140
- }
141
- .uneditable-input {
142
- overflow: hidden;
143
- white-space: nowrap;
144
- }
145
- .uneditable-textarea {
146
- width: auto;
147
- height: auto;
148
- }
149
- input,
150
- textarea {
151
- @include placeholder(); // Bootstrap
152
- }
35
+ label,
36
+ input,
37
+ button,
38
+ select,
39
+ textarea {
40
+ line-height: 1em;
41
+ }
42
+ input,
43
+ button,
44
+ select,
45
+ textarea {
46
+ font-family: $base-font-family;
47
+ }
48
+ label {
49
+ display: block;
50
+ margin-bottom: em($label-margin-bottom);
51
+ font-weight: bold;
52
+ cursor: auto;
53
+ }
54
+ textarea,
55
+ input[type="text"],
56
+ input[type="password"],
57
+ input[type="datetime"],
58
+ input[type="datetime-local"],
59
+ input[type="date"],
60
+ input[type="month"],
61
+ input[type="time"],
62
+ input[type="week"],
63
+ input[type="number"],
64
+ input[type="email"],
65
+ input[type="url"],
66
+ input[type="search"],
67
+ input[type="tel"],
68
+ input[type="color"] {
69
+ @include border-radius($base-border-radius);
70
+ display: inline-block;
71
+ padding: $input-padding;
72
+ vertical-align: middle;
73
+ height: $input-height;
74
+ border-width: $input-border;
75
+ border-style: solid;
76
+ @extend %input !optional;
153
77
 
78
+ &:focus {outline: 0;}
79
+ }
154
80
 
81
+ select {
82
+ color: $text-color;
83
+ display: inline-block;
84
+ }
155
85
 
156
- // RADIO & CHECKBOX
157
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
158
- .radio,
159
- .checkbox,
160
- .select {
161
- min-height: em($base-line-height);
162
- padding-left: 20px;
163
- margin-bottom: 0;
164
- font-weight: normal;
165
- cursor: pointer;
166
- line-height: rhythm(1);
167
- }
168
- .select {padding-left: 0;}
86
+ input,
87
+ textarea {
88
+ width: 240px;
89
+ }
169
90
 
170
- .radio input[type="radio"],
171
- .checkbox input[type="checkbox"] {
172
- float: left;
173
- margin-left: -20px;
174
- }
175
- .controls > .radio:first-child,
176
- .controls > .checkbox:first-child {
177
- }
178
- .radio.inline,
179
- .checkbox.inline {
180
- display: inline-block;
181
- margin-bottom: 0;
182
- vertical-align: middle;
183
- }
184
- .radio.inline + .radio.inline,
185
- .checkbox.inline + .checkbox.inline {
186
- margin-left: 20px;
187
- }
91
+ textarea {
92
+ height: auto;
93
+ line-height: rhythm(1);
94
+ padding: $input-padding;
95
+ }
188
96
 
189
- // SELECT
190
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
191
-
192
- span.select {
193
- @extend %caret !optional;
194
- @include border-radius(3px);
195
- border-style: solid;
196
- border-width: $input-border;
197
- cursor: pointer;
198
- display: inline-block;
199
- height: $input-height;
200
- line-height: 1em;
201
- position: relative;
202
- width: 240px;
203
97
 
204
- select {
205
- @include appearance(none);
206
- background-color:transparent;
207
- background-image:none;
208
- border:none;
209
- box-shadow:none;
210
- cursor: pointer;
211
- padding: $input-padding;
212
- position: relative;
213
- width:100%;
214
- z-index: 3;
215
- line-height: 1em;
98
+ input[type="radio"],
99
+ input[type="checkbox"] {
100
+ margin: em(2px) 0 0;
216
101
  }
217
102
 
218
- &:after {
219
- position: absolute;
220
- top: 50%;
221
- right: em($input-padding-side);
222
- content: "";
223
- display: block;
103
+ input[type="file"],
104
+ input[type="image"],
105
+ input[type="submit"],
106
+ input[type="reset"],
107
+ input[type="button"],
108
+ input[type="radio"],
109
+ input[type="checkbox"] {
110
+ width: auto;
224
111
  }
225
112
 
226
- @extend %select !optional;
113
+ select, .select {
114
+ width: 240px;
115
+ }
116
+ select[multiple],
117
+ select[size] {
118
+ height: auto;
119
+ }
227
120
 
228
- }
229
121
 
230
- // INPUT DISABILITATI
231
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
232
- input[disabled],
233
- select[disabled],
234
- textarea[disabled],
235
- input[readonly],
236
- select[readonly],
237
- textarea[readonly] {
238
- cursor: not-allowed;
239
- }
240
- input[type="radio"][disabled],
241
- input[type="checkbox"][disabled],
242
- input[type="radio"][readonly],
243
- input[type="checkbox"][readonly] {
244
- background-color: transparent;
245
- }
246
- input:focus:invalid,
247
- textarea:focus:invalid,
248
- select:focus:invalid {
249
- color: #b94a48;
250
- border-color: #ee5f5b;
251
- &:focus {
252
- border-color: darken(#ee5f5b, 10%);
122
+ input,
123
+ textarea {
124
+ @include placeholder();
253
125
  }
254
- }
255
-
256
- // FORM ACTIONS
257
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
258
- .form-actions {
259
- padding-top: rhythm(1);
260
- margin-top: rhythm(1);
261
- margin-bottom: rhythm(1);
262
- border-top: 1px solid #e5e5e5;
263
- clear: both;
264
- @extend .clearfix;
265
- }
266
126
 
267
127
 
268
- // HELP BLOCKS
269
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
270
- .help-block,
271
- .help-inline {
272
- color: lighten($text-color, 15%);
273
- }
274
- .help-block {
275
- display: block;
276
- padding: rhythm(.5) 0 0;
277
- }
278
- .help-inline {
279
- display: inline-block;
280
- // @include ie7-inline-block();
281
- @include inline-block();
282
- vertical-align: middle;
283
- padding-left: 5px;
284
- }
285
128
 
286
- @if $forms-append {
287
- // APPEND & PREPEND
129
+ // RADIO & CHECKBOX
288
130
  // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
289
- .controls {
290
- @extend .clearfix;
291
- // display: inline-block;
131
+ .radio,
132
+ .checkbox,
133
+ .select {
134
+ min-height: em($base-line-height);
135
+ padding-left: 20px;
136
+ margin-bottom: 0;
137
+ font-weight: normal;
138
+ cursor: pointer;
139
+ line-height: rhythm(1);
292
140
  }
293
- .input-append,
294
- .input-prepend {
141
+ .select {padding-left: 0;}
142
+
143
+ .radio input[type="radio"],
144
+ .checkbox input[type="checkbox"] {
145
+ float: left;
146
+ margin-left: -20px;
147
+ }
148
+ .controls > .radio:first-child,
149
+ .controls > .checkbox:first-child {
150
+ }
151
+ .radio.inline,
152
+ .checkbox.inline {
295
153
  display: inline-block;
154
+ margin-bottom: 0;
296
155
  vertical-align: middle;
297
- white-space: nowrap;
298
- margin-left: -$input-border;
156
+ }
157
+ .radio.inline + .radio.inline,
158
+ .checkbox.inline + .checkbox.inline {
159
+ margin-left: 20px;
160
+ }
299
161
 
300
- input,
301
- select,
302
- .uneditable-input,
303
- .dropdown-menu,
304
- .popover {
305
- float: left;
306
- }
307
162
 
308
- input,
309
- select,
310
- .uneditable-input {
311
- position: relative;
312
- margin-bottom: 0;
313
- *margin-left: 0;
314
- vertical-align: top;
315
- @include border-radius(0 $base-border-radius $base-border-radius 0);
316
- &:focus {
317
- z-index: 2;
318
- }
319
- }
320
- .add-on {
321
- display: inline-block;
322
- width: auto;
323
- min-width: em(16px);
163
+ // CUSTOM SELECT
164
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
165
+ span.select {
166
+ @extend %caret !optional;
167
+ @include border-radius(3px);
168
+ border-style: solid;
169
+ border-width: $input-border;
170
+ cursor: pointer;
171
+ display: inline-block;
172
+ height: $input-height;
173
+ line-height: 1em;
174
+ position: relative;
175
+ width: 240px;
176
+
177
+ select {
178
+ @include appearance(none);
179
+ background-color:transparent;
180
+ background-image:none;
181
+ border:none;
182
+ box-shadow:none;
183
+ cursor: pointer;
324
184
  padding: $input-padding;
325
- // padding: $input-padding-top 0;
326
- line-height: 1em;
327
- font-weight: normal;
328
- float: left;
329
- height: $input-height;
330
- text-align: center;
331
- border-width: $input-border;
332
- border-style: solid;
333
- @extend %input-addon !optional;
334
- }
335
- .btn-group {float: left;}
336
- .add-on,
337
- .btn,
338
- .btn-group > .dropdown-toggle {
339
- float: left;
340
- vertical-align: top;
185
+ position: relative;
186
+ width:100%;
187
+ z-index: 3;
341
188
  line-height: 1em;
342
- @include border-radius(0);
343
- height: $input-height;
344
189
  }
345
- .active {
190
+
191
+ &:after {
192
+ position: absolute;
193
+ top: 50%;
194
+ right: em($input-padding-side);
195
+ content: "";
196
+ display: block;
346
197
  }
198
+
199
+ @extend %select !optional;
200
+
347
201
  }
348
- .input-prepend {
349
- .add-on,
350
- .btn {
351
- margin-left: -$input-border;
352
- }
353
- .btn-group {margin-left: 1px;}
354
- .add-on:first-child,
355
- .btn:first-child {
356
- @include border-radius($base-border-radius 0 0 $base-border-radius);
202
+
203
+ // DISABLED INPUTS
204
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
205
+ input[disabled],
206
+ select[disabled],
207
+ textarea[disabled],
208
+ input[readonly],
209
+ select[readonly],
210
+ textarea[readonly] {
211
+ cursor: not-allowed;
212
+ }
213
+ input[type="radio"][disabled],
214
+ input[type="checkbox"][disabled],
215
+ input[type="radio"][readonly],
216
+ input[type="checkbox"][readonly] {
217
+ background-color: transparent;
218
+ }
219
+ input:focus:invalid,
220
+ textarea:focus:invalid,
221
+ select:focus:invalid {
222
+ color: #b94a48;
223
+ border-color: #ee5f5b;
224
+ &:focus {
225
+ border-color: darken(#ee5f5b, 10%);
357
226
  }
358
- input,
359
- select,
360
- .uneditable-input {margin-left: -$input-border * 2}
361
227
  }
362
- .input-append {
363
- input,
364
- select,
365
- .uneditable-input {
366
- @include border-radius($base-border-radius 0 0 $base-border-radius);
367
228
 
368
- + .btn-group .btn:first-child {
369
- @include border-radius(0);
370
- }
229
+ // HELP BLOCKS
230
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
231
+ .help-block,
232
+ .help-inline {
233
+ color: lighten($text-color, 15%);
234
+ }
235
+ .help-block {
236
+ display: block;
237
+ padding: rhythm(.5) 0 0;
238
+ }
239
+ .help-inline {
240
+ @include inline-block();
241
+ vertical-align: middle;
242
+ padding-left: 5px;
243
+ }
371
244
 
372
- + .btn-group .btn:last-child {
373
- @include border-radius(0 $base-border-radius $base-border-radius 0);
374
- }
375
- }
376
- .add-on,
377
- .btn,
378
- .btn-group {
379
- margin-left: -$input-border;
380
- }
381
245
 
382
- /*.add-on:first-child,
383
- .btn:first-child {
384
- @include border-radius( 0);
385
- }*/
386
- .add-on:last-child,
387
- .btn:last-child,
388
- .btn-group:last-child > .dropdown-toggle {
389
- @include border-radius(0 $base-border-radius $base-border-radius 0);
390
- }
391
- }
392
- .input-prepend.input-append {
393
- input,
394
- select,
395
- .uneditable-input {
396
- @include border-radius(0);
397
- + .btn-group .btn {
398
- @include border-radius(0 $base-border-radius $base-border-radius 0);
399
- }
400
- }
401
- .add-on:first-child,
402
- .btn:first-child {
403
- margin-right: -$input-border;
404
- @include border-radius($base-border-radius 0 0 $base-border-radius);
405
- }
406
- .add-on:last-child,
407
- .btn:last-child {
408
- margin-left: -$input-border;
409
- @include border-radius(0 $base-border-radius $base-border-radius 0);
410
- }
411
- .btn-group:first-child {
412
- margin-left: 0;
413
- }
246
+ // CONTROL GROUPS & CONTROLS
247
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
248
+ .control-group {
249
+ margin-bottom: em($control-margin-bottom);
250
+
251
+ .control { @extend .clearfix; }
414
252
  }
253
+
415
254
  }
416
255
 
256
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
257
+ // Form Actions
258
+ // --------------------------------------------------------------------------------------------------------------------
417
259
 
418
- // CONTROLS / CONTROL GROUPS
419
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
420
- .controls {
421
- margin-bottom: em($control-margin-bottom);
260
+ .form__actions {
261
+ padding-top: rhythm(1);
262
+ margin-top: rhythm(1);
263
+ margin-bottom: rhythm(1);
264
+ border-top: 1px solid #e5e5e5;
265
+ clear: both;
422
266
  @extend .clearfix;
423
- // background-color: red;
424
- }
425
- legend + .control-group {
426
- margin-top: em($base-line-height);
427
- -webkit-margin-top-collapse: separate;
428
267
  }
429
268
 
430
- @if $forms-inline {
431
- // INLINE
432
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
433
- .form-inline {
434
- @extend .clearfix;
269
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
270
+ // Form Inline
271
+ // --------------------------------------------------------------------------------------------------------------------
272
+ @if $forms-inline {
435
273
 
436
- input,
437
- textarea,
438
- select,
439
- .help-inline,
440
- .uneditable-input,
441
- .input-prepend,
442
- .input-append {
443
- // display: inline-block;
444
- // @include ie7-inline-block();
445
- // @include inline-block();
446
- float: left;
447
- margin-bottom: 0;
448
- vertical-align: middle;
449
- margin-right: em(8px);
450
- }
451
- .hide {
452
- display: none;
453
- }
274
+ .form--inline {
275
+
276
+ input,
277
+ textarea,
278
+ select,
279
+ .help-inline,
280
+ .uneditable-input,
281
+ .input-prepend,
282
+ .input-append {
283
+ float: left;
284
+ margin-bottom: 0;
285
+ vertical-align: middle;
286
+ margin-right: em(8px);
454
287
  }
455
288
 
456
- .form-inline label {
289
+ .hide {
290
+ display: none;
291
+ }
292
+
293
+ label {
457
294
  padding-top: em($input-padding-top);
458
295
  margin-right: em(8px);
459
296
  }
460
297
 
461
- .form-inline label,
462
- .form-inline .btn-group {
298
+ label,
299
+ .btn-group {
463
300
  display: inline-block;
464
301
  float: left;
465
302
  }
466
- .form-inline .input-append,
467
- .form-inline .input-prepend {
303
+
304
+ .input-append,
305
+ .input-prepend {
468
306
  margin-bottom: 0;
469
307
  }
470
- .form-inline .radio,
471
- .form-inline .checkbox {
308
+
309
+ .radio,
310
+ .checkbox {
472
311
  padding-left: 0;
473
312
  margin-bottom: 0;
474
313
  vertical-align: middle;
475
314
  }
476
- .form-inline .radio input[type="radio"],
477
- .form-inline .checkbox input[type="checkbox"] {
315
+
316
+ .radio input[type="radio"],
317
+ .checkbox input[type="checkbox"] {
478
318
  float: left;
479
319
  margin-right: 3px;
480
320
  margin-left: 0;
481
321
  }
482
322
  }
323
+ }
483
324
 
484
- @if $forms-horizontal {
325
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
326
+ // Form Aligned
327
+ // --------------------------------------------------------------------------------------------------------------------
485
328
 
486
- // FORMS ORIZZONTALI
487
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
488
- .form-horizontal {
329
+ @if $forms-aligned {
330
+
331
+ .form--aligned {
489
332
  @extend .clearfix;
490
- // .control-group {
491
- // @include clearfix();
492
- // }
333
+
493
334
  .control-label {
494
335
  float: left;
495
336
  width: em($horizontal-offset) - em(20px);
496
337
  padding-top: em($input-padding-top);
497
338
  text-align: right;
498
339
  }
340
+
499
341
  .controls {
500
- *display: inline-block;
501
- *padding-left: 20px;
502
342
  margin-left: em($horizontal-offset);
503
- *margin-left: 0;
504
- &:first-child {
505
- *padding-left: em($horizontal-offset);
506
- }
507
343
  }
344
+
508
345
  .help-block {
509
346
  margin-bottom: 0;
510
347
  }
348
+
511
349
  input,
512
350
  select,
513
351
  textarea,
@@ -518,9 +356,11 @@
518
356
  // margin: rhythm(.5) 0 0;
519
357
  // }
520
358
  }
359
+
521
360
  select {
522
361
  // margin-top: $input-padding-top;
523
362
  }
363
+
524
364
  .controls > .radio:first-child,
525
365
  .controls > .checkbox:first-child {
526
366
  padding-top: em($input-padding-top) - em(2px);
@@ -554,11 +394,14 @@
554
394
  }
555
395
  }
556
396
 
397
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
398
+ // Form Columns
399
+ // --------------------------------------------------------------------------------------------------------------------
400
+
557
401
  @if $forms-columns {
558
- // FORM INCOLONNATI
559
- // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
560
- .form-columns {
561
- @extend .clearfix;
402
+
403
+ .form--columns {
404
+
562
405
  .control-group {
563
406
  min-height: $control-min-height;
564
407
  .input-append,
@@ -569,11 +412,8 @@
569
412
  }
570
413
  }
571
414
  }
572
-
573
- .input-prepend {
574
- // .btn-group {margin-right: (-$input-border);}
575
- }
576
415
  }
577
416
  }
578
417
 
579
- }
418
+
419
+ } // end IF $forms