stipe 0.0.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 (59) hide show
  1. data/README.md +13 -0
  2. data/lib/stipe.rb +4 -0
  3. data/stylesheets/stipe/_buttons.scss +0 -0
  4. data/stylesheets/stipe/_color.scss +7 -0
  5. data/stylesheets/stipe/_forms.scss +24 -0
  6. data/stylesheets/stipe/_gradients.scss +11 -0
  7. data/stylesheets/stipe/_grid.scss +59 -0
  8. data/stylesheets/stipe/_media.scss +14 -0
  9. data/stylesheets/stipe/_stipe.scss +13 -0
  10. data/stylesheets/stipe/_typography.scss +44 -0
  11. data/stylesheets/stipe/buttons/_extends.scss +13 -0
  12. data/stylesheets/stipe/buttons/doc-src/buttons.md +3 -0
  13. data/stylesheets/stipe/buttons/lib/_cupid-green.scss +54 -0
  14. data/stylesheets/stipe/buttons/lib/_minimal.scss +36 -0
  15. data/stylesheets/stipe/color/_color_math.scss +61 -0
  16. data/stylesheets/stipe/color/_default_color_pallet.scss +56 -0
  17. data/stylesheets/stipe/color/_extends.scss +222 -0
  18. data/stylesheets/stipe/color/_grayscale_math.scss +10 -0
  19. data/stylesheets/stipe/forms/_default.scss +11 -0
  20. data/stylesheets/stipe/forms/_extends.scss +103 -0
  21. data/stylesheets/stipe/forms/_mixins.scss +32 -0
  22. data/stylesheets/stipe/gradients/_extends.scss +48 -0
  23. data/stylesheets/stipe/gradients/mixins/_area_51.scss +53 -0
  24. data/stylesheets/stipe/gradients/mixins/_linear_gradient_bkgimage.scss +43 -0
  25. data/stylesheets/stipe/grid/_extends.scss +221 -0
  26. data/stylesheets/stipe/grid/_mixins.scss +66 -0
  27. data/stylesheets/stipe/grid/lib/_grid_background.scss +10 -0
  28. data/stylesheets/stipe/grid/lib/_grid_margin.scss +23 -0
  29. data/stylesheets/stipe/grid/lib/_grid_placement.scss +66 -0
  30. data/stylesheets/stipe/grid/lib/_push_logic.scss +52 -0
  31. data/stylesheets/stipe/grid/lib/_the_grid.scss +98 -0
  32. data/stylesheets/stipe/resets/_eric_meyer.scss +48 -0
  33. data/stylesheets/stipe/resets/_toadstool.scss +212 -0
  34. data/stylesheets/stipe/stipe/_extends.scss +42 -0
  35. data/stylesheets/stipe/stipe/_mixins.scss +291 -0
  36. data/stylesheets/stipe/toadstool/_buttons.scss +29 -0
  37. data/stylesheets/stipe/toadstool/_config.scss +228 -0
  38. data/stylesheets/stipe/toadstool/_design.scss +52 -0
  39. data/stylesheets/stipe/toadstool/_forms.scss +19 -0
  40. data/stylesheets/stipe/toadstool/_grids.scss +93 -0
  41. data/stylesheets/stipe/toadstool/_modules.scss +3 -0
  42. data/stylesheets/stipe/toadstool/_typography.scss +109 -0
  43. data/stylesheets/stipe/toadstool/_ui_manifest.scss +39 -0
  44. data/stylesheets/stipe/toadstool/_ui_patterns.scss +2 -0
  45. data/stylesheets/stipe/toadstool/_web_fonts.scss +32 -0
  46. data/stylesheets/stipe/toadstool/modules/_footer.scss +6 -0
  47. data/stylesheets/stipe/toadstool/modules/_header.scss +41 -0
  48. data/stylesheets/stipe/toadstool/modules/_main_nav.scss +46 -0
  49. data/stylesheets/stipe/toadstool/ui_patterns/_emBox.scss +16 -0
  50. data/stylesheets/stipe/toadstool/ui_patterns/_prettify.scss +118 -0
  51. data/stylesheets/stipe/typography/_default.scss +66 -0
  52. data/stylesheets/stipe/typography/_extends.scss +86 -0
  53. data/stylesheets/stipe/typography/_functions.scss +22 -0
  54. data/stylesheets/stipe/typography/_mixins.scss +105 -0
  55. data/stylesheets/stipe/typography/web_fonts/_font_awesome.scss +4 -0
  56. data/stylesheets/stipe/typography/web_fonts/_font_awesome_pua.scss +231 -0
  57. data/stylesheets/stipe/typography/web_fonts/_zocial.scss +3 -0
  58. data/stylesheets/stipe/typography/web_fonts/_zocial_characters.scss +54 -0
  59. metadata +135 -0
