rapido-css 0.1.1 → 0.1.2

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 (46) hide show
  1. data/stylesheets/_default-styles.scss +352 -352
  2. data/stylesheets/_functions.scss +77 -50
  3. data/stylesheets/_susy.scss +15 -12
  4. data/stylesheets/components/_alerts.scss +21 -21
  5. data/stylesheets/components/_breadcrumbs.scss +15 -15
  6. data/stylesheets/components/_button-groups.scss +51 -53
  7. data/stylesheets/components/_buttons.scss +94 -97
  8. data/stylesheets/components/_captions.scss +45 -45
  9. data/stylesheets/components/_close.scss +27 -27
  10. data/stylesheets/components/_dropdowns.scss +121 -121
  11. data/stylesheets/components/_forms.scss +246 -248
  12. data/stylesheets/components/_grids.scss +35 -35
  13. data/stylesheets/components/_labels.scss +38 -38
  14. data/stylesheets/components/_modals.scss +242 -248
  15. data/stylesheets/components/_navs.scss +86 -91
  16. data/stylesheets/components/_pager.scss +53 -53
  17. data/stylesheets/components/_pagination.scss +83 -85
  18. data/stylesheets/components/_responsive-navs.scss +84 -84
  19. data/stylesheets/components/_sliders.scss +54 -58
  20. data/stylesheets/components/_tables.scss +69 -74
  21. data/stylesheets/components/_tabs.scss +54 -54
  22. data/stylesheets/components/_type.scss +134 -140
  23. data/stylesheets/{_rapido.scss → rapido.scss} +0 -8
  24. data/stylesheets/settings/_base.scss +23 -23
  25. data/stylesheets/settings/_colors.scss +13 -13
  26. data/stylesheets/settings/_components.scss +43 -42
  27. data/stylesheets/settings/_dimensions.scss +91 -91
  28. data/stylesheets/settings/_effects.scss +28 -14
  29. data/stylesheets/susy/{_susy_background.scss → _background.scss} +0 -0
  30. data/stylesheets/susy/{_susy_functions.scss → _functions.scss} +0 -0
  31. data/stylesheets/susy/{_susy_grid.scss → _grid.scss} +0 -0
  32. data/stylesheets/susy/{_susy_isolation.scss → _isolation.scss} +1 -0
  33. data/stylesheets/susy/{_susy_margin.scss → _margin.scss} +0 -0
  34. data/stylesheets/susy/{_susy_media.scss → _media.scss} +0 -0
  35. data/stylesheets/susy/{_susy_padding.scss → _padding.scss} +0 -0
  36. data/stylesheets/susy/{_susy_settings.scss → _settings.scss} +0 -0
  37. data/stylesheets/susy/{_susy_support.scss → _support.scss} +0 -0
  38. data/stylesheets/susy/{_susy_units.scss → _units.scss} +0 -0
  39. data/stylesheets/utilities/_animations.scss +638 -597
  40. data/stylesheets/utilities/_debug.scss +43 -43
  41. data/stylesheets/utilities/_helper-classes.scss +70 -54
  42. data/stylesheets/utilities/_icon-fonts.scss +90 -90
  43. data/stylesheets/utilities/_mixins.scss +390 -357
  44. metadata +20 -17
  45. checksums.yaml +0 -15
  46. data/stylesheets/config.rb +0 -8
@@ -1,4 +1,4 @@
1
- /* ====================================================================================================================
1
+ /*
2
2
 
3
3
  Functions
4
4
 
@@ -6,51 +6,63 @@ For 99% of the framework I used Compass' and Susy's functions but I've made some
6
6
 
7
7
  Styleguide 24
8
8
 
9
- ==================================================================================================================== */
9
+ */
10
10
 
11
- // Convert Easing from Transform to Transition
12
- // --------------------------------------------------------------------------------------------------------------------
11
+ /*
12
+
13
+ Easing
14
+
15
+ There are lots of easing options available, from the basic ``linear`` or ``ease-in`` to more complex like ``easeInOutCirc``. For an example of all of these in use see [Easings.net](http://easings.net).
16
+
17
+ * **Base**: linear, ease, ease-in, ease-out, ease-in-out
18
+ * **easeIn**: easeInQuad, easeInCubic, easeInQuart, easeInQuint, easeInSine, easeInExpo, easeInCirc, easeInBack
19
+ * **easeOut**: easeOutQuad, easeOutCubic, easeOutQuart, easeOutQuint, easeOutSine, easeOutExpo, easeOutCirc, easeOutBack
20
+ * **easeInOut**: easeInOutQuad, easeInOutCubic, easeInOutQuart, easeInOutQuint, easeInOutSine, easeInOutExpo, easeInOutCirc, easeInOutBack
21
+
22
+ Styleguide 20.2
23
+
24
+ */
13
25
 
