pho-utensil 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/README.rdoc +4 -0
  2. data/Rakefile +47 -0
  3. data/bin/utensil +7 -0
  4. data/lib/utensil-app.rb +159 -0
  5. data/public/css/blueprint/ie.css +28 -0
  6. data/public/css/blueprint/plugins/fancy-type/screen.css +71 -0
  7. data/public/css/blueprint/print.css +30 -0
  8. data/public/css/blueprint/screen.css +252 -0
  9. data/public/css/blueprint/src/forms.css +49 -0
  10. data/public/css/blueprint/src/grid.css +269 -0
  11. data/public/css/blueprint/src/grid.png +0 -0
  12. data/public/css/blueprint/src/ie.css +61 -0
  13. data/public/css/blueprint/src/print.css +85 -0
  14. data/public/css/blueprint/src/reset.css +38 -0
  15. data/public/css/blueprint/src/typography.css +105 -0
  16. data/public/css/impromptu.css +318 -0
  17. data/public/css/spared.css +99 -0
  18. data/public/icons/script_delete.png +0 -0
  19. data/public/icons/script_edit.png +0 -0
  20. data/public/icons/script_error.png +0 -0
  21. data/public/icons/script_go.png +0 -0
  22. data/public/img/purzen_Cartoon_spatula.png +0 -0
  23. data/public/js/spared-config.js +126 -0
  24. data/public/js/spared-examples.js +13 -0
  25. data/public/js/spared-prefixes.js +85 -0
  26. data/public/js/spared-templates.js +9 -0
  27. data/public/js/spared.js +190 -0
  28. data/public/lib/jquery-1.2.6.js +3549 -0
  29. data/public/lib/jquery-impromptu.1.5.js +133 -0
  30. data/public/lib/jquery.ui.all.js +9639 -0
  31. data/public/rq/list-properties-of-type.rq +9 -0
  32. data/public/rq/list-properties.rq +7 -0
  33. data/public/rq/list-types.rq +7 -0
  34. data/views/admin.erb +37 -0
  35. data/views/configure.erb +4 -0
  36. data/views/enrich.erb +35 -0
  37. data/views/explore.erb +1 -0
  38. data/views/index.erb +33 -0
  39. data/views/layout.erb +53 -0
  40. data/views/spared.erb +66 -0
  41. data/views/update.erb +28 -0
  42. data/views/upload.erb +35 -0
  43. metadata +117 -0
