toadstool 0.0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. data/Gemfile +11 -0
  2. data/Rakefile +4 -0
  3. data/config.rb +42 -0
  4. data/config.ru +6 -0
  5. data/doc-src/SASS-Guidelines.md +222 -0
  6. data/doc-src/What-Is-Toadstool.md +44 -0
  7. data/doc-src/changelog.md +29 -0
  8. data/doc-src/config.md +18 -0
  9. data/doc-src/mit_license.md +7 -0
  10. data/doc-src/mixin_directory.md +17 -0
  11. data/doc-src/sass.md +4 -0
  12. data/lib/RackServer.rb +93 -0
  13. data/lib/bin/toadstool +99 -0
  14. data/public/fonts/fontawesome-webfont.eot +0 -0
  15. data/public/fonts/fontawesome-webfont.svg +255 -0
  16. data/public/fonts/fontawesome-webfont.ttf +0 -0
  17. data/public/fonts/fontawesome-webfont.woff +0 -0
  18. data/public/fonts/zocial-regular-webfont.eot +0 -0
  19. data/public/fonts/zocial-regular-webfont.svg +138 -0
  20. data/public/fonts/zocial-regular-webfont.ttf +0 -0
  21. data/public/fonts/zocial-regular-webfont.woff +0 -0
  22. data/public/images/toadstool-logo.png +0 -0
  23. data/public/javascripts/application.js +74 -0
  24. data/public/javascripts/css_browser_selector.js +8 -0
  25. data/public/javascripts/lang-apollo.js +2 -0
  26. data/public/javascripts/lang-clj.js +18 -0
  27. data/public/javascripts/lang-css.js +2 -0
  28. data/public/javascripts/lang-go.js +1 -0
  29. data/public/javascripts/lang-hs.js +2 -0
  30. data/public/javascripts/lang-lisp.js +3 -0
  31. data/public/javascripts/lang-lua.js +2 -0
  32. data/public/javascripts/lang-ml.js +2 -0
  33. data/public/javascripts/lang-n.js +4 -0
  34. data/public/javascripts/lang-proto.js +1 -0
  35. data/public/javascripts/lang-scala.js +2 -0
  36. data/public/javascripts/lang-sql.js +2 -0
  37. data/public/javascripts/lang-tex.js +1 -0
  38. data/public/javascripts/lang-vb.js +2 -0
  39. data/public/javascripts/lang-vhdl.js +3 -0
  40. data/public/javascripts/lang-wiki.js +2 -0
  41. data/public/javascripts/lang-xq.js +3 -0
  42. data/public/javascripts/lang-yaml.js +2 -0
  43. data/public/javascripts/modernizr.mods.js +22 -0
  44. data/public/javascripts/prettify.js +28 -0
  45. data/public/javascripts/selectivizr-min.js +5 -0
  46. data/public/stylesheets/style.css +615 -0
  47. data/public/stylesheets/toadstool.css +1643 -0
  48. data/readme.md +37 -0
  49. data/sass/_buttons.scss +20 -0
  50. data/sass/_config.scss +216 -0
  51. data/sass/_design.scss +6 -0
  52. data/sass/_forms.scss +18 -0
  53. data/sass/_modules.scss +12 -0
  54. data/sass/_reset.scss +5 -0
  55. data/sass/_typography.scss +93 -0
  56. data/sass/_ui_patterns.scss +0 -0
  57. data/sass/_web_fonts.scss +32 -0
  58. data/sass/buttons/_cupid_config.scss +20 -0
  59. data/sass/buttons/_minimal_config.scss +15 -0
  60. data/sass/color/_color_math.scss +63 -0
  61. data/sass/color/_extends.scss +291 -0
  62. data/sass/color/_grayscale_math.scss +10 -0
  63. data/sass/modules/example_module/_extends.scss +0 -0
  64. data/sass/modules/example_module/_mixins.scss +0 -0
  65. data/sass/modules/example_module/readme.md +96 -0
  66. data/sass/style.scss +45 -0
  67. data/sass/toadstool.scss +14 -0
  68. data/sass/ui_patterns/_color_grid.scss +286 -0
  69. data/sass/ui_patterns/_example.scss +0 -0
  70. data/toadstool.rb +84 -0
  71. data/views/abstract_colors.erb +1 -0
  72. data/views/alerts.erb +1 -0
  73. data/views/buttons.erb +1 -0
  74. data/views/color_palettes.erb +221 -0
  75. data/views/forms.erb +24 -0
  76. data/views/forms/disabled_button.erb +18 -0
  77. data/views/forms/password_input.erb +22 -0
  78. data/views/forms/primary_button.erb +18 -0
  79. data/views/forms/username_input.erb +23 -0
  80. data/views/grid.erb +127 -0
  81. data/views/grid24.erb +59 -0
  82. data/views/grids/grid_arguments.erb +22 -0
  83. data/views/grids/use_definition.erb +12 -0
  84. data/views/layout.erb +58 -0
  85. data/views/modules/example_module/module.erb +0 -0
  86. data/views/modules/example_module/module.js +0 -0
  87. data/views/modules/example_module/readme.md +29 -0
  88. data/views/modules/example_module/view.erb +0 -0
  89. data/views/modules/readme.md +10 -0
  90. data/views/semantic_colors.erb +1 -0
  91. data/views/shared/_html_example.erb +31 -0
  92. data/views/shared/_main_footer.erb +12 -0
  93. data/views/shared/_main_header.erb +4 -0
  94. data/views/shared/_main_nav.erb +16 -0
  95. data/views/shared/_sass_example.erb +10 -0
  96. data/views/shared/_toadstool_subheader.erb +6 -0
  97. data/views/typography.erb +17 -0
  98. data/views/typography/body_copy.erb +19 -0
  99. data/views/typography/body_links.erb +18 -0
  100. data/views/typography/general_typography.erb +19 -0
  101. data/views/typography/headings.erb +65 -0
  102. data/views/typography/vertical_rhythm.erb +13 -0
  103. data/views/typography/web_fonts.erb +11 -0
  104. data/views/ui_patterns/example.erb +1 -0
  105. data/views/ui_patterns/forms/text_input.erb +10 -0
  106. data/views/ui_patterns/readme.md +14 -0
  107. metadata +216 -0