14
26
  @function toBezier($easing) {
15
27
 
16
- @if $easing == linear { @return linear; }
17
- @elseif $easing == ease { @return ease; }
18
- @elseif $easing == ease-in { @return ease-in; }
19
- @elseif $easing == ease-out { @return ease-out; }
20
- @elseif $easing == ease-in-out { @return ease-in-out; }
21
-
22
- @elseif $easing == easeInQuad { @return cubic-bezier(0.550, 0.085, 0.680, 0.530); }
23
- @elseif $easing == easeInCubic { @return cubic-bezier(0.550, 0.055, 0.675, 0.190); }
24
- @elseif $easing == easeInQuart { @return cubic-bezier(0.895, 0.030, 0.685, 0.220); }
25
- @elseif $easing == easeInQuint { @return cubic-bezier(0.755, 0.050, 0.855, 0.060); }
26
- @elseif $easing == easeInSine { @return cubic-bezier(0.470, 0.000, 0.745, 0.715); }
27
- @elseif $easing == easeInExpo { @return cubic-bezier(0.950, 0.050, 0.795, 0.035); }
28
- @elseif $easing == easeInCirc { @return cubic-bezier(0.600, 0.040, 0.980, 0.335); }
29
- @elseif $easing == easeInBack { @return cubic-bezier(.600, -0.280, 0.735, 0.045); }
30
-
31
- @elseif $easing == easeOutQuad { @return cubic-bezier(0.250, 0.460, 0.450, 0.940); }
32
- @elseif $easing == easeOutCubic { @return cubic-bezier(0.215, 0.610, 0.355, 1.000); }
33
- @elseif $easing == easeOutQuart { @return cubic-bezier(0.165, 0.840, 0.440, 1.000); }
34
- @elseif $easing == easeOutQuint { @return cubic-bezier(0.230, 1.000, 0.320, 1.000); }
35
- @elseif $easing == easeOutSine { @return cubic-bezier(0.390, 0.575, 0.565, 1.000); }
36
- @elseif $easing == easeOutExpo { @return cubic-bezier(0.190, 1.000, 0.220, 1.000); }
37
- @elseif $easing == easeOutCirc { @return cubic-bezier(0.075, 0.820, 0.165, 1.000); }
38
- @elseif $easing == easeOutBack { @return cubic-bezier(0.175, 0.885, 0.320, 1.275); }
39
-
40
- @elseif $easing == easeInOutQuad { @return cubic-bezier(0.455, 0.030, 0.515, 0.955); }
41
- @elseif $easing == easeInOutCubic { @return cubic-bezier(0.645, 0.045, 0.355, 1.000); }
42
- @elseif $easing == easeInOutQuart { @return cubic-bezier(0.770, 0.000, 0.175, 1.000); }
43
- @elseif $easing == easeInOutQuint { @return cubic-bezier(0.860, 0.000, 0.070, 1.000); }
44
- @elseif $easing == easeInOutSine { @return cubic-bezier(0.445, 0.050, 0.550, 0.950); }
45
- @elseif $easing == easeInOutExpo { @return cubic-bezier(1.000, 0.000, 0.000, 1.000); }
46
- @elseif $easing == easeInOutCirc { @return cubic-bezier(0.785, 0.135, 0.150, 0.860); }
47
- @elseif $easing == easeInOutBack { @return cubic-bezier(.680, -0.550, 0.265, 1.550); }
48
- @else { @return null; }
28
+ @if $easing == linear { @return linear; }
29
+ @elseif $easing == ease { @return ease; }
30
+ @elseif $easing == ease-in { @return ease-in; }
31
+ @elseif $easing == ease-out { @return ease-out; }
32
+ @elseif $easing == ease-in-out { @return ease-in-out; }
33
+
34
+ @elseif $easing == easeInQuad { @return cubic-bezier(0.550, 0.085, 0.680, 0.530); }
35
+ @elseif $easing == easeInCubic { @return cubic-bezier(0.550, 0.055, 0.675, 0.190); }
36
+ @elseif $easing == easeInQuart { @return cubic-bezier(0.895, 0.030, 0.685, 0.220); }
37
+ @elseif $easing == easeInQuint { @return cubic-bezier(0.755, 0.050, 0.855, 0.060); }
38
+ @elseif $easing == easeInSine { @return cubic-bezier(0.470, 0.000, 0.745, 0.715); }
39
+ @elseif $easing == easeInExpo { @return cubic-bezier(0.950, 0.050, 0.795, 0.035); }
40
+ @elseif $easing == easeInCirc { @return cubic-bezier(0.600, 0.040, 0.980, 0.335); }
41
+ @elseif $easing == easeInBack { @return cubic-bezier(.600, -0.280, 0.735, 0.045); }
42
+
43
+ @elseif $easing == easeOutQuad { @return cubic-bezier(0.250, 0.460, 0.450, 0.940); }
44
+ @elseif $easing == easeOutCubic { @return cubic-bezier(0.215, 0.610, 0.355, 1.000); }
45
+ @elseif $easing == easeOutQuart { @return cubic-bezier(0.165, 0.840, 0.440, 1.000); }
46
+ @elseif $easing == easeOutQuint { @return cubic-bezier(0.230, 1.000, 0.320, 1.000); }
47
+ @elseif $easing == easeOutSine { @return cubic-bezier(0.390, 0.575, 0.565, 1.000); }
48
+ @elseif $easing == easeOutExpo { @return cubic-bezier(0.190, 1.000, 0.220, 1.000); }
49
+ @elseif $easing == easeOutCirc { @return cubic-bezier(0.075, 0.820, 0.165, 1.000); }
50
+ @elseif $easing == easeOutBack { @return cubic-bezier(0.175, 0.885, 0.320, 1.275); }
51
+
52
+ @elseif $easing == easeInOutQuad { @return cubic-bezier(0.455, 0.030, 0.515, 0.955); }
53
+ @elseif $easing == easeInOutCubic { @return cubic-bezier(0.645, 0.045, 0.355, 1.000); }
54
+ @elseif $easing == easeInOutQuart { @return cubic-bezier(0.770, 0.000, 0.175, 1.000); }
55
+ @elseif $easing == easeInOutQuint { @return cubic-bezier(0.860, 0.000, 0.070, 1.000); }
56
+ @elseif $easing == easeInOutSine { @return cubic-bezier(0.445, 0.050, 0.550, 0.950); }
57
+ @elseif $easing == easeInOutExpo { @return cubic-bezier(1.000, 0.000, 0.000, 1.000); }
58
+ @elseif $easing == easeInOutCirc { @return cubic-bezier(0.785, 0.135, 0.150, 0.860); }
59
+ @elseif $easing == easeInOutBack { @return cubic-bezier(.680, -0.550, 0.265, 1.550); }
60
+ @else { @return null; }
49
61
 
50
62
  }
