rapido-css 0.0.1

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.
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,513 @@
1
+ // =============================================================================
2
+ // Normalize.scss based on Nicolas Gallagher and Jonathan Neal's
3
+ // normalize.css v2.1.0 | MIT License | git.io/normalize
4
+ // =============================================================================
5
+
6
+ // =============================================================================
7
+ // Normalize.scss settings
8
+ // =============================================================================
9
+
10
+
11
+ // Set to true if you want to add support for IE6 and IE7
12
+ // Notice: setting to true might render some elements
13
+ // slightly differently than when set to false
14
+ $legacy_support_for_ie: false !default; // Used also in Compass
15
+
16
+
17
+ // Set the default font family here so you don't have to override it later
18
+ $normalized_font_family: sans-serif !default;
19
+
20
+ $normalize_headings: true !default;
21
+
22
+ $h1_font_size: 2em !default;
23
+ $h2_font_size: 1.5em !default;
24
+ $h3_font_size: 1.17em !default;
25
+ $h4_font_size: 1em !default;
26
+ $h5_font_size: 0.83em !default;
27
+ $h6_font_size: 0.75em !default;
28
+
29
+ $h1_margin: 0.67em 0 !default;
30
+ $h2_margin: 0.83em 0 !default;
31
+ $h3_margin: 1em 0 !default;
32
+ $h4_margin: 1.33em 0 !default;
33
+ $h5_margin: 1.67em 0 !default;
34
+ $h6_margin: 2.33em 0 !default;
35
+
36
+ // =============================================================================
37
+ // HTML5 display definitions
38
+ // =============================================================================
39
+
40
+ // Corrects block display not defined in IE6/7/8/9 & FF3
41
+
42
+ article,
43
+ aside,
44
+ details,
45
+ figcaption,
46
+ figure,
47
+ footer,
48
+ header,
49
+ hgroup,
50
+ nav,
51
+ section,
52
+ summary {
53
+ display: block;
54
+ }
55
+
56
+ // Corrects inline-block display not defined in IE6/7/8/9 & FF3
57
+
58
+ audio,
59
+ canvas,
60
+ video {
61
+ display: inline-block;
62
+ @if $legacy_support_for_ie {
63
+ *display: inline;
64
+ *zoom: 1;
65
+ }
66
+ }
67
+
68
+ // 1. Prevents modern browsers from displaying 'audio' without controls
69
+ // 2. Remove excess height in iOS5 devices
70
+
71
+ audio:not([controls]) {
72
+ display: none; // 1
73
+ height: 0; // 2
74
+ }
75
+
76
+ // Addresses styling for 'hidden' attribute not present in IE8/9
77
+
78
+ [hidden] {
79
+ display: none;
80
+ }
81
+
82
+ // =============================================================================
83
+ // Base
84
+ // =============================================================================
85
+
86
+ // 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
87
+ // http://clagnut.com/blog/348/#c790
88
+ // 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
89
+ // www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
90
+
91
+ html {
92
+ @if $legacy_support_for_ie {
93
+ font-size: 100%; // 1
94
+ }
95
+ -webkit-text-size-adjust: 100%; // 2
96
+ -ms-text-size-adjust: 100%; // 2
97
+ }
98
+
99
+ // Addresses font-family inconsistency between 'textarea' and other form elements.
100
+
101
+ html,
102
+ button,
103
+ input,
104
+ select,
105
+ textarea {
106
+ font-family: sans-serif;
107
+ }
108
+
109
+ // Addresses margins handled incorrectly in IE6/7
110
+
111
+ body {
112
+ margin: 0;
113
+ }
114
+
115
+ // =============================================================================
116
+ // Links
117
+ // =============================================================================
118
+
119
+ // 1. Addresses outline displayed oddly in Chrome
120
+ // 2. Improves readability when focused and also mouse hovered in all browsers
121
+ // people.opera.com/patrickl/experiments/keyboard/test
122
+
123
+ a {
124
+
125
+ // 1
126
+
127
+ &:focus {
128
+ outline: thin dotted;
129
+ }
130
+
131
+ // 2
132
+
133
+ &:hover,
134
+ &:active {
135
+ outline: 0;
136
+ }
137
+ }
138
+
139
+ // =============================================================================
140
+ // Typography
141
+ // =============================================================================
142
+
143
+ // Addresses font sizes and margins set differently in IE6/7
144
+ // Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5
145
+
146
+ @if $normalize_headings == true {
147
+ h1 {
148
+ font-size: $h1_font_size;
149
+ margin: $h1_margin;
150
+ }
151
+
152
+ h2 {
153
+ font-size: $h2_font_size;
154
+ margin: $h2_margin;
155
+ }
156
+
157
+ h3 {
158
+ font-size: $h3_font_size;
159
+ margin: $h3_margin;
160
+ }
161
+
162
+ h4 {
163
+ font-size: $h4_font_size;
164
+ margin: $h4_margin;
165
+ }
166
+
167
+ h5 {
168
+ font-size: $h5_font_size;
169
+ margin: $h5_margin;
170
+ }
171
+
172
+ h6 {
173
+ font-size: $h6_font_size;
174
+ margin: $h6_margin;
175
+ }
176
+ }
177
+
178
+ // Addresses styling not present in IE 8/9, S5, Chrome
179
+
180
+ abbr[title] {
181
+ border-bottom: 1px dotted;
182
+ }
183
+
184
+ // Addresses style set to 'bolder' in FF3+, S4/5, Chrome
185
+
186
+ b,
187
+ strong {
188
+ font-weight: bold;
189
+ }
190
+
191
+ @if $legacy_support_for_ie {
192
+ blockquote {
193
+ margin: 1em 40px;
194
+ }
195
+ }
196
+
197
+ // Addresses styling not present in S5, Chrome
198
+
199
+ dfn {
200
+ font-style: italic;
201
+ }
202
+
203
+ // Addresses styling not present in IE6/7/8/9
204
+
205
+ mark {
206
+ background: #ff0;
207
+ color: #000;
208
+ }
209
+
210
+ // Addresses margins set differently in IE6/7
211
+ @if $legacy_support_for_ie {
212
+ p,
213
+ pre {
214
+ margin: 1em 0;
215
+ }
216
+ }
217
+
218
+ // Corrects font family set oddly in IE6, S4/5, Chrome
219
+ // en.wikipedia.org/wiki/User:Davidgothberg/Test59
220
+
221
+ code,
222
+ kbd,
223
+ pre,
224
+ samp {
225
+ font-family: monospace, serif;
226
+ @if $legacy_support_for_ie {
227
+ _font-family: 'courier new', monospace;
228
+ }
229
+ font-size: 1em;
230
+ }
231
+
232
+ // Improves readability of pre-formatted text in all browsers
233
+
234
+ pre {
235
+ white-space: pre;
236
+ white-space: pre-wrap;
237
+ word-wrap: break-word;
238
+ }
239
+
240
+ // Set consistent quote types.
241
+
242
+ q {
243
+ quotes: "\201C" "\201D" "\2018" "\2019";
244
+ }
245
+
246
+ // 1. Addresses CSS quotes not supported in IE6/7
247
+ // 2. Addresses quote property not supported in S4
248
+
249
+ // 1
250
+ @if $legacy_support_for_ie {
251
+ q {
252
+ quotes: none;
253
+ }
254
+ }
255
+
256
+ // 2
257
+ q:before,
258
+ q:after {
259
+ content: '';
260
+ content: none;
261
+ }
262
+
263
+ // Address inconsistent and variable font size in all browsers.
264
+
265
+ small {
266
+ font-size: 80%;
267
+ }
268
+
269
+ // Prevents sub and sup affecting line-height in all browsers
270
+ // gist.github.com/413930
271
+
272
+ sub,
273
+ sup {
274
+ font-size: 75%;
275
+ line-height: 0;
276
+ position: relative;
277
+ vertical-align: baseline;
278
+ }
279
+
280
+ sup {
281
+ top: -0.5em;
282
+ }
283
+
284
+ sub {
285
+ bottom: -0.25em;
286
+ }
287
+
288
+ // =============================================================================
289
+ // Lists
290
+ // =============================================================================
291
+
292
+ // Addresses margins set differently in IE6/7
293
+ @if $legacy_support_for_ie {
294
+ dl,
295
+ menu,
296
+ ol,
297
+ ul {
298
+ margin: 1em 0;
299
+ }
300
+ }
301
+
302
+ @if $legacy_support_for_ie {
303
+ dd {
304
+ margin: 0 0 0 40px;
305
+ }
306
+ }
307
+
308
+ // Addresses paddings set differently in IE6/7
309
+ @if $legacy_support_for_ie {
310
+ menu,
311
+ ol,
312
+ ul {
313
+ padding: 0 0 0 40px;
314
+ }
315
+ }
316
+
317
+ // Corrects list images handled incorrectly in IE7
318
+
319
+ nav {
320
+ ul,
321
+ ol {
322
+ @if $legacy_support_for_ie {
323
+ list-style-image: none;
324
+ }
325
+ }
326
+ }
327
+
328
+ // =============================================================================
329
+ // Embedded content
330
+ // =============================================================================
331
+
332
+ // 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
333
+ // 2. Improves image quality when scaled in IE7
334
+ // code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
335
+
336
+ img {
337
+ border: 0; // 1
338
+ @if $legacy_support_for_ie {
339
+ -ms-interpolation-mode: bicubic; // 2
340
+ }
341
+ }
342
+
343
+ // Corrects overflow displayed oddly in IE9
344
+
345
+ svg:not(:root) {
346
+ overflow: hidden;
347
+ }
348
+
349
+ // =============================================================================
350
+ // Figures
351
+ // =============================================================================
352
+
353
+ // Addresses margin not present in IE6/7/8/9, S5, O11
354
+
355
+ figure {
356
+ margin: 0;
357
+ }
358
+
359
+ // =============================================================================
360
+ // Forms
361
+ // =============================================================================
362
+
363
+ // Corrects margin displayed oddly in IE6/7
364
+ @if $legacy_support_for_ie {
365
+ form {
366
+ margin: 0;
367
+ }
368
+ }
369
+
370
+ // Define consistent border, margin, and padding
371
+
372
+ fieldset {
373
+ border: 1px solid #c0c0c0;
374
+ margin: 0 2px;
375
+ padding: 0.35em 0.625em 0.75em;
376
+ }
377
+
378
+ // 1. Corrects color not being inherited in IE6/7/8/9
379
+ // 2. Remove padding so people aren't caught out if they zero out fieldsets.
380
+ // 3. Corrects text not wrapping in FF3
381
+ // 4. Corrects alignment displayed oddly in IE6/7
382
+
383
+ legend {
384
+ border: 0; // 1
385
+ padding: 0; // 2
386
+ white-space: normal; // 3
387
+ @if $legacy_support_for_ie {
388
+ *margin-left: -7px; // 4
389
+ }
390
+ }
391
+
392
+ // 1. Correct font family not being inherited in all browsers.
393
+ // 2. Corrects font size not being inherited in all browsers
394
+ // 3. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
395
+ // 4. Improves appearance and consistency in all browsers
396
+
397
+ button,
398
+ input,
399
+ select,
400
+ textarea {
401
+ font-family: inherit; // 1
402
+ font-size: 100%; // 2
403
+ margin: 0; // 3
404
+ vertical-align: baseline; // 4
405
+ @if $legacy_support_for_ie {
406
+ *vertical-align: middle; // 4
407
+ }
408
+ }
409
+
410
+ // Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
411
+
412
+ button,
413
+ input {
414
+ line-height: normal;
415
+ }
416
+
417
+ // Address inconsistent `text-transform` inheritance for `button` and `select`.
418
+ // All other form control elements do not inherit `text-transform` values.
419
+ // Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
420
+ // Correct `select` style inheritance in Firefox 4+ and Opera.
421
+
422
+ button,
423
+ select {
424
+ text-transform: none;
425
+ }
426
+
427
+ // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
428
+ // and `video` controls
429
+ // 2. Corrects inability to style clickable 'input' types in iOS
430
+ // 3. Improves usability and consistency of cursor style between image-type
431
+ // 'input' and others
432
+ // 4. Removes inner spacing in IE7 without affecting normal text inputs
433
+ // Known issue: inner spacing remains in IE6
434
+
435
+ button,
436
+ html input[type="button"], // 1
437
+ input[type="reset"],
438
+ input[type="submit"] {
439
+ -webkit-appearance: button; // 2
440
+ cursor: pointer; // 3
441
+ @if $legacy_support_for_ie {
442
+ *overflow: visible; // 4
443
+ }
444
+ }
445
+
446
+ // Re-set default cursor for disabled elements
447
+
448
+ button[disabled],
449
+ input[disabled] {
450
+ cursor: default;
451
+ }
452
+
453
+ // 1. Addresses box sizing set to content-box in IE8/9
454
+ // 2. Removes excess padding in IE8/9
455
+ // 3. Removes excess padding in IE7
456
+ // Known issue: excess padding remains in IE6
457
+
458
+ input[type="checkbox"],
459
+ input[type="radio"] {
460
+ box-sizing: border-box; // 1
461
+ padding: 0; // 2
462
+ @if $legacy_support_for_ie {
463
+ *height: 13px; // 3
464
+ *width: 13px; // 3
465
+ }
466
+ }
467
+
468
+ // 1. Addresses appearance set to searchfield in S5, Chrome
469
+ // 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
470
+
471
+ input[type="search"] {
472
+ -webkit-appearance: textfield; // 1
473
+ -moz-box-sizing: content-box;
474
+ -webkit-box-sizing: content-box; // 2
475
+ box-sizing: content-box;
476
+ }
477
+
478
+ // Remove inner padding and search cancel button in Safari 5 and Chrome
479
+ // on OS X.
480
+
481
+ input[type="search"]::-webkit-search-cancel-button,
482
+ input[type="search"]::-webkit-search-decoration {
483
+ -webkit-appearance: none;
484
+ }
485
+
486
+ // Removes inner padding and border in FF3+
487
+ // www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
488
+
489
+ button, input {
490
+ &::-moz-focus-inner {
491
+ border: 0;
492
+ padding: 0;
493
+ }
494
+ }
495
+
496
+ // 1. Removes default vertical scrollbar in IE6/7/8/9
497
+ // 2. Improves readability and alignment in all browsers
498
+
499
+ textarea {
500
+ overflow: auto; // 1
501
+ vertical-align: top; // 2
502
+ }
503
+
504
+ // =============================================================================
505
+ // Tables
506
+ // =============================================================================
507
+
508
+ // Remove most spacing between table cells
509
+
510
+ table {
511
+ border-collapse: collapse;
512
+ border-spacing: 0;
513
+ }
@@ -0,0 +1,12 @@
1
+
2
+ @import "normalize";
3
+ @import "functions";
4
+ @import "settings";
5
+
6
+ @import "compass";
7
+ @import "susy";
8
+
9
+ @import "utilities";
10
+ @import "components";
11
+
12
+ @import "default-styles";
@@ -0,0 +1,5 @@
1
+ @import "settings/base";
2
+ @import "settings/colors";
3
+ @import "settings/dimensions";
4
+ @import "settings/components";
5
+ @import "settings/effects";
@@ -0,0 +1,16 @@
1
+ // ---------------------------------------------------------------------------
2
+ // Partials
3
+
4
+ // temporary
5
+ @import "susy/susy_support";
6
+ @import "susy/susy_units";
7
+
8
+ // permanent
9
+ @import "susy/susy_settings";
10
+ @import "susy/susy_functions";
11
+ @import "susy/susy_grid";
12
+ @import "susy/susy_isolation";
13
+ @import "susy/susy_padding";
14
+ @import "susy/susy_margin";
15
+ @import "susy/susy_media";
16
+ @import "susy/susy_background";
@@ -0,0 +1,8 @@
1
+
2
+ @import "utilities/mixins";
3
+ @import "utilities/media-queries";
4
+ @import "utilities/helper-classes";
5
+ @import "utilities/debug";
6
+ @import "utilities/animations";
7
+ // @import "utilities/sprites";
8
+ @import "utilities/icon-fonts";
@@ -0,0 +1,24 @@
1
+ //
2
+ // Alerts
3
+ // --------------------------------------------------
4
+
5
+ @if $alerts {
6
+ [class^="alert"] {
7
+ padding: $alerts-padding;
8
+ margin-bottom: rhythm();
9
+ @extend %alert;
10
+
11
+ p { margin: 0; }
12
+
13
+ .close {
14
+ position: relative;
15
+ top: 0;
16
+ right: 0;
17
+ }
18
+
19
+ &[class*="-block"] {
20
+ p, ul { margin-bottom: 0; }
21
+ p + p { margin-top: 5px; }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,15 @@
1
+ //
2
+ // Breadcrumbs
3
+ // --------------------------------------------------
4
+
5
+ @if $breadcrumbs {
6
+ .breadcrumb {
7
+ margin: 0 0 rhythm();
8
+ list-style: none;
9
+ @extend %breadcrumb !optional;
10
+
11
+ > li { @include inline-block(); }
12
+
13
+ .active {}
14
+ }
15
+ }
@@ -0,0 +1,65 @@
1
+ //
2
+ // Button groups
3
+ // --------------------------------------------------
4
+ @if $button-groups {
5
+ .btn-group {
6
+ @extend .clearfix;
7
+ @include inline-block;
8
+ margin-bottom: 0;
9
+ position: relative;
10
+ vertical-align: middle;
11
+ white-space: nowrap;
12
+ > li {
13
+ float: left;
14
+ list-style-type: none;
15
+ display: inline-block;
16
+ }
17
+
18
+
19
+ // Space multiple inline groups
20
+ + .btn-group { margin-left: em(5px); }
21
+
22
+ // Float button and reapply border radius
23
+ > .btn,
24
+ > li .btn {
25
+ @include border-radius(0);
26
+ float: left;
27
+ position: relative;
28
+ }
29
+
30
+ > .btn + .btn,
31
+ > li + li {
32
+ margin-left: -($input-border);
33
+ }
34
+
35
+
36
+ > .btn:first-child,
37
+ > li:first-child .btn {
38
+ margin-left: 0;
39
+ @include border-top-left-radius($base-border-radius);
40
+ @include border-bottom-left-radius($base-border-radius);
41
+ }
42
+
43
+ > .btn:last-child,
44
+ > .dropdown-toggle,
45
+ > li:last-child .btn{
46
+ @include border-top-right-radius($base-border-radius);
47
+ @include border-bottom-right-radius($base-border-radius);
48
+ }
49
+
50
+
51
+ // On hover/focus/active, bring the proper btn to front
52
+ > .btn:hover,
53
+ > .btn:focus,
54
+ > .btn:active,
55
+ > .btn.active {
56
+ z-index: 2;
57
+ }
58
+
59
+ // // On active and open, don't show outline
60
+ // .dropdown-toggle:active,
61
+ // &.open .dropdown-toggle {
62
+ // outline: 0;
63
+ // }
64
+ }
65
+ }