rapido-css 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/README.mkdn +21 -0
  2. data/lib/rapido-css.rb +3 -0
  3. data/stylesheets/_components.scss +24 -0
  4. data/stylesheets/_default-styles.scss +480 -0
  5. data/stylesheets/_functions.scss +50 -0
  6. data/stylesheets/_normalize.scss +513 -0
  7. data/stylesheets/_rapido.scss +12 -0
  8. data/stylesheets/_settings.scss +5 -0
  9. data/stylesheets/_susy.scss +16 -0
  10. data/stylesheets/_utilities.scss +8 -0
  11. data/stylesheets/components/_alerts.scss +24 -0
  12. data/stylesheets/components/_breadcrumbs.scss +15 -0
  13. data/stylesheets/components/_button-groups.scss +65 -0
  14. data/stylesheets/components/_buttons.scss +121 -0
  15. data/stylesheets/components/_captions.scss +54 -0
  16. data/stylesheets/components/_close.scss +27 -0
  17. data/stylesheets/components/_dropdowns.scss +190 -0
  18. data/stylesheets/components/_forms.scss +579 -0
  19. data/stylesheets/components/_images.scss +0 -0
  20. data/stylesheets/components/_modals.scss +271 -0
  21. data/stylesheets/components/_navs.scss +102 -0
  22. data/stylesheets/components/_pager.scss +56 -0
  23. data/stylesheets/components/_pagination.scss +90 -0
  24. data/stylesheets/components/_pills.scss +91 -0
  25. data/stylesheets/components/_responsive-navs.scss +166 -0
  26. data/stylesheets/components/_sliders.scss +86 -0
  27. data/stylesheets/components/_tables.scss +109 -0
  28. data/stylesheets/components/_tabs.scss +55 -0
  29. data/stylesheets/components/_type.scss +266 -0
  30. data/stylesheets/settings/_base.scss +32 -0
  31. data/stylesheets/settings/_colors.scss +16 -0
  32. data/stylesheets/settings/_components.scss +45 -0
  33. data/stylesheets/settings/_dimensions.scss +103 -0
  34. data/stylesheets/settings/_effects.scss +15 -0
  35. data/stylesheets/susy/_susy_background.scss +18 -0
  36. data/stylesheets/susy/_susy_functions.scss +376 -0
  37. data/stylesheets/susy/_susy_grid.scss +286 -0
  38. data/stylesheets/susy/_susy_isolation.scss +50 -0
  39. data/stylesheets/susy/_susy_margin.scss +93 -0
  40. data/stylesheets/susy/_susy_media.scss +112 -0
  41. data/stylesheets/susy/_susy_padding.scss +92 -0
  42. data/stylesheets/susy/_susy_settings.scss +56 -0
  43. data/stylesheets/susy/_susy_support.scss +198 -0
  44. data/stylesheets/susy/_susy_units.scss +159 -0
  45. data/stylesheets/utilities/_animations.scss +672 -0
  46. data/stylesheets/utilities/_debug.scss +41 -0
  47. data/stylesheets/utilities/_helper-classes.scss +32 -0
  48. data/stylesheets/utilities/_icon-fonts.scss +111 -0
  49. data/stylesheets/utilities/_media-queries.scss +45 -0
  50. data/stylesheets/utilities/_mixins.scss +372 -0
  51. data/stylesheets/utilities/_retina-sprites.scss +70 -0
  52. data/stylesheets/utilities/_sprites.scss +26 -0
  53. data/templates/project/manifest.rb +2 -0
  54. data/templates/project/screen.scss +2 -0
  55. metadata +116 -0