51
63
 
52
64
 
53
- /* --------------------------------------------------------------------------------------------------------------------
65
+ /*
54
66
 
55
67
  neg()
56
68
 
@@ -58,21 +70,21 @@ Convert a value to negative.
58
70
 
59
71
  Example:
60
72
 
61
- left: neg(10em);
73
+ left: neg(10em);
62
74
 
63
75
  Become:
64
76
 
65
- left: -10em
77
+ left: -10em
66
78
 
67
79
  Styleguide 24.2
68
80
 
69
- -------------------------------------------------------------------------------------------------------------------- */
81
+ */
70
82
 
71
83
  @function neg($n) {
72
- @return (0 - $n);
84
+ @return (0 - $n);
73
85
  }
74
86
 
75
- /* --------------------------------------------------------------------------------------------------------------------
87
+ /*
76
88
 
77
89
  rhythm_neg()
78
90
 
@@ -81,22 +93,22 @@ Vertical Rhythm](http://compass-style.org/reference/compass/typography/vertical_
81
93
 
82
94
  Example:
83
95
 
84
- margin-left: rhythm_neg(1);
96
+ margin-left: rhythm_neg(1);
85
97
 
86
98
  Become:
87
99
 
88
- margin-left: -1.42857em;
100
+ margin-left: -1.42857em;
89
101
 
90
102
  Styleguide 24.3
91
103
 
92
- -------------------------------------------------------------------------------------------------------------------- */
104
+ */
93
105
 
94
106
  @function rhythm_neg($i: 1) {
95
- @return -(rhythm($i));
107
+ @return -(rhythm($i));
96
108
  }
97
109
 
98
110
 
99
- /* --------------------------------------------------------------------------------------------------------------------
111
+ /*
100
112
 
101
113
  space_neg()
102
114
 
@@ -105,9 +117,24 @@ Similar to `rhythm_neg()` but for Susy's `space()` function, more info:
105
117
 
106
118
  Styleguide 24.4
107
119
 
108
- -------------------------------------------------------------------------------------------------------------------- */
120
+ */
109
121
 
