@subiz/widget-v4 4.1.140 → 4.1.142
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.
- package/assets/img/stars_v2.png +0 -0
- package/assets/less/form-page.less +258 -257
- package/assets/less/form.less +91 -0
- package/compiled_src/form/Form.js +57 -10
- package/compiled_src/form/FormPage.js +9 -18
- package/compiled_src/form/rating-stars.js +129 -0
- package/package.json +1 -1
- package/src/chatbox/FormAttachment2.js +83 -0
- package/src/form/Form.js +101 -43
- package/src/form/FormPage.js +89 -16
- package/src/form/rating-stars.js +89 -0
- package/compiled_src/store/store.js +0 -1257
- package/compiled_src/util/campaign.js +0 -88
- package/compiled_src/util/common.js +0 -1294
- package/compiled_src/util/common.test.js +0 -496
- package/compiled_src/util/extractor.test.js +0 -299
- package/compiled_src/util/gate.js +0 -38
- package/compiled_src/util/gate.test.js +0 -18
- package/compiled_src/util/index.js +0 -20
- package/compiled_src/util/mutex.js +0 -31
- package/compiled_src/util/op.js +0 -55
- package/compiled_src/util/pubsub.js +0 -29
- package/compiled_src/util/pubsub.test.js +0 -35
|
Binary file
|
|
@@ -17,302 +17,303 @@
|
|
|
17
17
|
@spacer3: @spacer * 1.5; // 15px;
|
|
18
18
|
@spacer4: @spacer * 2; // 22.5px
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
@import './font.less';
|
|
21
|
+
@import 'base.less';
|
|
22
|
+
|
|
23
|
+
* {
|
|
24
|
+
font-family: @font-family-sans-serif;
|
|
25
|
+
font-size: @font-size-base;
|
|
26
|
+
|
|
27
|
+
-webkit-box-sizing: border-box; // Safari/Chrome, other WebKit
|
|
28
|
+
-moz-box-sizing: border-box; // Firefox, other Gecko
|
|
29
|
+
box-sizing: border-box; // Opera/IE 8+
|
|
30
|
+
|
|
31
|
+
margin: 0;
|
|
32
|
+
padding: 0;
|
|
33
|
+
border: 0;
|
|
34
|
+
vertical-align: baseline;
|
|
23
35
|
}
|
|
24
36
|
|
|
25
|
-
|
|
26
|
-
|
|
37
|
+
button:focus {
|
|
38
|
+
outline: none;
|
|
27
39
|
}
|
|
28
40
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
all: initial;
|
|
41
|
+
.pos-relative {
|
|
42
|
+
position: relative;
|
|
32
43
|
}
|
|
33
44
|
|
|
34
|
-
//
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
// flex utils
|
|
46
|
+
.flex-row {
|
|
47
|
+
flex-direction: row;
|
|
48
|
+
}
|
|
49
|
+
.flex-column {
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
}
|
|
52
|
+
.flex-grow-1 {
|
|
53
|
+
flex-grow: 1;
|
|
54
|
+
}
|
|
55
|
+
.align-self-end {
|
|
56
|
+
align-self: flex-end;
|
|
57
|
+
}
|
|
58
|
+
.align-items-end {
|
|
59
|
+
align-items: flex-end;
|
|
60
|
+
}
|
|
61
|
+
.justify-content-center {
|
|
62
|
+
justify-content: center;
|
|
63
|
+
}
|
|
64
|
+
.h-full {
|
|
65
|
+
height: 100%;
|
|
66
|
+
}
|
|
67
|
+
.w-full {
|
|
68
|
+
width: 100%;
|
|
69
|
+
}
|
|
70
|
+
.text-muted {
|
|
71
|
+
.color(@text-muted);
|
|
72
|
+
}
|
|
73
|
+
.text-lg {
|
|
74
|
+
font-size: 18px;
|
|
75
|
+
}
|
|
76
|
+
.text-xl {
|
|
77
|
+
font-size: 20px;
|
|
78
|
+
}
|
|
79
|
+
.text-center {
|
|
80
|
+
text-align: center;
|
|
81
|
+
}
|
|
82
|
+
.text-danger {
|
|
83
|
+
.color(@red);
|
|
84
|
+
}
|
|
85
|
+
.red {
|
|
86
|
+
.color(@red);
|
|
37
87
|
}
|
|
38
88
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
89
|
+
.text-italic {
|
|
90
|
+
font-style: italic;
|
|
91
|
+
}
|
|
42
92
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
93
|
+
// display utils
|
|
94
|
+
.d-none {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
46
97
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
98
|
+
.d-flex {
|
|
99
|
+
display: flex;
|
|
100
|
+
}
|
|
50
101
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
vertical-align: baseline;
|
|
55
|
-
}
|
|
102
|
+
.d-inline-block {
|
|
103
|
+
display: inline-block;
|
|
104
|
+
}
|
|
56
105
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
106
|
+
// spacing utils
|
|
107
|
+
.ml-1 {
|
|
108
|
+
margin-left: @spacer1;
|
|
109
|
+
}
|
|
110
|
+
.pl-2 {
|
|
111
|
+
padding-left: @spacer2;
|
|
112
|
+
}
|
|
113
|
+
.pr-2 {
|
|
114
|
+
padding-right: @spacer2;
|
|
115
|
+
}
|
|
116
|
+
.pb-2 {
|
|
117
|
+
padding-bottom: @spacer2;
|
|
118
|
+
}
|
|
119
|
+
.mt-1 {
|
|
120
|
+
margin-top: @spacer1;
|
|
121
|
+
}
|
|
122
|
+
.mt-2 {
|
|
123
|
+
margin-top: @spacer2;
|
|
124
|
+
}
|
|
125
|
+
.ml-2 {
|
|
126
|
+
margin-left: @spacer2;
|
|
127
|
+
}
|
|
128
|
+
.mr-2 {
|
|
129
|
+
margin-right: @spacer2;
|
|
130
|
+
}
|
|
131
|
+
.pt-3 {
|
|
132
|
+
padding-top: @spacer3;
|
|
133
|
+
}
|
|
134
|
+
.pl-3 {
|
|
135
|
+
padding-left: @spacer3;
|
|
136
|
+
}
|
|
137
|
+
.pr-3 {
|
|
138
|
+
padding-right: @spacer3;
|
|
139
|
+
}
|
|
140
|
+
.pb-3 {
|
|
141
|
+
padding-bottom: @spacer3;
|
|
142
|
+
}
|
|
143
|
+
.mt-3 {
|
|
144
|
+
margin-top: @spacer3;
|
|
145
|
+
}
|
|
146
|
+
.ml-3 {
|
|
147
|
+
margin-left: @spacer3;
|
|
148
|
+
}
|
|
149
|
+
.mr-3 {
|
|
150
|
+
margin-right: @spacer3;
|
|
151
|
+
}
|
|
152
|
+
.mb-3 {
|
|
153
|
+
margin-bottom: @spacer3;
|
|
154
|
+
}
|
|
155
|
+
.mb-2 {
|
|
156
|
+
margin-bottom: @spacer2;
|
|
157
|
+
}
|
|
158
|
+
.mb-1 {
|
|
159
|
+
margin-bottom: @spacer1;
|
|
160
|
+
}
|
|
60
161
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
162
|
+
.muted {
|
|
163
|
+
.color(@text-muted);
|
|
164
|
+
}
|
|
64
165
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
.flex-column {
|
|
70
|
-
flex-direction: column;
|
|
71
|
-
}
|
|
72
|
-
.flex-grow-1 {
|
|
73
|
-
flex-grow: 1;
|
|
74
|
-
}
|
|
75
|
-
.align-self-end {
|
|
76
|
-
align-self: flex-end;
|
|
77
|
-
}
|
|
78
|
-
.align-items-end {
|
|
79
|
-
align-items: flex-end;
|
|
80
|
-
}
|
|
81
|
-
.justify-content-center {
|
|
82
|
-
justify-content: center;
|
|
83
|
-
}
|
|
84
|
-
.h-full {
|
|
85
|
-
height: 100%;
|
|
86
|
-
}
|
|
87
|
-
.w-full {
|
|
88
|
-
width: 100%;
|
|
89
|
-
}
|
|
90
|
-
.text-muted {
|
|
91
|
-
.color(@text-muted);
|
|
92
|
-
}
|
|
93
|
-
.text-lg {
|
|
94
|
-
font-size: 18px;
|
|
95
|
-
}
|
|
96
|
-
.text-xl {
|
|
97
|
-
font-size: 20px;
|
|
98
|
-
}
|
|
99
|
-
.text-center {
|
|
100
|
-
text-align: center;
|
|
101
|
-
}
|
|
102
|
-
.text-danger {
|
|
103
|
-
.color(@red);
|
|
104
|
-
}
|
|
105
|
-
.red {
|
|
106
|
-
.color(@red);
|
|
107
|
-
}
|
|
166
|
+
.i {
|
|
167
|
+
font-style: italic;
|
|
168
|
+
}
|
|
108
169
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
170
|
+
.align-items-center {
|
|
171
|
+
align-items: center;
|
|
172
|
+
}
|
|
112
173
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
174
|
+
.text-truncate {
|
|
175
|
+
text-overflow: ellipsis;
|
|
176
|
+
white-space: nowrap;
|
|
177
|
+
overflow: hidden;
|
|
178
|
+
}
|
|
117
179
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
180
|
+
.flex_1 {
|
|
181
|
+
flex: 1;
|
|
182
|
+
flex-shrink: 0;
|
|
183
|
+
}
|
|
121
184
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
185
|
+
.justify-content-between {
|
|
186
|
+
justify-content: space-between;
|
|
187
|
+
}
|
|
125
188
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
.pb-2 {
|
|
137
|
-
padding-bottom: @spacer2;
|
|
138
|
-
}
|
|
139
|
-
.mt-1 {
|
|
140
|
-
margin-top: @spacer1;
|
|
141
|
-
}
|
|
142
|
-
.mt-2 {
|
|
143
|
-
margin-top: @spacer2;
|
|
144
|
-
}
|
|
145
|
-
.ml-2 {
|
|
146
|
-
margin-left: @spacer2;
|
|
147
|
-
}
|
|
148
|
-
.mr-2 {
|
|
149
|
-
margin-right: @spacer2;
|
|
150
|
-
}
|
|
151
|
-
.pt-3 {
|
|
152
|
-
padding-top: @spacer3;
|
|
153
|
-
}
|
|
154
|
-
.pl-3 {
|
|
155
|
-
padding-left: @spacer3;
|
|
156
|
-
}
|
|
157
|
-
.pr-3 {
|
|
158
|
-
padding-right: @spacer3;
|
|
159
|
-
}
|
|
160
|
-
.pb-3 {
|
|
161
|
-
padding-bottom: @spacer3;
|
|
162
|
-
}
|
|
163
|
-
.mt-3 {
|
|
164
|
-
margin-top: @spacer3;
|
|
165
|
-
}
|
|
166
|
-
.ml-3 {
|
|
167
|
-
margin-left: @spacer3;
|
|
168
|
-
}
|
|
169
|
-
.mr-3 {
|
|
170
|
-
margin-right: @spacer3;
|
|
171
|
-
}
|
|
172
|
-
.mb-3 {
|
|
173
|
-
margin-bottom: @spacer3;
|
|
174
|
-
}
|
|
175
|
-
.mb-2 {
|
|
176
|
-
margin-bottom: @spacer2;
|
|
177
|
-
}
|
|
178
|
-
.mb-1 {
|
|
179
|
-
margin-bottom: @spacer1;
|
|
180
|
-
}
|
|
189
|
+
.no-shrink {
|
|
190
|
+
flex-shrink: 0;
|
|
191
|
+
}
|
|
192
|
+
.form-page {
|
|
193
|
+
max-width: 700px;
|
|
194
|
+
width: 100%;
|
|
195
|
+
margin: 0 auto;
|
|
196
|
+
padding: 40px 20px;
|
|
197
|
+
}
|
|
181
198
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
199
|
+
.form-page-header {
|
|
200
|
+
margin-bottom: 20px;
|
|
201
|
+
}
|
|
185
202
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
203
|
+
.form-page-title {
|
|
204
|
+
font-size: @form-page-header-font-size;
|
|
205
|
+
font-family: @form-page-header-font-family;
|
|
206
|
+
}
|
|
189
207
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
208
|
+
.form-page-desc {
|
|
209
|
+
color: @text-muted;
|
|
210
|
+
margin-top: 2px;
|
|
211
|
+
font-size: @form-page-desc-font-size;
|
|
212
|
+
font-family: @form-page-desc-font-family;
|
|
213
|
+
}
|
|
193
214
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
overflow: hidden;
|
|
198
|
-
}
|
|
215
|
+
.form-page-logo-wrapper {
|
|
216
|
+
margin-bottom: 30px;
|
|
217
|
+
}
|
|
199
218
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
219
|
+
img.form-page-logo {
|
|
220
|
+
width: 200px;
|
|
221
|
+
height: 45px;
|
|
222
|
+
}
|
|
204
223
|
|
|
205
|
-
|
|
206
|
-
|
|
224
|
+
.form-page-logo-text {
|
|
225
|
+
color: @primary-color;
|
|
226
|
+
font-size: 18px;
|
|
227
|
+
font-weight: 500;
|
|
228
|
+
&:hover {
|
|
229
|
+
color: @primary-color;
|
|
207
230
|
}
|
|
231
|
+
}
|
|
208
232
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
max-width: 700px;
|
|
214
|
-
width: 100%;
|
|
215
|
-
margin: 0 auto;
|
|
216
|
-
padding: 40px 20px;
|
|
217
|
-
}
|
|
233
|
+
.form-page .form-component .label {
|
|
234
|
+
font-size: @form-page-input-label-font-size;
|
|
235
|
+
font-family: @form-page-input-label-font-family;
|
|
236
|
+
}
|
|
218
237
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
238
|
+
.form-page-body {
|
|
239
|
+
width: 100%;
|
|
240
|
+
height: 100%;
|
|
241
|
+
overflow: auto;
|
|
242
|
+
background-color: @form-page-background-color;
|
|
243
|
+
}
|
|
222
244
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
245
|
+
.btn--start-convo {
|
|
246
|
+
border-radius: 7px;
|
|
247
|
+
flex-shrink: 0;
|
|
248
|
+
display: flex;
|
|
249
|
+
align-items: center;
|
|
250
|
+
justify-content: center;
|
|
251
|
+
padding-left: 32px;
|
|
252
|
+
padding-right: 32px;
|
|
253
|
+
height: 40px;
|
|
254
|
+
.color(@text-color);
|
|
255
|
+
font-size: 16px;
|
|
256
|
+
font-weight: 500;
|
|
257
|
+
line-height: 20px;
|
|
258
|
+
text-align: center;
|
|
259
|
+
background: @primary-color;
|
|
260
|
+
// max-width: 270px;
|
|
261
|
+
width: 100%;
|
|
262
|
+
text-overflow: ellipsis;
|
|
263
|
+
white-space: nowrap;
|
|
264
|
+
overflow: hidden;
|
|
265
|
+
|
|
266
|
+
transition: filter 250ms ease;
|
|
267
|
+
|
|
268
|
+
&::after {
|
|
269
|
+
display: none;
|
|
226
270
|
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
color: @text-muted;
|
|
230
|
-
margin-top: 2px;
|
|
231
|
-
font-size: @form-page-desc-font-size;
|
|
232
|
-
font-family: @form-page-desc-font-family;
|
|
271
|
+
&:hover {
|
|
272
|
+
filter: brightness(1.1);
|
|
233
273
|
}
|
|
274
|
+
}
|
|
234
275
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
276
|
+
.btn--start-convo:disabled {
|
|
277
|
+
opacity: 0.5;
|
|
278
|
+
cursor: default;
|
|
279
|
+
pointer-events: none;
|
|
280
|
+
}
|
|
238
281
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
282
|
+
.form-wrapper.form select.form-control {
|
|
283
|
+
height: 40px;
|
|
284
|
+
}
|
|
243
285
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
color: @primary-color;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
286
|
+
.form-page-header-bg {
|
|
287
|
+
width: 100%;
|
|
288
|
+
height: 200px;
|
|
289
|
+
background-color: @form-page-background-color;
|
|
290
|
+
}
|
|
252
291
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}
|
|
292
|
+
select.form-control {
|
|
293
|
+
background-color: #fff;
|
|
294
|
+
}
|
|
257
295
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
296
|
+
.form-page-preview-noti {
|
|
297
|
+
background: #fef7e0;
|
|
298
|
+
text-align: center;
|
|
299
|
+
border-radius: 6px;
|
|
300
|
+
padding: 8px 12px;
|
|
301
|
+
color: #202122;
|
|
302
|
+
width: 100%;
|
|
303
|
+
}
|
|
264
304
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
display: flex;
|
|
269
|
-
align-items: center;
|
|
270
|
-
justify-content: center;
|
|
271
|
-
padding-left: 32px;
|
|
272
|
-
padding-right: 32px;
|
|
273
|
-
height: 40px;
|
|
274
|
-
.color(@text-color);
|
|
275
|
-
font-size: 16px;
|
|
276
|
-
font-weight: 500;
|
|
277
|
-
line-height: 20px;
|
|
278
|
-
text-align: center;
|
|
279
|
-
background: @primary-color;
|
|
280
|
-
// max-width: 270px;
|
|
281
|
-
width: 100%;
|
|
282
|
-
text-overflow: ellipsis;
|
|
283
|
-
white-space: nowrap;
|
|
284
|
-
overflow: hidden;
|
|
285
|
-
|
|
286
|
-
transition: filter 250ms ease;
|
|
287
|
-
|
|
288
|
-
&::after {
|
|
289
|
-
display: none;
|
|
290
|
-
}
|
|
291
|
-
&:hover {
|
|
292
|
-
filter: brightness(1.1);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
305
|
+
.form-page.sketch {
|
|
306
|
+
margin-top: -150px;
|
|
307
|
+
}
|
|
295
308
|
|
|
296
|
-
|
|
297
|
-
opacity: 0.5;
|
|
298
|
-
cursor: default;
|
|
299
|
-
pointer-events: none;
|
|
300
|
-
}
|
|
309
|
+
@import 'form.less';
|
|
301
310
|
|
|
302
|
-
|
|
303
|
-
|
|
311
|
+
@media only screen and (max-width: 768px) {
|
|
312
|
+
.form-page-header-bg {
|
|
313
|
+
height: 100px;
|
|
304
314
|
}
|
|
305
315
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
border-radius: 6px;
|
|
310
|
-
margin-top: 10px;
|
|
311
|
-
margin-left: 15px;
|
|
312
|
-
margin-right: 15px;
|
|
313
|
-
padding: 8px 12px;
|
|
314
|
-
color: #202122;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
@import 'form.less';
|
|
316
|
+
.form-page.sketch {
|
|
317
|
+
margin-top: -15px;
|
|
318
|
+
}
|
|
318
319
|
}
|
package/assets/less/form.less
CHANGED
|
@@ -436,6 +436,10 @@ select {
|
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
+
.form-component.form-component-submit-button {
|
|
440
|
+
margin-top: 20px;
|
|
441
|
+
}
|
|
442
|
+
|
|
439
443
|
.form-wrapper.form {
|
|
440
444
|
padding: 20px;
|
|
441
445
|
background-color: #fff;
|
|
@@ -466,6 +470,14 @@ select {
|
|
|
466
470
|
margin-bottom: 0;
|
|
467
471
|
}
|
|
468
472
|
}
|
|
473
|
+
|
|
474
|
+
&:first-child .label {
|
|
475
|
+
margin-top: 0;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.form-component.form-component-submit-button {
|
|
480
|
+
margin-top: 16px;
|
|
469
481
|
}
|
|
470
482
|
|
|
471
483
|
.label {
|
|
@@ -484,3 +496,82 @@ select {
|
|
|
484
496
|
select.form-control.form-control--empty {
|
|
485
497
|
.color(@text-muted);
|
|
486
498
|
}
|
|
499
|
+
|
|
500
|
+
@media only screen and (min-width: 968px) {
|
|
501
|
+
.form-radios-wrapper.horizontal {
|
|
502
|
+
display: flex;
|
|
503
|
+
flex-wrap: wrap;
|
|
504
|
+
|
|
505
|
+
.radio {
|
|
506
|
+
margin-right: 10px;
|
|
507
|
+
width: 300px; // form wrapper width is 620px
|
|
508
|
+
|
|
509
|
+
&:first-child {
|
|
510
|
+
margin-top: 0;
|
|
511
|
+
}
|
|
512
|
+
&:nth-child(2) {
|
|
513
|
+
margin-top: 0;
|
|
514
|
+
}
|
|
515
|
+
&:nth-child(2n) {
|
|
516
|
+
margin-right: 0;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.form-checkboxes-wrapper.horizontal {
|
|
522
|
+
display: flex;
|
|
523
|
+
flex-wrap: wrap;
|
|
524
|
+
|
|
525
|
+
.checkbox {
|
|
526
|
+
margin-right: 10px;
|
|
527
|
+
width: 300px; // form wrapper width is 620px
|
|
528
|
+
|
|
529
|
+
&:first-child {
|
|
530
|
+
margin-top: 0;
|
|
531
|
+
}
|
|
532
|
+
&:nth-child(2) {
|
|
533
|
+
margin-top: 0;
|
|
534
|
+
}
|
|
535
|
+
&:nth-child(2n) {
|
|
536
|
+
margin-right: 0;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.form-ratings-wrapper {
|
|
543
|
+
display: inline-flex;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.star {
|
|
547
|
+
width: 32px; // please keep widthxheight always 32x30
|
|
548
|
+
height: 30px;
|
|
549
|
+
background-image: url('../img/stars_v2.png');
|
|
550
|
+
background-position: 0px 0px;
|
|
551
|
+
background-size: cover;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.form-wrapper-attachment .star-wrapper {
|
|
555
|
+
padding-right: 12px;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.star-wrapper {
|
|
559
|
+
cursor: pointer;
|
|
560
|
+
padding-right: 20px;
|
|
561
|
+
&:last-child {
|
|
562
|
+
padding-right: 0;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
&.hovering {
|
|
566
|
+
.star {
|
|
567
|
+
background-position: -32px 0;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
&.selected {
|
|
572
|
+
cursor: auto;
|
|
573
|
+
.star {
|
|
574
|
+
background-position: -64px 0;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|