@@ -0,0 +1,20 @@
1
+ // To edit the default configs for the 'cupid-green' buttons,
2
+ // simply uncomment the corrosponding veriable and edit.
3
+ // -------------------------------------------------------------------------------
4
+
5
+ // $cupid_background: orange;
6
+ // $cupid_gradient: $cupid_background 0%, #63a62f 100%;
7
+ // $cupid_background_hover: darken($cupid_background, 4);
8
+ // $cupid_gradient_hover: $cupid_background_hover 0%, #5e9e2e 100%;
9
+ // $cupid_border_color: #63a62f #63a62f #5b992b #63a62f;
10
+ // $cupid_border_radius: em(3);
11
+ // $cupid_inset_box_shadow: #96ca6d;
12
+ // $cupid_inset_box_shadow_hover: #8dbf67;
13
+ // $cupid_inset_box_shadow_active: #548c29;
14
+ // $cupid_text_color: #fff;
15
+ // $cupid_text_weight: bold;
16
+ // $cupid_font_family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
17
+ // $cupid_font_size: em(12);
18
+ // $cupid_padding: em(7) 0 em(8) 0;
19
+ // $cupid_text_shadow_color: #4c9021;
20
+ // $cupid_width: em(150);
@@ -0,0 +1,15 @@
1
+ // To edit the default configs for the 'minimal' buttons,
2
+ // simply uncomment the corrosponding veriable and edit.
3
+ // -------------------------------------------------------------------------------
4
+
5
+ // $minimal_background: #e3e3e3;
6
+ // $minimal_border_color: #bbb;
7
+ // $minimal_border_radius: em(3);
8
+ // $minimal_inset_shadow_color: #f6f6f6;
9
+ // $minimal_font_color: #333;
10
+ // $minimal_font_weight: bold;
11
+ // $minimal_font_size: em(12);
12
+ // $minimal_font_family: "helvetica neue", helvetica, arial, sans-serif;
13
+ // $minimal_padding: em(8) 0 em(9);
14
+ // $minimal_text_shadow: 0 1px 0 #fff;
15
+ // $minimal_width: em(150);
@@ -0,0 +1,63 @@
1
+ @import "stipe/color/default_color_pallet"; // do not edit, necessary dependency for cascading defaults
2
+
3
+ $alpha_color:$alpha_primary;
4
+ $alpha_color_bravo:scale-color($alpha_color,$lightness:10%);
5
+ $alpha_color_charlie:scale-color($alpha_color,$lightness:20%);
6
+ $alpha_color_delta:scale-color($alpha_color,$lightness:30%);
7
+ $alpha_color_echo:scale-color($alpha_color,$lightness:40%);
8
+ $alpha_color_fox:scale-color($alpha_color,$lightness:50%);
9
+ $alpha_color_golf:scale-color($alpha_color,$lightness:60%);
10
+ $alpha_color_hotel:scale-color($alpha_color,$lightness:70%);
11
+ $alpha_color_india:scale-color($alpha_color,$lightness:80%);
12
+ $alpha_color_juliet:scale-color($alpha_color,$lightness:90%);
13
+
14
+ $bravo_color:$bravo_primary;
15
+ $bravo_color_bravo:scale-color($bravo_color,$lightness:10%);
16
+ $bravo_color_charlie:scale-color($bravo_color,$lightness:20%);
17
+ $bravo_color_delta:scale-color($bravo_color,$lightness:30%);
18
+ $bravo_color_echo:scale-color($bravo_color,$lightness:40%);
19
+ $bravo_color_fox:scale-color($bravo_color,$lightness:50%);
20
+ $bravo_color_golf:scale-color($bravo_color,$lightness:60%);
21
+ $bravo_color_hotel:scale-color($bravo_color,$lightness:70%);
22
+ $bravo_color_india:scale-color($bravo_color,$lightness:80%);
23
+ $bravo_color_juliet:scale-color($bravo_color,$lightness:90%);
24
+
25
+ $charlie_color:$charlie_primary;
26
+ $charlie_color_bravo:scale-color($charlie_color,$lightness:10%);
27
+ $charlie_color_charlie:scale-color($charlie_color,$lightness:20%);
28
+ $charlie_color_delta:scale-color($charlie_color,$lightness:30%);
29
+ $charlie_color_echo:scale-color($charlie_color,$lightness:40%);
30
+ $charlie_color_fox:scale-color($charlie_color,$lightness:50%);
31
+ $charlie_color_golf:scale-color($charlie_color,$lightness:60%);
32
+ $charlie_color_hotel:scale-color($charlie_color,$lightness:70%);
33
+ $charlie_color_india:scale-color($charlie_color,$lightness:80%);
34
+ $charlie_color_juliet:scale-color($charlie_color,$lightness:90%);
35
+
36
+ $delta_color:$delta_primary;
37
+ $delta_color_bravo:scale-color($delta_color,$lightness:10%);
38
+ $delta_color_charlie:scale-color($delta_color,$lightness:20%);
39
+ $delta_color_delta:scale-color($delta_color,$lightness:30%);
40
+ $delta_color_echo:scale-color($delta_color,$lightness:40%);
41
+ $delta_color_fox:scale-color($delta_color,$lightness:50%);
42
+ $delta_color_golf:scale-color($delta_color,$lightness:60%);
43
+ $delta_color_hotel:scale-color($delta_color,$lightness:70%);
44
+ $delta_color_india:scale-color($delta_color,$lightness:80%);
45
+ $delta_color_juliet:scale-color($delta_color,$lightness:90%);
46
+
47
+ $echo_color:$echo_primary;
48
+ $echo_color_bravo:scale-color($echo_color,$lightness:10%);
49
+ $echo_color_charlie:scale-color($echo_color,$lightness:20%);
50
+ $echo_color_delta:scale-color($echo_color,$lightness:30%);
51
+ $echo_color_echo:scale-color($echo_color,$lightness:40%);
52
+ $echo_color_fox:scale-color($echo_color,$lightness:50%);
53
+ $echo_color_golf:scale-color($echo_color,$lightness:60%);
54
+ $echo_color_hotel:scale-color($echo_color,$lightness:70%);
55
+ $echo_color_india:scale-color($echo_color,$lightness:80%);
56
+ $echo_color_juliet:scale-color($echo_color,$lightness:90%);
57
+
58
+
59
+
60
+
61
+
62
+
63
+
@@ -0,0 +1,291 @@
1
+ @import "../config";
2
+
3
+ /////// OOCSS color blocks ////////
4
+ // ----------------------------------------------
5
+
6
+ //* Standard grayscale objects */
7
+ //* -------------------------- */
8
+ %white {
9
+ background-color: $white;
10
+ }
11
+
12
+ %alpha_gray {
13
+ background-color: $alpha_gray;
14
+ }
15
+
16
+ %bravo_gray {
17
+ background-color: $bravo_gray;
18
+ }
19
+
20
+ %charlie_gray {
21
+ background-color: $charlie_gray;
22
+ }
23
+
24
+ %delta_gray {
25
+ background-color: $delta_gray;
26
+ }
27
+
28
+ %echo_gray {
29
+ background-color: $echo_gray;
30
+ }
31
+
32
+ %fox_gray {
33
+ background-color: $fox_gray;
34
+ }
35
+
36
+ %golf_gray {
37
+ background-color: $golf_gray;
38
+ }
39
+
40
+ %hotel_gray {
41
+ background-color: $hotel_gray;
42
+ }
43
+
44
+ %india_gray {
45
+ background-color: $india_gray;
46
+ }
47
+
48
+
49
+
50
+ //* Standard color objects */
51
+ //* ---------------------- */
52
+ %alpha_color {
53
+ background-color: $alpha_color;
54
+ }
55
+ %alpha_color_bravo {
56
+ background-color: $alpha_color_bravo;
57
+ }
58
+ %alpha_color_charlie {
59
+ background-color: $alpha_color_charlie;
60
+ }
61
+ %alpha_color_delta {
62
+ background-color: $alpha_color_delta;
63
+ }
64
+ %alpha_color_echo {
65
+ background-color: $alpha_color_echo;
66
+ }
67
+ %alpha_color_fox {
68
+ background-color: $alpha_color_fox;
69
+ }
70
+ %alpha_color_golf {
71
+ background-color: $alpha_color_golf;
72
+ }
73
+ %alpha_color_hotel {
74
+ background-color: $alpha_color_hotel;
75
+ }
76
+ %alpha_color_india {
77
+ background-color: $alpha_color_india;
78
+ }
79
+ %alpha_color_juliet {
80
+ background-color: $alpha_color_juliet;
81
+ }
82
+
83
+
84
+
85
+
86
+
87
+ %bravo_color {
88
+ background-color: $bravo_color;
89
+ }
90
+ %bravo_color_bravo {
91
+ background-color: $bravo_color_bravo;
92
+ }
93
+ %bravo_color_charlie {
94
+ background-color: $bravo_color_charlie;
95
+ }
96
+ %bravo_color_delta {
97
+ background-color: $bravo_color_delta;
98
+ }
99
+ %bravo_color_echo {
100
+ background-color: $bravo_color_echo;
101
+ }
102
+ %bravo_color_fox {
103
+ background-color: $bravo_color_fox;
104
+ }
105
+ %bravo_color_golf {
106
+ background-color: $bravo_color_golf;
107
+ }
108
+ %bravo_color_hotel {
109
+ background-color: $bravo_color_hotel;
110
+ }
111
+ %bravo_color_india {
112
+ background-color: $bravo_color_india;
113
+ }
114
+ %bravo_color_juliet {
115
+ background-color: $bravo_color_juliet;
116
+ }
117
+
118
+
119
+
120
+
121
+
122
+
123
+ %charlie_color {
124
+ background-color: $charlie_color;
125
+ }
126
+ %charlie_color_bravo {
127
+ background-color: $charlie_color_bravo;
128
+ }
129
+ %charlie_color_charlie {
130
+ background-color: $charlie_color_charlie;
131
+ }
132
+ %charlie_color_delta {
133
+ background-color: $charlie_color_delta;
134
+ }
135
+ %charlie_color_echo {
136
+ background-color: $charlie_color_echo;
137
+ }
138
+ %charlie_color_fox {
139
+ background-color: $charlie_color_fox;
140
+ }
141
+ %charlie_color_golf {
142
+ background-color: $charlie_color_golf;
143
+ }
144
+ %charlie_color_hotel {
145
+ background-color: $charlie_color_hotel;
146
+ }
147
+ %charlie_color_india {
148
+ background-color: $charlie_color_india;
149
+ }
150
+ %charlie_color_juliet {
151
+ background-color: $charlie_color_juliet;
152
+ }
153
+
154
+
155
+
156
+
157
+
158
+
159
+ %delta_color {
160
+ background-color: $delta_color;
161
+ }
162
+ %delta_color_bravo {
163
+ background-color: $delta_color_bravo;
164
+ }
165
+ %delta_color_charlie {
166
+ background-color: $delta_color_charlie;
167
+ }
168
+ %delta_color_delta {
169
+ background-color: $delta_color_delta;
170
+ }
171
+ %delta_color_echo {
172
+ background-color: $delta_color_echo;
173
+ }
174
+ %delta_color_fox {
175
+ background-color: $delta_color_fox;
176
+ }
177
+ %delta_color_golf {
178
+ background-color: $delta_color_golf;
179
+ }
180
+ %delta_color_hotel {
181
+ background-color: $delta_color_hotel;
182
+ }
183
+ %delta_color_india {
184
+ background-color: $delta_color_india;
185
+ }
186
+ %delta_color_juliet {
187
+ background-color: $delta_color_juliet;
188
+ }
189
+
190
+
191
+
192
+
193
+
194
+
195
+ %echo_color {
196
+ background-color: $echo_color;
197
+ }
198
+ %echo_color_bravo {
199
+ background-color: $echo_color_bravo;
200
+ }
201
+ %echo_color_charlie {
202
+ background-color: $echo_color_charlie;
203
+ }
204
+ %echo_color_delta {
205
+ background-color: $echo_color_delta;
206
+ }
207
+ %echo_color_echo {
208
+ background-color: $echo_color_echo;
209
+ }
210
+ %echo_color_fox {
211
+ background-color: $echo_color_fox;
212
+ }
213
+ %echo_color_golf {
214
+ background-color: $echo_color_golf;
215
+ }
216
+ %echo_color_hotel {
217
+ background-color: $echo_color_hotel;
218
+ }
219
+ %echo_color_india {
220
+ background-color: $echo_color_india;
221
+ }
222
+ %echo_color_juliet {
223
+ background-color: $echo_color_juliet;
224
+ }
225
+
226
+
227
+ /////// semantic color blocks ////////
228
+ // ----------------------------------------------
229
+ %white {
230
+ background: $white;
231
+ }
232
+
233
+ %shadow_color {
234
+ background: $shadow_color;
235
+ }
236
+
237
+ %primary_header_color {
238
+ background: $primary_header_color;
239
+ }
240
+
241
+ %heading_font_weight {
242
+ background: $heading_font_weight;
243
+ }
244
+
245
+ %primary_text {
246
+ background: $primary_text;
247
+ }
248
+
249
+ %href_color {
250
+ background: $href_color;
251
+ }
252
+
253
+ %ins_color {
254
+ background: $ins_color;
255
+ }
256
+
257
+ %mark_color {
258
+ background: $mark_color;
259
+ }
260
+
261
+ %webkit_tap_hightlight {
262
+ background: $webkit_tap_hightlight;
263
+ }
264
+
265
+ %selection_color {
266
+ background: $selection_color;
267
+ }
268
+
269
+ %selection_text_color {
270
+ background: $selection_text_color;
271
+ }
272
+
273
+ %border_color {
274
+ background: $border_color;
275
+ }
276
+
277
+ %primary_button_border_color {
278
+ background: $primary_button_border_color;
279
+ }
280
+
281
+ %secondary_button_border_color {
282
+ background: $secondary_button_border_color;
283
+ }
284
+
285
+ %button_text {
286
+ background: $button_text;
287
+ }
288
+
289
+ %standard_hr_color {
290
+ background: $standard_hr_color;
291
+ }
@@ -0,0 +1,10 @@
1
+ /////// generic b/w blocks ////////
2
+ // ----------------------------------------------
3
+ $bravo_gray:scale-color($alpha_gray, $lightness: 10%);
4
+ $charlie_gray:scale-color($alpha_gray, $lightness: 20%);
5
+ $delta_gray:scale-color($alpha_gray, $lightness: 30%);
6
+ $echo_gray:scale-color($alpha_gray, $lightness: 40%);
7
+ $fox_gray:scale-color($alpha_gray, $lightness: 50%);
8
+ $golf_gray:scale-color($alpha_gray, $lightness: 60%);
9
+ $hotel_gray:scale-color($alpha_gray, $lightness: 70%);
10
+ $india_gray:scale-color($alpha_gray, $lightness: 80%);
File without changes
File without changes
@@ -0,0 +1,96 @@
1
+ #Build a module
2
+ When coding the SCSS of a module consider what is repeatable and what is variable. Leave yourself room for improvement. When creating a mixin consider using arguments so that when the mixin is used you have variations available to you.
3
+
4
+ A well engineered SCSS module will allow for flexible application to the designated markup block without duplication of CSS styles. If you find yourself over-riding CSS declarations within a selector from what the mixin inserts consider using arguments or using a silent extend.
5
+
6
+ Each Sass module folder should contain a `mixins.scss` file and a `extends.scss` file. In `sass/_modules.scss` add your created mixins and extends in the appropriate list.
7
+
8
+ ##Definition of a module
9
+ A module is a self-contained series of design elements and possibly UI patterns. Regardless of fixed, fluid or responsive experience, the module itself does not have a defined space. It should always take up 100% width and it's height dictated by the content contined within.
10
+
11
+ Every module will have an independent Sass file for UI constuction.
12
+
13
+ ##Know when you are doing it wrong
14
+ If you find yourself coding elemental and/or UI patterns within a module, this should be a smell to refactor.
15
+
16
+ ###Here is a simple example of a reusable module
17
+ ```scss
18
+ @mixin information_panel($cols: 12, $grid_uom: em) {
19
+ @include grid(12, $col_width: $cols, $grid_padding: 10, $grid_border: 1, $grid_uom: $grid_uom);
20
+ @include standard_rounded_border;
21
+ padding-top: em(10);
22
+ padding-bottom: em(10);
23
+ &:first-child {
24
+ @include alpha;
25
+ }
26
+ &:last-child {
27
+ @include omega;
28
+ }
29
+ h2 {
30
+ @include panel_header;
31
+ }
32
+ article {
33
+ padding: em(20) em(10);
34
+ border-bottom: 1px solid $delta_grey;
35
+ h3 {
36
+ @include medium;
37
+ font-weight: bold;
38
+ margin-bottom: 1em;
39
+ }
40
+ &:last-child {
41
+ border: 0;
42
+ }
43
+ }
44
+ .sub_article_push {
45
+ margin-left: em(10);
46
+ }
47
+ }
48
+ ```
49
+
50
+ ##Silent extends
51
+ Silent extends are the perfect compliment to Sass mixins. Mixins are awesome, but their largest fault is that they copy all the CSS into the newly created selector. This has brought on a lot of criticism of Sass. The solution, silent extends.
52
+
53
+ The idea beind this tool is that you can create static class from mixins and/or other CSS declarations and these new classes do not manifest themselves in the processed CSS until extended.
54
+
55
+ ####Example Sass using silent extends
56
+ ```scss
57
+ %kung {
58
+ background: green;
59
+ color: yellow;
60
+ }
61
+
62
+ %foo {
63
+ background: orange;
64
+ color: red;
65
+ font-size: 12px;
66
+ }
67
+
68
+ .foo_one {
69
+ @extend %foo;
70
+ }
71
+
72
+ .foo_two {
73
+ @extend %foo;
74
+ }
75
+ ```
76
+
77
+ ####Output CSS
78
+ ```css
79
+ .foo_one, .foo_two {
80
+ background: orange;
81
+ color: red;
82
+ font-size: 12px;
83
+ }
84
+ ```
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+