110
122
  @function space_neg($w: 1, $c: 12) {
111
- @return -(space($w, $c));
123
+ @return -(space($w, $c));
112
124
  }
113
125
 
126
+ /*
127
+
128
+ strip_units()
129
+
130
+ Remove eny type of unit from a number, more info:
131
+ [StackOverflow](http://stackoverflow.com/questions/12328259/how-do-you-strip-the-unit-from-any-number-in-sass).
132
+
133
+ Styleguide 24.5
134
+
135
+ */
136
+
137
+
138
+ @function strip_units($number) {
139
+ @return $number / ($number * 0 + 1);
140
+ }
@@ -1,13 +1,16 @@
1
- // Susy
2
- // ====================================================================================================================
1
+ // ---------------------------------------------------------------------------
2
+ // Partials
3
3
 
4
- @import "susy/susy_support";
5
- @import "susy/susy_units";
6
- @import "susy/susy_settings";
7
- @import "susy/susy_functions";
8
- @import "susy/susy_grid";
9
- @import "susy/susy_isolation";
10
- @import "susy/susy_padding";
11
- @import "susy/susy_margin";
12
- @import "susy/susy_media";
13
- @import "susy/susy_background";
4
+ // temporary
5
+ @import "susy/support";
6
+ @import "susy/units";
7
+
8
+ // permanent
9
+ @import "susy/settings";
10
+ @import "susy/functions";
11
+ @import "susy/grid";
12
+ @import "susy/isolation";
13
+ @import "susy/padding";
14
+ @import "susy/margin";
15
+ @import "susy/media";
16
+ @import "susy/background";
@@ -1,4 +1,4 @@
1
- /* ====================================================================================================================
1
+ /*
2
2
 
3
3
  Alerts
4
4
 
@@ -12,25 +12,25 @@ Markup:
12
12
 
13
13
  Styleguide 1
14
14
 
15
- ==================================================================================================================== */
15
+ */
16
16
 
17
17
  @if $alerts {
18
18
 
19
- .alert {
20
- padding: $alerts-padding;
21
- margin-bottom: rhythm();
22
- @extend %alert;
19
+ .alert {
20
+ padding: $alerts-padding;
21
+ margin-bottom: rhythm();
22
+ @extend %alert;
23
23
 
24
- p { margin: 0; }
24
+ p { margin: 0; }
25
25
 
26
- .close {
27
- position: relative;
28
- top: 0;
29
- right: 0;
30
- }
31
- }
26
+ .close {
27
+ position: relative;
28
+ top: 0;
29
+ right: 0;
30
+ }
31
+ }
32
32
 
33
- /* --------------------------------------------------------------------------------------------------------------------
33
+ /*
34
34
 
35
35
  Alert Block
36
36
 
@@ -45,14 +45,14 @@ Markup:
45
45
  <p>The field Total Expenses is required and must contain a value.</p>
46
46
  </div>
47
47
 
48
- Styleguide 1.2
48
+ Styleguide 1.1
49
49
 
50
- -------------------------------------------------------------------------------------------------------------------- */
50
+ */
51
51
 
52
52
 
53
- .alert--block {
54
- * { margin-bottom: 0; }
55
- * + * { margin-top: 5px; }
56
- }
53
+ .alert--block {
54
+ * { margin-bottom: 0; }
55
+ * + * { margin-top: 5px; }
56
+ }
57
57
 
58
- }
58
+ }
@@ -1,32 +1,32 @@
1
- /* ====================================================================================================================
1
+ /*
2
2
 
3
3
  Breadcrumbs
4
4
 
5
5
  Add a breadcrumb with a list with class `.breadcrumb`.
6
6
 
7
- <ul class="breadcrumbs">
8
- <li><a href="#">Home</a></li>
9
- <li><a href="#">Library</a></li>
10
- <li class="current">Data</li>
11
- </ul>
7
+ <ul class="breadcrumbs">
8
+ <li><a href="#">Home</a></li>
9
+ <li><a href="#">Library</a></li>
10
+ <li class="current">Data</li>
11
+ </ul>
12
12
 
13
13
  **`.active`**: Selected element style
14
14
 
15
- Styleguide 2.1
15
+ Styleguide 2
16
16
 
17
- ==================================================================================================================== */
17
+ */
18
18
 
19
19
 
