sondaggi-frontend.less 10.3 KB
Newer Older
Marcello Pivanti's avatar
Marcello Pivanti committed
1
2
3
/**
IMPORT AMOS-LAYOUT VARIABLES
 */
Aster's avatar
Aster committed
4
5
@import (optional) "../../vendor/elitedivision/amos-layout/src/assets/resources/base/less/v2/variables.less";
@import (optional) "../../vendor/elitedivision/amos-layout/src/assets/resources/base/less/v2/utility.less";
Marcello Pivanti's avatar
Marcello Pivanti committed
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

/**
IMPORT STYLE-CUSTOM
 */
@import (optional) "../../backend/web/less/style_custom.less";


//COMMON
html {
    display: flex;
    flex-direction: column;

    body {
        flex-grow: 1;
        background: @light-background-color;
        display: flex;
        flex-direction: column;

        >.content {
            flex-grow: 1;
            display: flex;
            flex-direction: column;

            >.sondaggi-index {
                flex-grow: 1;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;

                &.sondaggi-success {
                    background: @success-color;
                    padding: 20px;

                    h1,
                    h2,
                    h3,
                    h4,
                    h5,
                    h6,
                    p,
                    span,
                    a:not(.btn),
                    .am {
                        color: contrast(@success-color);
                    }
                }

                &.sondaggi-warning {
                    background: @warning-color;
                    padding: 20px;

                    h1,
                    h2,
                    h3,
                    h4,
                    h5,
                    h6,
                    p,
                    span,
                    a:not(.btn),
                    .am {
                        color: contrast(@warning-color);
                    }
                }
            }
        }
    }
}

.btn.btn-secondary,
Aster's avatar
Aster committed
77
.btn.btn-navigation-primary {
Marcello Pivanti's avatar
Marcello Pivanti committed
78
79
80
81
    font-size: 20px;
    text-transform: uppercase;
}

Aster's avatar
Aster committed
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.btn.btn-file {
    padding: 6px 12px;
}

.input-group.date{
    .kv-date-picker{
        background: @brand-primary-color;
        color: contrast(@brand-primary-color);
        border-radius: 0;
        border: 1px solid @brand-primary-color;
    }
}

.file-caption-main {
    >.file-caption {
        //height: 42px;
    }
}
Marcello Pivanti's avatar
Marcello Pivanti committed
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217

.select2-selection__clear {
    top: -2px
}

textarea {
    max-width: 100% !important;
    font-size: 18px !important;
}

.select2-container--krajee .select2-selection {
    border-radius: 0 !important;
}

.select2-container--krajee .select2-selection--single {
    padding-left: 0 !important;
}

.select2-selection__arrow {
    border: none !important;
}

.select2-container--krajee .select2-selection--single .select2-selection__arrow b {
    border-top-color: @black-color  !important;
}

.select2-container--krajee .select2-selection--single .select2-selection__rendered {
    color: @black-color;

    .select2-selection__placeholder,
    .select2-selection__clear,
    .presentation {
        color: @black-color;
        opacity: initial;
    }

}

.select2-container--krajee .select2-selection--multiple .select2-selection__choice {
    background: @light-background-primary-color  !important;
    color: contrast(@light-background-primary-color) !important;
    border-radius: 0 !important;
    margin: 0;
    white-space: normal;
}

.select2-container--krajee .select2-selection--multiple .select2-selection__clear {
    position: relative;
    color: @black-color;
    opacity: 1;
    font-size: 0;

    &::after {
        content: "Delete selected";
        font-size: 14px;
        font-weight: normal;
    }
}

.s2-togall-select .s2-select-label,
.s2-togall-unselect .s2-unselect-label {
    color: @black-color;
}

.select2-container--krajee .select2-selection,
.form-control:not(textarea) {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 0 !important;

    @media screen and (min-width:992px) {
        border-bottom: 1px solid #000 !important;
    }
}

.select2-container--krajee .select2-dropdown {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    .select2-results {
        border-bottom: 2px solid @brand-primary-color;
    }
}

.select2-container--krajee .select2-results__option[aria-selected="true"] {
    background: @light-background-primary-color  !important;
    color: contrast(@light-background-primary-color) !important;
}

