picky-generators 4.2.4 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/prototypes/all_in_one/sinatra/app.rb +1 -7
- data/prototypes/all_in_one/sinatra/book.rb +10 -10
- data/prototypes/all_in_one/sinatra/images/picky.png +0 -0
- data/prototypes/all_in_one/sinatra/javascripts/picky.min.js +19 -17
- data/prototypes/all_in_one/sinatra/stylesheets/application.css +82 -18
- data/prototypes/all_in_one/sinatra/stylesheets/images/background.png +0 -0
- data/prototypes/all_in_one/sinatra/stylesheets/images/cancel.svg +10 -0
- data/prototypes/all_in_one/sinatra/stylesheets/picky.css +277 -135
- data/prototypes/all_in_one/sinatra/views/search.haml +232 -58
- data/prototypes/client/sinatra/app.rb +19 -30
- data/prototypes/client/sinatra/book.rb +9 -9
- data/prototypes/client/sinatra/images/picky.png +0 -0
- data/prototypes/client/sinatra/javascripts/picky.min.js +19 -17
- data/prototypes/client/sinatra/stylesheets/application.css +82 -18
- data/prototypes/client/sinatra/stylesheets/images/background.png +0 -0
- data/prototypes/client/sinatra/stylesheets/images/cancel.svg +10 -0
- data/prototypes/client/sinatra/stylesheets/picky.css +277 -135
- data/prototypes/client/sinatra/views/search.haml +232 -58
- metadata +14 -12
- data/prototypes/all_in_one/sinatra/views/configure.haml +0 -188
- data/prototypes/client/sinatra/views/configure.haml +0 -188
@@ -1,135 +1,277 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
1
|
+
/* Form */
|
2
|
+
form
|
3
|
+
{
|
4
|
+
display: block;
|
5
|
+
position: relative;
|
6
|
+
height: 46px;
|
7
|
+
background: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,0)), to(rgba(0,0,0,0.08))), rgba(255,255,255,0.4);
|
8
|
+
background: -moz-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.08)), rgba(255,255,255,0.4);
|
9
|
+
border-radius: 99px;
|
10
|
+
box-shadow: inset 0 1px 0 rgba(0,0,0,0.08), inset 0 0 4px rgba(0,0,0,0.6), 0 0px 0 rgba(255,255,255,0.6);
|
11
|
+
-webkit-user-select: none;
|
12
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
13
|
+
}
|
14
|
+
form input[type=search],
|
15
|
+
form input[type=button],
|
16
|
+
form .status
|
17
|
+
{
|
18
|
+
height: 46px;
|
19
|
+
border: 1px solid #98989f;
|
20
|
+
-webkit-appearance: none;
|
21
|
+
border-radius: 99px;
|
22
|
+
box-shadow: inset 0 2px 4px rgba(0,0,0,0.12);
|
23
|
+
background: #fff;
|
24
|
+
line-height: 1;
|
25
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
26
|
+
-webkit-box-sizing: border-box;
|
27
|
+
-moz-box-sizing: border-box;
|
28
|
+
box-sizing: border-box;
|
29
|
+
}
|
30
|
+
form input[type=search] {
|
31
|
+
font-size: 30px;
|
32
|
+
z-index: 3;
|
33
|
+
display: block;
|
34
|
+
position: absolute;
|
35
|
+
margin: 0 0 0 2em;
|
36
|
+
padding: 0 8px 0 13px;
|
37
|
+
width: 526px;
|
38
|
+
}
|
39
|
+
form input[type=search]::-webkit-input-placeholder
|
40
|
+
{
|
41
|
+
color: #c0c0c8;
|
42
|
+
font-size: 30px;
|
43
|
+
line-height: 36px; /* Fixes placeholder vertical alignment in Chrome and Webkit Nightly (535.*) */
|
44
|
+
}
|
45
|
+
form input[type=search]:-moz-placeholder
|
46
|
+
{
|
47
|
+
color: #c0c0c8;
|
48
|
+
}
|
49
|
+
form input[type=search]:focus
|
50
|
+
{
|
51
|
+
outline: none;
|
52
|
+
border-color: #6e96c7;
|
53
|
+
box-shadow: inset 0 0 4px #6e96c7, inset 0 0 4px #6e96c7, 0 0 4px #6e96c7, 0 0 4px #6e96c7, inset 0 2px 4px rgba(0,0,0,0.16);
|
54
|
+
}
|
55
|
+
form input[type=search]::-webkit-search-cancel-button
|
56
|
+
{
|
57
|
+
z-index: 9;
|
58
|
+
position: absolute;
|
59
|
+
right: 6px;
|
60
|
+
top: 6px;
|
61
|
+
width: 32px;
|
62
|
+
height: 32px;
|
63
|
+
margin: 0;
|
64
|
+
padding: 0;
|
65
|
+
background: url(images/cancel.svg);
|
66
|
+
-webkit-appearance: none;
|
67
|
+
}
|
68
|
+
form input[type=search]::-webkit-search-cancel-button:active
|
69
|
+
{
|
70
|
+
background-position: 0 -32px;
|
71
|
+
}
|
72
|
+
form input[type=search]::-webkit-search-cancel-button
|
73
|
+
{
|
74
|
+
/* outline: 1px dashed red !important;*/
|
75
|
+
}
|
76
|
+
form input[type=button]
|
77
|
+
{
|
78
|
+
background: rgba(0,0,0,0.01);
|
79
|
+
font-size: 1.2em;
|
80
|
+
z-index: 2;
|
81
|
+
display: block;
|
82
|
+
position: absolute;
|
83
|
+
padding-right: 0.8em;
|
84
|
+
right: 0;
|
85
|
+
width: 130px;
|
86
|
+
color: #606068;
|
87
|
+
text-align: right;
|
88
|
+
text-shadow: 0 1px 0 rgba(255,255,255,0.8);
|
89
|
+
-webkit-transition: background 0.15s ease-in;
|
90
|
+
}
|
91
|
+
form input[type=button]:active
|
92
|
+
{
|
93
|
+
background: rgba(0,0,0,0.08);
|
94
|
+
-webkit-transition-duration: 0;
|
95
|
+
}
|
96
|
+
form .status {
|
97
|
+
background: rgba(0,0,0,0.0);
|
98
|
+
z-index: 2;
|
99
|
+
display: block;
|
100
|
+
position: absolute;
|
101
|
+
left: 0;
|
102
|
+
width: 100px;
|
103
|
+
line-height: 46px;
|
104
|
+
padding-right: 2em;
|
105
|
+
text-align: right;
|
106
|
+
font-size: 1.5em;
|
107
|
+
}
|
108
|
+
.picky form.empty .status {
|
109
|
+
background-color: hsl(215, 51%, 70%); }
|
110
|
+
.picky form.empty .feedback {
|
111
|
+
background-color: #d0e2ff; }
|
112
|
+
.picky form.none .status {
|
113
|
+
background-color: hsl(6, 51%, 70%); }
|
114
|
+
.picky form.none .feedback {
|
115
|
+
background-color: #ffdddd; }
|
116
|
+
.picky form.support .status {
|
117
|
+
background-color: hsl(29, 51%, 70%); }
|
118
|
+
.picky form.support .feedback {
|
119
|
+
background-color: #faf3d0; }
|
120
|
+
.picky form.ok .status {
|
121
|
+
background-color: hsl(82, 51%, 70%); }
|
122
|
+
.picky form.ok .feedback {
|
123
|
+
background-color: #bcf0b3; }
|
124
|
+
.picky form .feedback {
|
125
|
+
width: 85%;
|
126
|
+
float: left;
|
127
|
+
border: 1px solid #cccccc;
|
128
|
+
padding: 0;
|
129
|
+
margin: 0; }
|
130
|
+
|
131
|
+
/* To the top */
|
132
|
+
.picky .header .tothetop {
|
133
|
+
float: right;
|
134
|
+
}
|
135
|
+
.picky .header .tothetop a {
|
136
|
+
display: block;
|
137
|
+
width: 20px;
|
138
|
+
height: 20px;
|
139
|
+
text-align: center;
|
140
|
+
margin-left: 1em;
|
141
|
+
border-radius: 5px;
|
142
|
+
background-color: #EEE;
|
143
|
+
text-decoration: none;
|
144
|
+
font-size: 1em;
|
145
|
+
font-weight: bold;
|
146
|
+
color: #777;
|
147
|
+
}
|
148
|
+
.picky .header .tothetop a:hover {
|
149
|
+
background-color: white;
|
150
|
+
}
|
151
|
+
|
152
|
+
/* Addination */
|
153
|
+
.picky .addination {
|
154
|
+
line-height: 2em;
|
155
|
+
text-align: center;
|
156
|
+
cursor: pointer;
|
157
|
+
}
|
158
|
+
.picky .addination:hover {
|
159
|
+
background-color: #eee;
|
160
|
+
}
|
161
|
+
|
162
|
+
/* Allocations */
|
163
|
+
.picky .allocations ol {
|
164
|
+
margin-bottom: 10px;
|
165
|
+
}
|
166
|
+
.picky ol {
|
167
|
+
cursor: pointer;
|
168
|
+
list-style-type: none;
|
169
|
+
margin: 0;
|
170
|
+
padding: 0;
|
171
|
+
}
|
172
|
+
.picky li:hover {
|
173
|
+
background-color: #eee;
|
174
|
+
}
|
175
|
+
.picky ol.more,
|
176
|
+
.picky ol.hidden {
|
177
|
+
margin-top: 3px;
|
178
|
+
}
|
179
|
+
.picky .allocations ol.hidden {
|
180
|
+
display: none; }
|
181
|
+
.picky .allocations ol.more:hover {
|
182
|
+
background-color: #ccc;
|
183
|
+
cursor: pointer; }
|
184
|
+
.picky .allocations ol {
|
185
|
+
list-style-position: outside;
|
186
|
+
list-style: none;
|
187
|
+
padding: 0;}
|
188
|
+
|
189
|
+
.picky .allocations li {
|
190
|
+
font-size: 1.2em;
|
191
|
+
padding: 24px;
|
192
|
+
overflow: hidden;
|
193
|
+
border-bottom: 1px solid rgba(0,0,0,0.1);
|
194
|
+
}
|
195
|
+
.picky .allocations li:last-child {
|
196
|
+
border-bottom: 0px;
|
197
|
+
margin-bottom: 0;
|
198
|
+
}
|
199
|
+
.picky .allocations .text {
|
200
|
+
max-width: 90%;
|
201
|
+
float: left; }
|
202
|
+
.picky .allocations .count {
|
203
|
+
float: right;
|
204
|
+
color: #cccccc; }
|
205
|
+
|
206
|
+
.picky .results .header {
|
207
|
+
padding: 0.5em;
|
208
|
+
background-color: rgba(0, 0, 0, 0.04);
|
209
|
+
background: -webkit-gradient(radial, 0% 100%, 90, 0% 100%, 600, from(rgba(0, 0, 0, 0.02)), to(rgba(0, 0, 0, 0.1)));
|
210
|
+
text-align: right;
|
211
|
+
}
|
212
|
+
.picky .allocations,
|
213
|
+
.picky .no_results,
|
214
|
+
.picky .results,
|
215
|
+
.picky .more {
|
216
|
+
display: none;
|
217
|
+
margin: 0 1.5em;
|
218
|
+
padding: 0 0 0 0;
|
219
|
+
background-color: rgba(0, 0, 0, 0.02);
|
220
|
+
border-bottom-left-radius: 1em;
|
221
|
+
border-bottom-right-radius: 1em;
|
222
|
+
border-bottom: solid 1px #b8b8ba;
|
223
|
+
box-shadow: inset 0 1px 3px rgba(255,255,255,0), 0 1px 3px rgba(0,0,0,0.16);
|
224
|
+
}
|
225
|
+
.picky ol.more, .picky .no_results {
|
226
|
+
display: none;
|
227
|
+
}
|
228
|
+
.picky ol.more h3, .picky .no_results h3 {
|
229
|
+
margin: 0;
|
230
|
+
text-align: center;
|
231
|
+
}
|
232
|
+
.picky .allocations .more {
|
233
|
+
position: absolute;
|
234
|
+
font-weight: bold;
|
235
|
+
line-height: 1.1em;
|
236
|
+
padding: 0.2em 1em 0.4em;
|
237
|
+
margin: 0 16.5%;
|
238
|
+
-moz-border-radius-bottomleft: 20px;
|
239
|
+
-webkit-border-bottom-left-radius: 20px;
|
240
|
+
-o-border-bottom-left-radius: 20px;
|
241
|
+
-ms-border-bottom-left-radius: 20px;
|
242
|
+
-khtml-border-bottom-left-radius: 20px;
|
243
|
+
border-bottom-left-radius: 20px;
|
244
|
+
-moz-border-radius-bottomright: 20px;
|
245
|
+
-webkit-border-bottom-right-radius: 20px;
|
246
|
+
-o-border-bottom-right-radius: 20px;
|
247
|
+
-ms-border-bottom-right-radius: 20px;
|
248
|
+
-khtml-border-bottom-right-radius: 20px;
|
249
|
+
border-bottom-right-radius: 20px;
|
250
|
+
border-left-width: 1px;
|
251
|
+
border-right-width: 1px;
|
252
|
+
border-bottom-width: 2px;
|
253
|
+
}
|
254
|
+
|
255
|
+
/* Results */
|
256
|
+
.picky .results li {
|
257
|
+
margin: 0;
|
258
|
+
padding: 1em;
|
259
|
+
border-bottom: 1px solid #aaa;
|
260
|
+
}
|
261
|
+
.picky .results li:last-child {
|
262
|
+
border-bottom: 0px;
|
263
|
+
}
|
264
|
+
.picky .results li h3 {
|
265
|
+
margin-top: 0;
|
266
|
+
}
|
267
|
+
.picky .results li h3 a:link,
|
268
|
+
.picky .results li h3 a:visited {
|
269
|
+
color: black;
|
270
|
+
text-decoration: none;
|
271
|
+
}
|
272
|
+
.picky .results li h3 a:hover {
|
273
|
+
text-decoration: underline;
|
274
|
+
}
|
275
|
+
.picky .no_results {
|
276
|
+
padding: 1em;
|
277
|
+
}
|