@@ -0,0 +1,10 @@
1
+ /////// generic b/w blocks ////////
2
+ // ----------------------------------------------
3
+ $bravo_gray:scale-color($alpha_gray, $lightness: 10%) !default;
4
+ $charlie_gray:scale-color($alpha_gray, $lightness: 20%) !default;
5
+ $delta_gray:scale-color($alpha_gray, $lightness: 30%) !default;
6
+ $echo_gray:scale-color($alpha_gray, $lightness: 40%) !default;
7
+ $fox_gray:scale-color($alpha_gray, $lightness: 50%) !default;
8
+ $golf_gray:scale-color($alpha_gray, $lightness: 60%) !default;
9
+ $hotel_gray:scale-color($alpha_gray, $lightness: 70%) !default;
10
+ $india_gray:scale-color($alpha_gray, $lightness: 80%) !default;
@@ -0,0 +1,11 @@
1
+ input[type=text], input[type=password], input[type="date"], select {
2
+ @extend %input_fields;
3
+ }
4
+
5
+ input[disabled], textarea[disabled], select[disabled], .disabled {
6
+ @extend %disabled_inputs;
7
+ }
8
+
9
+ label {
10
+ @extend %form_labels;
11
+ }
@@ -0,0 +1,103 @@
1
+ // input fields
2
+ // ------------------------------------------------------------
3
+ %input_fields {
4
+ border: 1px solid $form_field_border;
5
+ background: $form_field_background_color;
6
+ @include medium();
7
+ height: #{32 / $em}em;
8
+ @include grid(12,12,$grid_uom:combo, $grid_padding_lr:6);
9
+ @include placeholder ($delta_gray);
10
+
11
+ @include field_focus;
12
+ color: $form_field_text;
13
+ + .horizontal_selectors {
14
+ margin-top: -0.5em;
15
+ }
16
+ }
17
+
18
+ // disabled input fields
19
+ // ------------------------------------------------------------
20
+ %disabled_inputs {
21
+ background-color: $input_disabled_bkg;
22
+ border-color: $input_disabled_border;
23
+ color: $input_disabled_text;
24
+ &:hover {
25
+ border-color: $input_disabled_border;
26
+ }
27
+ }
28
+
29
+ // form labels
30
+ // ------------------------------------------------------------
31
+ %form_labels {
32
+ display: block;
33
+ font-weight: bold;
34
+ line-height: #{20 / $em}em;
35
+ span {
36
+ padding-left: .25em;
37
+ font-weight: normal;
38
+ }
39
+ fieldset & {
40
+ @include grid(12,12, $grid_uom:percent);
41
+ }
42
+ }
43
+
44
+ // default error
45
+ // ------------------------------------------------------------
46
+ %fail {
47
+ border-color: $form_field_border_fail !important;
48
+ color: $form_field_text_fail !important;
49
+ input & {
50
+ background: $form_field_fail_bkg;
51
+ }
52
+ &:focus {
53
+ background: $form_field_fail_bkg !important;
54
+ }
55
+ select, input[type="text"], input[type="date"] {
56
+ background: $form_field_fail_bkg;
57
+ border-color: $form_field_border_fail;
58
+ color: $form_field_text_fail;
59
+ @include placeholder($form_field_text_fail);
60
+ &:focus {
61
+ background: $form_field_fail_bkg;
62
+ }
63
+ }
64
+ &:after {
65
+ background: $form_field_fail_bkg;
66
+ border-color: $form_field_border_fail;
67
+ }
68
+ }
69
+
70
+ // notification alerts / panels
71
+ // ------------------------------------------------------------
72
+ %default_alert_panel {
73
+ @include alert_boxes ($alert_background_color, 10, 14, 10);
74
+ }
75
+
76
+ %notification_panel {
77
+ @extend %default_alert_panel;
78
+ }
79
+
80
+ %alert_panel {
81
+ @extend %default_alert_panel;
82
+ background: $alpha_color;
83
+ color: $white;
84
+ font-weight: bold;
85
+ }
86
+
87
+ // form text
88
+ // ------------------------------------------------------------
89
+ %instructional {
90
+ color: $instructional_text;
91
+ }
92
+
93
+ %note {
94
+ @extend %instructional;
95
+ @include small;
96
+ margin-top: #{5 / $em}em;
97
+ }
98
+
99
+ %informational {
100
+ @extend %instructional;
101
+ line-height: 1.3em;
102
+ margin-bottom: 1em;
103
+ }
@@ -0,0 +1,32 @@
1
+ // Toadstool core v0.0.0.1
2
+ // This document is not to be edited as it will be versioned
3
+ // -----------------------------------------------------------------
4
+
5
+
6
+ ////////////// Form mixins ////////////////
7
+ // ---------------------------------------
8
+
9
+ @mixin field_focus {
10
+ &:hover {
11
+ border-color: $form_field_focus_border_color;
12
+ }
13
+ &:focus {
14
+ background-color: $form_field_focus_color;
15
+ border-color: $form_field_focus_border_color;
16
+ outline: none;
17
+ }
18
+ }
19
+
20
+ //////// Form settings //////////
21
+
22
+
23
+
24
+ /////////// Alert mixins //////////////
25
+ // -----------------------------------------
26
+ @mixin alert_boxes ($background_color, $padding_tb, $padding_lr, $margin_bottom) {
27
+ background-color: $background_color;
28
+ @include grid(12,12.25, $grid_uom:combo, $grid_child: alphaomega, $grid_padding_lr: $padding_lr);
29
+ padding-top: #{$padding_tb / $em}em;
30
+ padding-bottom: #{$padding_tb / $em}em;
31
+ margin-bottom: #{$margin_bottom / $em}em;
32
+ }
@@ -0,0 +1,48 @@
1
+ //
2
+ // Standardized abstract gradient color objects. NOT to be used as classes appended to a block in the HTML.
3
+ // Preferred uses include @extend .class; or repurpose the mixin within the class.
4
+ //
5
+
6
+
7
+ /////// OOCSS gradient color ////////
8
+ // ----------------------------------------------
9
+
10
+ //* Gradient color objects */
11
+ //* ----------------------- */
12
+ // %alpha_color_gradient {
13
+ // @include alpha_color_gradient;
14
+ // }
15
+ //
16
+ // %bravo_color_gradient {
17
+ // @include bravo_color_gradient;
18
+ // }
19
+ //
20
+ // %charlie_color_gradient {
21
+ // @include charlie_color_gradient;
22
+ // }
23
+ //
24
+ // %delta_color_gradient {
25
+ // @include delta_color_gradient;
26
+ // }
27
+ //
28
+ // %echo_color_gradient {
29
+ // @include echo_color_gradient;
30
+ // }
31
+ //
32
+ // %fox_color_gradient {
33
+ // @include fox_color_gradient;
34
+ // }
35
+ //
36
+ // %golf_color_gradient {
37
+ // @include golf_color_gradient;
38
+ // }
39
+ //
40
+ // %hotel_color_gradient {
41
+ // @include hotel_color_gradient;
42
+ // }
43
+ //
44
+ // %india_color_gradient {
45
+ // @include india_color_gradient;
46
+ // }
47
+
48
+ /////// OOCSS gradient color mixins ////////
@@ -0,0 +1,53 @@
1
+ // Toadstool core v0.0.0.1
2
+ // This document is not to be edited as it will be versioned
3
+ // -----------------------------------------------------------------
4
+
5
+
6
+
7
+ // example class using all mixins to support all browsers
8
+ //.gradient_box {
9
+ // @include linear_gradient_legacy_safari (#{color-stop(0%,$alpha_color), color-stop(100%,$bravo_color)});
10
+ // @include linear_gradient_w3c ($alpha_color, #{$alpha_color 0%,$bravo_color 100%});
11
+ // @include linear_gradient_legacy_ie ($alpha_color, $bravo_color);
12
+ //
13
+ //}
14
+
15
+
16
+ // requires that color values are written using #{} interpolation syntax
17
+ // example .....
18
+ // @include linear_gradient_w3c ($alpha_color, #{$alpha_color 0%,$bravo_color 100%});
19
+ // ---------------------------------------------------------------------------------------
20
+ @mixin linear_gradient_w3c ($default_color, $color_values, $prefixes: $prefix_defaults) {
21
+ background: $default_color; // default fallback
22
+ background: -webkit-linear-gradient(top, $color_values);
23
+ background: -moz-linear-gradient(top, $color_values);
24
+ background: -o-linear-gradient(top, $color_values);
25
+ background: -ms-linear-gradient(top, $color_values);
26
+ }
27
+
28
+
29
+
30
+
31
+
32
+ // requires that color values are written using #{} interpolation syntax
33
+ // example .....
34
+ // @include linear_gradient_legacy_safari (#{color-stop(0%,$alpha_color), color-stop(100%,$bravo_color)});
35
+ // ---------------------------------------------------------------------------------------
36
+ @mixin linear_gradient_legacy_safari ($color_values) {
37
+ background: -webkit-gradient(linear, left top, left bottom, #{$color_values});
38
+ }
39
+
40
+
41
+
42
+
43
+ // this is pretty old skool here, think you can figure it out
44
+ // -----------------------------------------------------------
45
+ @mixin linear_gradient_legacy_ie ($start_color, $end_color) {
46
+ // IE6 & 7 //
47
+ filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, startColorstr='#{ie_hex_str($start_color)}', endColorstr='#{ie_hex_str($end_color)}');
48
+ // IE8 & 9 //
49
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie_hex_str($start_color)}', endColorstr='#{ie_hex_str($end_color)}')";
50
+ }
51
+
52
+
53
+ // -------------------------------------------------------------------------------------------
@@ -0,0 +1,43 @@
1
+ // Toadstool core v0.0.0.1
2
+ // This document is not to be edited as it will be versioned
3
+ // -----------------------------------------------------------------
4
+
5
+
6
+ // The following gradients are designed with variable color stops and supports background images
7
+ // It is recommended to use these to build reusable objects in the SCSS
8
+ // -------------------------------------------------------------------------------------
9
+ // four color stop linear gradient with color stops and images set as variable
10
+ // ---------------------------------------------------------------
11
+ // NOTE: Place url path on single quotes, i.e. '../../images/image.png'
12
+
13
+ @mixin linear_gradient_bkgimage ($image, $position, $start_color, $color_values, $prefixes: $prefix_defaults) {
14
+ // default fallback //
15
+ background: $start_color;
16
+ background: url(#{$image}) no-repeat $position, -moz-linear-gradient(top, #{$color_values});
17
+ background: url(#{$image}) no-repeat $position, -webkit-linear-gradient(top, #{$color_values});
18
+ background: url(#{$image}) no-repeat $position, -o-linear-gradient(top, #{$color_values});
19
+ background: url(#{$image}) no-repeat $position, -ms-linear-gradient(top, #{$color_values});
20
+
21
+
22
+ // IE6 - 9 //
23
+ // ms crappy filters cannot be used with background images
24
+ // IE specific UIs will need to be engineered in the widget sass
25
+ }
26
+ //////// gradient arguments /////////
27
+
28
+
29
+
30
+
31
+ // requires that color values are written using #{} interpolation syntax
32
+ // example .....
33
+ // @include linear_gradient_bkgimage_legacy_safari (#{color-stop(0%,$alpha_color), color-stop(100%,$bravo_color)});
34
+ // ---------------------------------------------------------------------------------------
35
+ // NOTE: Place url path on single quotes, i.e. '../../images/image.png'
36
+ @mixin linear_gradient_bkgimage_legacy_safari ($image, $position, $color_values) {
37
+ background: url(#{$image}) no-repeat $position, -webkit-gradient(linear, left top, left bottom, #{$color_values});
38
+ }
39
+
40
+
41
+
42
+
43
+
@@ -0,0 +1,221 @@
1
+ //
2
+ // Standardized grid objects. NOT to be used as classes appended to a block in the HTML.
3
+ // Preferred uses include @extend .class; or repurpose the mixin within the class.
4
+ //
5
+
6
+ // grid ----------------------
7
+ %grid_display {
8
+ border: 1px solid $charlie_gray;
9
+ margin-bottom: 1em;
10
+ text-align: center;
11
+ padding: em(10) 0;
12
+ }
13
+
14
+ %grid_1 {
15
+ @include grid(1);
16
+ @media #{$tablet_portrait} {
17
+ @include grid(1, $grid_context: 10);
18
+ }
19
+ @media #{$mobile} {
20
+ @include grid(1, $grid_context: 4);
21
+ }
22
+ }
23
+
24
+ %grid_2 {
25
+ @include grid(2);
26
+ @media #{$tablet_portrait} {
27
+ @include grid(2, $grid_context: 10);
28
+ }
29
+ @media #{$mobile} {
30
+ @include grid(2, $grid_context: 4);
31
+ }
32
+ }
33
+
34
+ %grid_3 {
35
+ @include grid(3);
36
+ @media #{$tablet_portrait} {
37
+ @include grid(3, $grid_context: 10);
38
+ }
39
+ @media #{$mobile} {
40
+ @include grid(3, $grid_context: 4);
41
+ }
42
+ }
43
+
44
+ %grid_4 {
45
+ @include grid(4);
46
+ @media #{$tablet_portrait} {
47
+ @include grid(4, $grid_context: 10);
48
+ }
49
+ @media #{$mobile} {
50
+ @include grid(4, $grid_context: 4);
51
+ }
52
+ }
53
+
54
+ %grid_5 {
55
+ @include grid(5);
56
+ @media #{$tablet_portrait} {
57
+ @include grid(5, $grid_context: 10);
58
+ }
59
+ @media #{$mobile} {
60
+ @include grid(4, $grid_context: 4);
61
+ }
62
+ }
63
+
64
+ %grid_6 {
65
+ @include grid(6);
66
+ @media #{$tablet_portrait} {
67
+ @include grid(6, $grid_context: 10);
68
+ }
69
+ @media #{$mobile} {
70
+ @include grid(4, $grid_context: 4);
71
+ }
72
+ }
73
+
74
+ %grid_7 {
75
+ @include grid(7);
76
+ @media #{$tablet_portrait} {
77
+ @include grid(7, $grid_context: 10);
78
+ }
79
+ @media #{$mobile} {
80
+ @include grid(4, $grid_context: 4);
81
+ }
82
+ }
83
+
84
+ %grid_8 {
85
+ @include grid(8);
86
+ @media #{$tablet_portrait} {
87
+ @include grid(8, $grid_context: 10);
88
+ }
89
+ @media #{$mobile} {
90
+ @include grid(4, $grid_context: 4);
91
+ }
92
+ }
93
+
94
+ %grid_9 {
95
+ @include grid(9);
96
+ @media #{$tablet_portrait} {
97
+ @include grid(9, $grid_context: 10);
98
+ }
99
+ @media #{$mobile} {
100
+ @include grid(4, $grid_context: 4);
101
+ }
102
+ }
103
+
104
+ %grid_10 {
105
+ @include grid(10);
106
+ @media #{$tablet_portrait} {
107
+ @include grid(10, $grid_context: 10);
108
+ }
109
+ @media #{$mobile} {
110
+ @include grid(4, $grid_context: 4);
111
+ }
112
+ }
113
+
114
+ %grid_11 {
115
+ @include grid(11);
116
+ @media #{$tablet_portrait} {
117
+ @include grid(10, $grid_context: 10);
118
+ }
119
+ @media #{$mobile} {
120
+ @include grid(4, $grid_context: 4);
121
+ }
122
+ }
123
+
124
+ %grid_12 {
125
+ @include grid(12);
126
+ @media #{$tablet_portrait} {
127
+ @include grid(10, $grid_context: 10);
128
+ }
129
+ @media #{$mobile} {
130
+ @include grid(4, $grid_context: 4);
131
+ }
132
+ }
133
+
134
+ %grid_full {
135
+ @include full_width_block(12, $main_grid_align: left);
136
+ }
137
+
138
+ %grid_full_center {
139
+ @include full_width_block(12);
140
+ }
141
+
142
+ // push ----------------------
143
+
144
+ %push_12_1 {
145
+ @include push(12,1);
146
+ }
147
+
148
+ %push_12_2 {
149
+ @include push(12,2);
150
+ }
151
+
152
+ %push_12_3 {
153
+ @include push(12,3);
154
+ }
155
+
156
+ // suffix ----------------------
157
+
158
+ %suffix_12_1 {
159
+ @include suffix(12,1);
160
+ }
161
+
162
+ %suffix_12_2 {
163
+ @include suffix(12,2);
164
+ }
165
+
166
+ %suffix_12_3 {
167
+ @include suffix(12,3);
168
+ }
169
+
170
+ // prefix ----------------------
171
+
172
+ %prefix_12_1 {
173
+ @include prefix(12,1);
174
+ }
175
+
176
+ %prefix_12_2 {
177
+ @include prefix(12,2);
178
+ }
179
+
180
+ %prefix_12_3 {
181
+ @include prefix(12,3);
182
+ }
183
+
184
+
185
+ // push ----------------------
186
+
187
+ %push_12_1 {
188
+ @include push(12,1);
189
+ }
190
+
191
+ %push_12_2 {
192
+ @include push(12,2);
193
+ }
194
+
195
+ %push_12_3 {
196
+ @include push(12,3);
197
+ }
198
+
199
+ // pull ----------------------
200
+
201
+ %pull_12_1 {
202
+ @include pull(12,1);
203
+ }
204
+
205
+ %pull_12_2 {
206
+ @include pull(12,2);
207
+ }
208
+
209
+ %pull_12_3 {
210
+ @include pull(12,3);
211
+ }
212
+
213
+ // alpha / omega ----------------------
214
+
215
+ %alpha {
216
+ @include alpha;
217
+ }
218
+
219
+ %omega {
220
+ @include omega;
221
+ }