@@ -0,0 +1,49 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ forms.css
4
+ * Sets up some default styling for forms
5
+ * Gives you classes to enhance your forms
6
+
7
+ Usage:
8
+ * For text fields, use class .title or .text
9
+
10
+ -------------------------------------------------------------- */
11
+
12
+ label { font-weight: bold; }
13
+ fieldset { padding:1.4em; margin: 0 0 1.5em 0; border: 1px solid #ccc; }
14
+ legend { font-weight: bold; font-size:1.2em; }
15
+
16
+
17
+ /* Form fields
18
+ -------------------------------------------------------------- */
19
+
20
+ input.text, input.title,
21
+ textarea, select {
22
+ margin:0.5em 0;
23
+ border:1px solid #bbb;
24
+ }
25
+
26
+ input.text:focus, input.title:focus,
27
+ textarea:focus, select:focus {
28
+ border:1px solid #666;
29
+ }
30
+
31
+ input.text,
32
+ input.title { width: 300px; padding:5px; }
33
+ input.title { font-size:1.5em; }
34
+ textarea { width: 390px; height: 250px; padding:5px; }
35
+
36
+
37
+ /* Success, notice and error boxes
38
+ -------------------------------------------------------------- */
39
+
40
+ .error,
41
+ .notice,
42
+ .success { padding: .8em; margin-bottom: 1em; border: 2px solid #ddd; }
43
+
44
+ .error { background: #FBE3E4; color: #8a1f11; border-color: #FBC2C4; }
45
+ .notice { background: #FFF6BF; color: #514721; border-color: #FFD324; }
46
+ .success { background: #E6EFC2; color: #264409; border-color: #C6D880; }
47
+ .error a { color: #8a1f11; }
48
+ .notice a { color: #514721; }
49
+ .success a { color: #264409; }
@@ -0,0 +1,269 @@
1
+ /* --------------------------------------------------------------
2
+ grid.css - mirror version of src/grid.css
3
+ -------------------------------------------------------------- */
4
+
5
+ /* A container should group all your columns. */
6
+ .container {
7
+ width: 950px;
8
+ margin: 0 auto;
9
+ }
10
+
11
+ /* Use this class on any div.span / container to see the grid. */
12
+ .showgrid {
13
+ background: url(src/grid.png);
14
+ }
15
+
16
+
17
+ /* Columns
18
+ -------------------------------------------------------------- */
19
+
20
+ /* Sets up basic grid floating and margin. */
21
+ .column, div.span-1, div.span-2, div.span-3, div.span-4, div.span-5, div.span-6, div.span-7, div.span-8, div.span-9, div.span-10, div.span-11, div.span-12, div.span-13, div.span-14, div.span-15, div.span-16, div.span-17, div.span-18, div.span-19, div.span-20, div.span-21, div.span-22, div.span-23, div.span-24 {
22
+ float: left;
23
+ margin-right: 10px;
24
+ }
25
+
26
+ /* The last column in a row needs this class. */
27
+ .last, div.last { margin-right: 0; }
28
+
29
+ /* Use these classes to set the width of a column. */
30
+ .span-1 {width: 30px;}
31
+
32
+ .span-2 {width: 70px;}
33
+ .span-3 {width: 110px;}
34
+ .span-4 {width: 150px;}
35
+ .span-5 {width: 190px;}
36
+ .span-6 {width: 230px;}
37
+ .span-7 {width: 270px;}
38
+ .span-8 {width: 310px;}
39
+ .span-9 {width: 350px;}
40
+ .span-10 {width: 390px;}
41
+ .span-11 {width: 430px;}
42
+ .span-12 {width: 470px;}
43
+ .span-13 {width: 510px;}
44
+ .span-14 {width: 550px;}
45
+ .span-15 {width: 590px;}
46
+ .span-16 {width: 630px;}
47
+ .span-17 {width: 670px;}
48
+ .span-18 {width: 710px;}
49
+ .span-19 {width: 750px;}
50
+ .span-20 {width: 790px;}
51
+ .span-21 {width: 830px;}
52
+ .span-22 {width: 870px;}
53
+ .span-23 {width: 910px;}
54
+ .span-24, div.span-24 { width:950px; margin:0; }
55
+
56
+ /* Use these classes to set the width of an input. */
57
+ input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 {
58
+ border-left-width: 1px!important;
59
+ border-right-width: 1px!important;
60
+ padding-left: 5px!important;
61
+ padding-right: 5px!important;
62
+ }
63
+
64
+ input.span-1, textarea.span-1 { width: 18px!important; }
65
+ input.span-2, textarea.span-2 { width: 58px!important; }
66
+ input.span-3, textarea.span-3 { width: 98px!important; }
67
+ input.span-4, textarea.span-4 { width: 138px!important; }
68
+ input.span-5, textarea.span-5 { width: 178px!important; }
69
+ input.span-6, textarea.span-6 { width: 218px!important; }
70
+ input.span-7, textarea.span-7 { width: 258px!important; }
71
+ input.span-8, textarea.span-8 { width: 298px!important; }
72
+ input.span-9, textarea.span-9 { width: 338px!important; }
73
+ input.span-10, textarea.span-10 { width: 378px!important; }
74
+ input.span-11, textarea.span-11 { width: 418px!important; }
75
+ input.span-12, textarea.span-12 { width: 458px!important; }
76
+ input.span-13, textarea.span-13 { width: 498px!important; }
77
+ input.span-14, textarea.span-14 { width: 538px!important; }
78
+ input.span-15, textarea.span-15 { width: 578px!important; }
79
+ input.span-16, textarea.span-16 { width: 618px!important; }
80
+ input.span-17, textarea.span-17 { width: 658px!important; }
81
+ input.span-18, textarea.span-18 { width: 698px!important; }
82
+ input.span-19, textarea.span-19 { width: 738px!important; }
83
+ input.span-20, textarea.span-20 { width: 778px!important; }
84
+ input.span-21, textarea.span-21 { width: 818px!important; }
85
+ input.span-22, textarea.span-22 { width: 858px!important; }
86
+ input.span-23, textarea.span-23 { width: 898px!important; }
87
+ input.span-24, textarea.span-24 { width: 938px!important; }
88
+
89
+ /* Add these to a column to append empty cols. */
90
+
91
+ .append-1 { padding-right: 40px;}
92
+ .append-2 { padding-right: 80px;}
93
+ .append-3 { padding-right: 120px;}
94
+ .append-4 { padding-right: 160px;}
95
+ .append-5 { padding-right: 200px;}
96
+ .append-6 { padding-right: 240px;}
97
+ .append-7 { padding-right: 280px;}
98
+ .append-8 { padding-right: 320px;}
99
+ .append-9 { padding-right: 360px;}
100
+ .append-10 { padding-right: 400px;}
101
+ .append-11 { padding-right: 440px;}
102
+ .append-12 { padding-right: 480px;}
103
+ .append-13 { padding-right: 520px;}
104
+ .append-14 { padding-right: 560px;}
105
+ .append-15 { padding-right: 600px;}
106
+ .append-16 { padding-right: 640px;}
107
+ .append-17 { padding-right: 680px;}
108
+ .append-18 { padding-right: 720px;}
109
+ .append-19 { padding-right: 760px;}
110
+ .append-20 { padding-right: 800px;}
111
+ .append-21 { padding-right: 840px;}
112
+ .append-22 { padding-right: 880px;}
113
+ .append-23 { padding-right: 920px;}
114
+
115
+ /* Add these to a column to prepend empty cols. */
116
+
117
+ .prepend-1 { padding-left: 40px;}
118
+ .prepend-2 { padding-left: 80px;}
119
+ .prepend-3 { padding-left: 120px;}
120
+ .prepend-4 { padding-left: 160px;}
121
+ .prepend-5 { padding-left: 200px;}
122
+ .prepend-6 { padding-left: 240px;}
123
+ .prepend-7 { padding-left: 280px;}
124
+ .prepend-8 { padding-left: 320px;}
125
+ .prepend-9 { padding-left: 360px;}
126
+ .prepend-10 { padding-left: 400px;}
127
+ .prepend-11 { padding-left: 440px;}
128
+ .prepend-12 { padding-left: 480px;}
129
+ .prepend-13 { padding-left: 520px;}
130
+ .prepend-14 { padding-left: 560px;}
131
+ .prepend-15 { padding-left: 600px;}
132
+ .prepend-16 { padding-left: 640px;}
133
+ .prepend-17 { padding-left: 680px;}
134
+ .prepend-18 { padding-left: 720px;}
135
+ .prepend-19 { padding-left: 760px;}
136
+ .prepend-20 { padding-left: 800px;}
137
+ .prepend-21 { padding-left: 840px;}
138
+ .prepend-22 { padding-left: 880px;}
139
+ .prepend-23 { padding-left: 920px;}
140
+
141
+
142
+ /* Border on right hand side of a column. */
143
+ div.border {
144
+ padding-right: 4px;
145
+ margin-right: 5px;
146
+ border-right: 1px solid #eee;
147
+ }
148
+
149
+ /* Border with more whitespace, spans one column. */
150
+ div.colborder {
151
+ padding-right: 24px;
152
+ margin-right: 25px;
153
+ border-right: 1px solid #eee;
154
+ }
155
+
156
+
157
+ /* Use these classes on an element to push it into the
158
+ next column, or to pull it into the previous column. */
159
+
160
+
161
+ .pull-1 { margin-left: -40px; }
162
+ .pull-2 { margin-left: -80px; }
163
+ .pull-3 { margin-left: -120px; }
164
+ .pull-4 { margin-left: -160px; }
165
+ .pull-5 { margin-left: -200px; }
166
+ .pull-6 { margin-left: -240px; }
167
+ .pull-7 { margin-left: -280px; }
168
+ .pull-8 { margin-left: -320px; }
169
+ .pull-9 { margin-left: -360px; }
170
+ .pull-10 { margin-left: -400px; }
171
+ .pull-11 { margin-left: -440px; }
172
+ .pull-12 { margin-left: -480px; }
173
+ .pull-13 { margin-left: -520px; }
174
+ .pull-14 { margin-left: -560px; }
175
+ .pull-15 { margin-left: -600px; }
176
+ .pull-16 { margin-left: -640px; }
177
+ .pull-17 { margin-left: -680px; }
178
+ .pull-18 { margin-left: -720px; }
179
+ .pull-19 { margin-left: -760px; }
180
+ .pull-20 { margin-left: -800px; }
181
+ .pull-21 { margin-left: -840px; }
182
+ .pull-22 { margin-left: -880px; }
183
+ .pull-23 { margin-left: -920px; }
184
+ .pull-24 { margin-left: -960px; }
185
+
186
+ .pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float: left; position:relative;}
187
+
188
+
189
+ .push-1 { margin: 0 -40px 1.5em 40px; }
190
+ .push-2 { margin: 0 -80px 1.5em 80px; }
191
+ .push-3 { margin: 0 -120px 1.5em 120px; }
192
+ .push-4 { margin: 0 -160px 1.5em 160px; }
193
+ .push-5 { margin: 0 -200px 1.5em 200px; }
194
+ .push-6 { margin: 0 -240px 1.5em 240px; }
195
+ .push-7 { margin: 0 -280px 1.5em 280px; }
196
+ .push-8 { margin: 0 -320px 1.5em 320px; }
197
+ .push-9 { margin: 0 -360px 1.5em 360px; }
198
+ .push-10 { margin: 0 -400px 1.5em 400px; }
199
+ .push-11 { margin: 0 -440px 1.5em 440px; }
200
+ .push-12 { margin: 0 -480px 1.5em 480px; }
201
+ .push-13 { margin: 0 -520px 1.5em 520px; }
202
+ .push-14 { margin: 0 -560px 1.5em 560px; }
203
+ .push-15 { margin: 0 -600px 1.5em 600px; }
204
+ .push-16 { margin: 0 -640px 1.5em 640px; }
205
+ .push-17 { margin: 0 -680px 1.5em 680px; }
206
+ .push-18 { margin: 0 -720px 1.5em 720px; }
207
+ .push-19 { margin: 0 -760px 1.5em 760px; }
208
+ .push-20 { margin: 0 -800px 1.5em 800px; }
209
+ .push-21 { margin: 0 -840px 1.5em 840px; }
210
+ .push-22 { margin: 0 -880px 1.5em 880px; }
211
+ .push-23 { margin: 0 -920px 1.5em 920px; }
212
+ .push-24 { margin: 0 -960px 1.5em 960px; }
213
+
214
+ .push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float: right; position:relative;}
215
+
216
+
217
+ /* Misc classes and elements
218
+ -------------------------------------------------------------- */
219
+
220
+ /* In case you need to add a gutter above/below an element */
221
+ .prepend-top {
222
+ margin-top:1.5em;
223
+ }
224
+ .append-bottom {
225
+ margin-bottom:1.5em;
226
+ }
227
+
228
+ /* Use a .box to create a padded box inside a column. */
229
+ .box {
230
+ padding: 1.5em;
231
+ margin-bottom: 1.5em;
232
+ background: #E5ECF9;
233
+ }
234
+
235
+ /* Use this to create a horizontal ruler across a column. */
236
+ hr {
237
+ background: #ddd;
238
+ color: #ddd;
239
+ clear: both;
240
+ float: none;
241
+ width: 100%;
242
+ height: .1em;
243
+ margin: 0 0 1.45em;
244
+ border: none;
245
+ }
246
+ hr.space {
247
+ background: #fff;
248
+ color: #fff;
249
+ }
250
+
251
+
252
+ /* Clearing floats without extra markup
253
+ Based on How To Clear Floats Without Structural Markup by PiE
254
+ [http://www.positioniseverything.net/easyclearing.html] */
255
+
256
+ .clearfix:after, .container:after {
257
+ content: "\0020";
258
+ display: block;
259
+ height: 0;
260
+ clear: both;
261
+ visibility: hidden;
262
+ overflow:hidden;
263
+ }
264
+ .clearfix, .container {display: block;}
265
+
266
+ /* Regular clearing
267
+ apply to column that should drop below previous ones. */
268
+
269
+ .clear { clear:both; }
@@ -0,0 +1,61 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ ie.css
4
+
5
+ Contains every hack for Internet Explorer,
6
+ so that our core files stay sweet and nimble.
7
+
8
+ -------------------------------------------------------------- */
9
+
10
+ /* Make sure the layout is centered in IE5 */
11
+ body { text-align: center; }
12
+ .container { text-align: left; }
13
+
14
+ /* Fixes IE margin bugs */
15
+ * html .column, * html div.span-1, * html div.span-2,
16
+ * html div.span-3, * html div.span-4, * html div.span-5,
17
+ * html div.span-6, * html div.span-7, * html div.span-8,
18
+ * html div.span-9, * html div.span-10, * html div.span-11,
19
+ * html div.span-12, * html div.span-13, * html div.span-14,
20
+ * html div.span-15, * html div.span-16, * html div.span-17,
21
+ * html div.span-18, * html div.span-19, * html div.span-20,
22
+ * html div.span-21, * html div.span-22, * html div.span-23,
23
+ * html div.span-24 { overflow-x: hidden; }
24
+
25
+
26
+ /* Elements
27
+ -------------------------------------------------------------- */
28
+
29
+ /* Fixes incorrect styling of legend in IE6. */
30
+ * html legend { margin:0px -8px 16px 0; padding:0; }
31
+
32
+ /* Fixes incorrect placement of ol numbers in IE6/7. */
33
+ ol { margin-left:2em; }
34
+
35
+ /* Fixes wrong line-height on sup/sub in IE. */
36
+ sup { vertical-align: text-top; }
37
+ sub { vertical-align: text-bottom; }
38
+
39
+ /* Fixes IE7 missing wrapping of code elements. */
40
+ html>body p code { *white-space: normal; }
41
+
42
+ /* IE 6&7 has problems with setting proper <hr> margins. */
43
+ hr { margin: -8px auto 11px; }
44
+
45
+ /* Explicitly set interpolation, allowing dynamically resized images to not look horrible */
46
+ img { -ms-interpolation-mode: bicubic; }
47
+
48
+ /* Clearing
49
+ -------------------------------------------------------------- */
50
+
51
+ /* Makes clearfix actually work in IE */
52
+ .clearfix, .container {display: inline-block;}
53
+ * html .clearfix,
54
+ * html .container {height: 1%;}
55
+
56
+
57
+ /* Forms
58
+ -------------------------------------------------------------- */
59
+
60
+ /* Fixes padding on fieldset */
61
+ fieldset {padding-top: 0;}
@@ -0,0 +1,85 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ print.css
4
+ * Gives you some sensible styles for printing pages.
5
+ * See Readme file in this directory for further instructions.
6
+
7
+ Some additions you'll want to make, customized to your markup:
8
+ #header, #footer, #navigation { display:none; }
9
+
10
+ -------------------------------------------------------------- */
11
+
12
+ body {
13
+ line-height: 1.5;
14
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
15
+ color:#000;
16
+ background: none;
17
+ font-size: 10pt;
18
+ }
19
+
20
+
21
+ /* Layout
22
+ -------------------------------------------------------------- */
23
+
24
+ .container {
25
+ background: none;
26
+ }
27
+
28
+ hr {
29
+ background:#ccc;
30
+ color:#ccc;
31
+ width:100%;
32
+ height:2px;
33
+ margin:2em 0;
34
+ padding:0;
35
+ border:none;
36
+ }
37
+ hr.space {
38
+ background: #fff;
39
+ color: #fff;
40
+ }
41
+
42
+
43
+ /* Text
44
+ -------------------------------------------------------------- */
45
+
46
+ h1,h2,h3,h4,h5,h6 { font-family: "Helvetica Neue", Arial, "Lucida Grande", sans-serif; }
47
+ code { font:.9em "Courier New", Monaco, Courier, monospace; }
48
+
49
+ img { float:left; margin:1.5em 1.5em 1.5em 0; }
50
+ a img { border:none; }
51
+ p img.top { margin-top: 0; }
52
+
53
+ blockquote {
54
+ margin:1.5em;
55
+ padding:1em;
56
+ font-style:italic;
57
+ font-size:.9em;
58
+ }
59
+
60
+ .small { font-size: .9em; }
61
+ .large { font-size: 1.1em; }
62
+ .quiet { color: #999; }
63
+ .hide { display:none; }
64
+
65
+
66
+ /* Links
67
+ -------------------------------------------------------------- */
68
+
69
+ a:link, a:visited {
70
+ background: transparent;
71
+ font-weight:700;
72
+ text-decoration: underline;
73
+ }
74
+
75
+ a:link:after, a:visited:after {
76
+ content: " (" attr(href) ")";
77
+ font-size: 90%;
78
+ }
79
+
80
+ /* If you're having trouble printing relative links, uncomment and customize this:
81
+ (note: This is valid CSS3, but it still won't go through the W3C CSS Validator) */
82
+
83
+ /* a[href^="/"]:after {
84
+ content: " (http://www.yourdomain.com" attr(href) ") ";
85
+ } */