20
20
  @if $breadcrumbs {
21
21
 
22
- .breadcrumbs {
23
- margin: 0 0 rhythm();
24
- list-style: none;
25
- @extend %breadcrumbs !optional;
22
+ .breadcrumbs {
23
+ margin: 0 0 rhythm();
24
+ list-style: none;
25
+ @extend %breadcrumbs !optional;
26
26
 
27
- > li { @include inline-block(); }
27
+ > li { @include inline-block(); }
28
28
 
29
- .current {@extend %breadcrumbs__current !optional;}
30
- }
29
+ .current {@extend %breadcrumbs__current !optional;}
30
+ }
31
31
 
32
32
  }
@@ -1,4 +1,4 @@
1
- /* ====================================================================================================================
1
+ /*
2
2
 
3
3
  Button Groups
4
4
 
@@ -13,68 +13,66 @@ Markup:
13
13
 
14
14
  Styleguide 4
15
15
 
16
- ==================================================================================================================== */
16
+ */
17
17
 
18
18
  @if $button-groups {
19
19
 
20
- .btn-group {
21
- @extend .clearfix;
22
- @include inline-block;
23
- margin: 0;
24
-
25
- > * {
26
- float: left;
27
- list-style-type: none;
28
- }
29
-
30
- &[data-width] .btn,
31
- > *[data-width] .btn {
32
- @extend %width-100;
33
- padding-left: 0;
34
- padding-right: 0;
35
- }
36
-
37
- // Space multiple inline groups
38
- + .btn-group { margin-left: em(5px); }
39
-
40
- // Float button and reapply border radius
41
- > .btn,
42
- > li .btn {
43
- float: left;
44
- @include border-radius(0);
45
- }
46
-
47
- > li + li { margin-left: -$input-border; }
48
-
49
- // On hover/focus/active, bring the proper btn to front
50
- > .btn:hover,
51
- > .btn:focus,
52
- > .btn:active,
53
- > .btn.active {
54
- z-index: 2;
55
- }
56
-
57
- }
20
+ .btn-group {
21
+ @extend .clearfix;
22
+ @include inline-block;
23
+ margin: 0;
24
+
25
+ > * {
26
+ float: left;
27
+ list-style-type: none;
28
+ }
29
+
30
+ &[data-width] .btn,
31
+ > *[data-width] .btn {
32
+ @extend %width-100;
33
+ padding-left: 0;
34
+ padding-right: 0;
35
+ }
36
+
37
+ // Space multiple inline groups
38
+ + .btn-group { margin-left: em(5px); }
39
+
40
+ // Float button and reapply border radius
41
+ > .btn,
42
+ > li .btn {
43
+ float: left;
44
+ @include border-radius(0);
45
+ }
46
+
47
+ > li + li { margin-left: -$input-border; }
48
+
49
+ // On hover/focus/active, bring the proper btn to front
50
+ > .btn:hover,
51
+ > .btn:focus,
52
+ > .btn:active,
53
+ > .btn.active {
54
+ z-index: 2;
55
+ }
56
+
57
+ }
58
58
 
59
59
  // Generic
60
- // --------------------------------------------------------------------------------------------------------------------
61
60
 
62
- .btn-group > li:first-child .btn { @include border-left-radius($base-border-radius); }
63
- .btn-group > li:last-child .btn { @include border-right-radius($base-border-radius); }
64
- div.btn-group .btn { @include border-radius($base-border-radius); }
61
+ .btn-group > li:first-child .btn { @include border-left-radius($base-border-radius); }
62
+ .btn-group > li:last-child .btn { @include border-right-radius($base-border-radius); }
63
+ div.btn-group .btn { @include border-radius($base-border-radius); }
65
64
 
66
65
  // In Forms
67
- // --------------------------------------------------------------------------------------------------------------------
68
66
 
69
- .form__controls--multi {
70
- .btn-group:first-child > li:first-child .btn { }
71
- .btn-group:first-child > li:last-child .btn { @include border-right-radius(0); }
72
- div.btn-group:first-child .btn { @include border-right-radius(0); }
67
+ .form__controls--multi {
68
+ .btn-group:first-child > li:first-child .btn { }
69
+ .btn-group:first-child > li:last-child .btn { @include border-right-radius(0); }
70
+ div.btn-group:first-child .btn { @include border-right-radius(0); }
73
71
 
74
- .btn-group:last-child > li:first-child .btn { @include border-left-radius(0); }
75
- .btn-group:last-child > li:last-child .btn { }
76
- div.btn-group:last-child > .btn { @include border-left-radius(0); }
77
- }
72
+ .btn-group:last-child > li:first-child .btn { @include border-left-radius(0); }
73
+ .btn-group:last-child > li:last-child .btn { }
74
+ div.btn-group:last-child > .btn { @include border-left-radius(0); }
75
+ }
78
76
 
79
77
  }
80
78