.select2-container--krajee .select2-results__option--highlighted[aria-selected] {
    border-color: @brand-primary-color  !important;
    background: @brand-primary-color  !important;
    color: contrast(@brand-primary-color) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.form-group.required .control-label::after {
    content: '*';
}

.form-control:focus {
    background: @white-color;
}

.has-success .form-control {
    color: @success-color;
}

.help-block {
    font-size: 14px;
    margin: 0;
}

@media screen and (max-width: 991px) {
Aster's avatar
Aster committed
218
219
220
    // .radio-inline {
    //     padding-left: 10px;
    // }
Marcello Pivanti's avatar
Marcello Pivanti committed
221

Aster's avatar
Aster committed
222
223
224
225
    // .radio-inline input[type="radio"] {
    //     margin-left: 0;
    //     margin-top: -10px;
    // }
Marcello Pivanti's avatar
Marcello Pivanti committed
226

Aster's avatar
Aster committed
227
228
229
230
231
232
    // div[role='radiogroup'] {
    //     display: flex;
    //     flex-direction: column;
    //     justify-content: flex-end;
    //     margin-bottom: 10px;
    // }
Marcello Pivanti's avatar
Marcello Pivanti committed
233
234
235
236
237
238
239
240

    .form-group {
        margin: 0 0 30px;
        border-bottom: 1px solid #ccc;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
Aster's avatar
Aster committed
241
        width: 100%;
Marcello Pivanti's avatar
Marcello Pivanti committed
242
243

        >div:last-child:not(.row) {
Aster's avatar
Aster committed
244
            margin-right: auto;
Marcello Pivanti's avatar
Marcello Pivanti committed
245
246
247
248
249
250
251
252
253
254
        }
    }
}


//FORM
.sondaggi-compilazione {
    .radio {
        margin-right: 20px;
    }
Aster's avatar
Aster committed
255
256

    .radio+.radio {
Marcello Pivanti's avatar
Marcello Pivanti committed
257
258
259
        margin-top: 10px;

    }
Aster's avatar
Aster committed
260

Marcello Pivanti's avatar
Marcello Pivanti committed
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
    .sondaggi-form {

        h3 {
            font-size: 2em;
            font-weight: bold;
        }

        .row {
            width: 100%;
            margin: 0;

            >div.col-xs-12 {
                padding: 0;
            }
        }

        .control-label {
            font-weight: normal;
Aster's avatar
Aster committed
279
            width: 100%;
Marcello Pivanti's avatar
Marcello Pivanti committed
280
281
282
283
284
285
286

            +div {
                text-align: right;
                margin-top: 10px;
            }
        }

Aster's avatar
Aster committed
287
        .testo-introduttivo {
Marcello Pivanti's avatar
Marcello Pivanti committed
288
289
290
291
            background: @light-background-primary-color;
            border-left: 15px solid @brand-primary-color;
        }

Aster's avatar
Aster committed
292
293
294
295
296
        // @media screen and (max-width:991px) {
        //     div[id^="div-domanda"]:not(.testo-introduttivo) {
        //         padding: 0;
        //     }
        // }
Marcello Pivanti's avatar
Marcello Pivanti committed
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325

        @media screen and (min-width:992px) {
            form>.row {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
            }
        }
    }

    &.fullsize-forced-js {

        @media screen and (min-width:992px) {
            form>.row {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;

                >div[id^="div-domanda"] {
                    width: 100% !important;
                }
            }

            .form-group {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;

Aster's avatar
Aster committed
326
                >.control-label {
Marcello Pivanti's avatar
Marcello Pivanti committed
327
                    width: 50%;
Aster's avatar
Aster committed
328

Marcello Pivanti's avatar
Marcello Pivanti committed
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
                    +div {
                        margin-top: 0;
                    }
                }
            }
        }
    }
}



.bk-btnFormContainer {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 20px !important;
    padding-bottom: 50px !important;
    //border-top: 1px solid darken(@light-background-color, 10%);

    *:not(:first-child) {
        margin-left: auto;
    }
}

.sondaggi-index {
    .am {
        font-size: 8vw;
        margin-bottom: 15px;

        +h2 {
            margin: 0;
            font-size: 3vw;
            line-height: 0.8;
            font-weight: bold;

            +h3 {
                margin: 0;
                font-size: 2vw;

                +.btn {
                    width: fit-content;
                    max-width: 300px;
                    margin-top: 30px;
                }
            }
        }

        @media screen and (max-width:991px) {

            font-size: 24vw;

            +h2 {
                font-size: 8vw;

                +h3 {
                    font-size: 6vw;

                }
            }


Aster's avatar
Aster committed
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
        }
    }
}

.sondaggi-compilazione {

    .container-padding {
        .icon-sondaggio {
            width: 60px;
            margin: 50px 0 0;
            display: block;
            position: relative;

            +h1 {
                margin: 10px 0;
                font-weight: 700;
                color: #000000;
                padding-bottom: 10px;

                +.simple-progressbar {
                    margin-bottom: 30px;
                }
            }
        }
    }

    div[id*='div-domanda'] {
        border-left: 2px solid #ccc;
        padding-left: 30px;
    }

    .testo-introduttivo {
        background: transparent !important;
        border: none !important;
        padding: 0;
        margin-top: 50px;

        &.testo-vincolato {
            margin-top: 0;
        }

        h1,
        h2,
        h3 {
            font-weight: normal;
            font-size: 1.5em;
            text-align: left !important;
        }

        p {
            text-align: left !important;
            margin-bottom: 0;
        }
    }

    .sortable-response {
        .checkbox-sortable {
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            padding: 5px;
            background: #e0e0e0;
            justify-content: space-between;
        }

        .direction {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            margin-left: 20px;
        }

        .am {
            padding: 5px 7px;
            border: 1px solid @brand-primary-color;
            background-color: @brand-primary-color;
            color: contrast(@brand-primary-color);
            cursor: pointer;

            +.am {
                margin-top: 20px;
            }

            &:hover {
                background-color: contrast(@brand-primary-color);
                color: @brand-primary-color;
            }
Marcello Pivanti's avatar
Marcello Pivanti committed
479
480
481
        }
    }
}