@@ -0,0 +1,579 @@
1
+ @if $forms {
2
+
3
+ // GENERICI
4
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
5
+ form {
6
+ 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;
26
+ }
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;
80
+ }
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
+ }
153
+
154
+
155
+
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;}
169
+
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
+ }
188
+
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
+
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;
216
+ }
217
+
218
+ &:after {
219
+ position: absolute;
220
+ top: 50%;
221
+ right: em($input-padding-side);
222
+ content: "";
223
+ display: block;
224
+ }
225
+
226
+ @extend %select !optional;
227
+
228
+ }
229
+
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%);
253
+ }
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
+
267
+
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
+
286
+ @if $forms-append {
287
+ // APPEND & PREPEND
288
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
289
+ .controls {
290
+ @extend .clearfix;
291
+ // display: inline-block;
292
+ }
293
+ .input-append,
294
+ .input-prepend {
295
+ display: inline-block;
296
+ vertical-align: middle;
297
+ white-space: nowrap;
298
+ margin-left: -$input-border;
299
+
300
+ input,
301
+ select,
302
+ .uneditable-input,
303
+ .dropdown-menu,
304
+ .popover {
305
+ float: left;
306
+ }
307
+
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);
324
+ 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;
341
+ line-height: 1em;
342
+ @include border-radius(0);
343
+ height: $input-height;
344
+ }
345
+ .active {
346
+ }
347
+ }
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);
357
+ }
358
+ input,
359
+ select,
360
+ .uneditable-input {margin-left: -$input-border * 2}
361
+ }
362
+ .input-append {
363
+ input,
364
+ select,
365
+ .uneditable-input {
366
+ @include border-radius($base-border-radius 0 0 $base-border-radius);
367
+
368
+ + .btn-group .btn:first-child {
369
+ @include border-radius(0);
370
+ }
371
+
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
+
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
+ }
414
+ }
415
+ }
416
+
417
+
418
+ // CONTROLS / CONTROL GROUPS
419
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
420
+ .controls {
421
+ margin-bottom: em($control-margin-bottom);
422
+ @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
+ }
429
+
430
+ @if $forms-inline {
431
+ // INLINE
432
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
433
+ .form-inline {
434
+ @extend .clearfix;
435
+
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
+ }
454
+ }
455
+
456
+ .form-inline label {
457
+ padding-top: em($input-padding-top);
458
+ margin-right: em(8px);
459
+ }
460
+
461
+ .form-inline label,
462
+ .form-inline .btn-group {
463
+ display: inline-block;
464
+ float: left;
465
+ }
466
+ .form-inline .input-append,
467
+ .form-inline .input-prepend {
468
+ margin-bottom: 0;
469
+ }
470
+ .form-inline .radio,
471
+ .form-inline .checkbox {
472
+ padding-left: 0;
473
+ margin-bottom: 0;
474
+ vertical-align: middle;
475
+ }
476
+ .form-inline .radio input[type="radio"],
477
+ .form-inline .checkbox input[type="checkbox"] {
478
+ float: left;
479
+ margin-right: 3px;
480
+ margin-left: 0;
481
+ }
482
+ }
483
+
484
+ @if $forms-horizontal {
485
+
486
+ // FORMS ORIZZONTALI
487
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
488
+ .form-horizontal {
489
+ @extend .clearfix;
490
+ // .control-group {
491
+ // @include clearfix();
492
+ // }
493
+ .control-label {
494
+ float: left;
495
+ width: em($horizontal-offset) - em(20px);
496
+ padding-top: em($input-padding-top);
497
+ text-align: right;
498
+ }
499
+ .controls {
500
+ *display: inline-block;
501
+ *padding-left: 20px;
502
+ margin-left: em($horizontal-offset);
503
+ *margin-left: 0;
504
+ &:first-child {
505
+ *padding-left: em($horizontal-offset);
506
+ }
507
+ }
508
+ .help-block {
509
+ margin-bottom: 0;
510
+ }
511
+ input,
512
+ select,
513
+ textarea,
514
+ .uneditable-input,
515
+ .input-prepend,
516
+ .input-append {
517
+ // + .help-block {
518
+ // margin: rhythm(.5) 0 0;
519
+ // }
520
+ }
521
+ select {
522
+ // margin-top: $input-padding-top;
523
+ }
524
+ .controls > .radio:first-child,
525
+ .controls > .checkbox:first-child {
526
+ padding-top: em($input-padding-top) - em(2px);
527
+ }
528
+
529
+ .controls > .radio.inline,
530
+ .controls > .checkbox.inline{
531
+ padding-top: em($input-padding-top) - em(2px);
532
+ }
533
+
534
+ .form-actions {
535
+ padding-left: em($horizontal-offset);
536
+ }
537
+
538
+ @include media(palm) {
539
+ .control-label {
540
+ width: 100%;
541
+ float: none;
542
+ padding-top: 0;
543
+ text-align: left;
544
+ }
545
+
546
+ .controls {
547
+ margin-left: 0;
548
+ }
549
+
550
+ .form-actions {
551
+ padding-left: 0;
552
+ }
553
+ }
554
+ }
555
+ }
556
+
557
+ @if $forms-columns {
558
+ // FORM INCOLONNATI
559
+ // ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
560
+ .form-columns {
561
+ @extend .clearfix;
562
+ .control-group {
563
+ min-height: $control-min-height;
564
+ .input-append,
565
+ .input-prepend {
566
+ width: 100%;
567
+ .add-on {
568
+ padding: em($input-padding-top) 0;
569
+ }
570
+ }
571
+ }
572
+
573
+ .input-prepend {
574
+ // .btn-group {margin-right: (-$input-border);}
575
+ }
576
+ }
577
+ }
578
+
579
+ }
File without changes