Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_forms.less « general « stylesheets « Morpheus « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dcbe261807d02cc97f53a48ef642b580af602199 (plain)
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
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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
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
326
327
328
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
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
479
480
481
482
483
484
485
486
487
488
489
490
491
form {
    margin-bottom: 30px;
}

label {
    cursor: pointer;
}

input:not([type="checkbox"]):not([type="submit"]):not([type="button"]), select, textarea {
    border: 1px solid #d4d4d4;
    font-size: 14px;
    color: @theme-color-text-lighter;
    .border-radius(2px);
    margin-left: 0;
    padding: 10px 12px;
    min-height: 20px;
    .box-sizing(border-box);
    background: @theme-color-background-base;
}
input:not([type="checkbox"]):not([type="submit"]):not([type="button"]), textarea {
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -moz-box-shadow:    inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow:         inset 0 1px 1px rgba(0,0,0,.075);
}
input[disabled] {
    background: #F5F5F5 none !important;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: @theme-color-background-base;
    background-image: url("plugins/Morpheus/images/select_arrow.png");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 30px;
}
// This class/mixin allows to restore the native style of selects when needed
.native-select {
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
    padding: 4px 4px;
    background: none;
}

.form-group {
    width: 100%;
    margin-bottom: 15px;
    .clearfix();

    label {
        display: block;
        margin: 8px 0 6px;
        font-size: 14px;
        line-height: 20px;
        width: 40%;
    }
    input, select, textarea {
        display: block;
        width: 40%;
    }
    .input-group {
        width: 40%;
    }

    .radio, .checkbox {
        font-size: 12px;
        width: 40%;
        text-transform: none;
        line-height: 20px;
        margin: 7px 0 2px;
        input[type="checkbox"], input[type="radio"] {
            display: inline;
            width: auto;
        }
        // Quickform adds a label automatically so we have to remove its formatting
        // TODO remove when we get rid of Quickform
        label {
            text-transform: none;
            display: inline;
            width: auto;
            font-size: inherit;
        }
        .form-description {
            display: inline;
        }
    }

    .form-help {
        float: right;
        width: 58%;
        margin-bottom: 0;
    }

    label .form-description {
        display: inline;
        &:before {
            content: '(';
        }
        &:after {
            content: ')';
        }
    }

    .form-description {
        width: 40%;
        display: block;
        margin-top: 6px;
    }

    .sites_autocomplete {
        position: relative;
    }
}

// TODO Form helps are used outside of forms in UserCountry (old table layout)
// Once this plugin uses the new form layout, move those rules back into ".form-group .form-help"
.form-help {
    .alert;
    .alert-info;
    // Smaller padding to match input's heights
    padding: 11px 20px 10px;
    &:before {
        // Remove the icon
        content: "";
    }
}

.form-description {
    color: @theme-color-text-lighter;
    font-style: italic;
}

.add-cors-host,
.submit {
    .btn;
}

.top_bar_sites_selector {
    z-index: 143;
    .sites_autocomplete .custom_select {
        z-index: 139;
    }
}

.sites_autocomplete {
    input {
        min-height: 0;
    }
}

.ajaxError {
    background: @theme-color-brand;
    color: #fff;
    border: 0px;
    .border-radius(6px);
    padding: 20px 25px;
    text-align: center;
    font-weight: normal;
}

.limitSelection {
    > ul {
        position: relative;
        top: -6px;
    }
    > div {
        .border-radius(2px);
        background-color: @theme-color-background-base;
        .font-default(10px, 12px);
        background: none;
        padding: 2px 14px 2px 1px;
        span {
            position: relative;
            background: none;
            color: @theme-color-text;
            display: block;
            padding-right: 3px;
            &:after {
                content: '';
                border-left: 4px solid transparent;
                border-right: 4px solid transparent;
                border-top: 5px solid @theme-color-brand;
                position: absolute;
                top: 7px;
                right: -9px;
            }
        }
    }

    span {
        color: @theme-color-text;
        font-weight: normal;
    }

    &.visible {
        > div {
            background-image: none;
            > span:after {
                content: '';
                border-left: 4px solid transparent;
                border-right: 4px solid transparent;
                border-bottom: 5px solid @theme-color-brand;
                border-top-color: transparent;
                position: absolute;
                top: 1px;
                right: -9px;
            }
        }
    }
}

//checkboxes and radio
.form-radio, .form-checkbox {
    display: inline-block;
    padding: 0;
    margin: 0;
}
.form-radio, .form-checkbox {
    height: 15px;
    width: 15px;
    float: left;
    cursor: pointer;
    background: url('plugins/Morpheus/images/forms-sprite.png');
    margin: 2px 5px 2px 0;
}

.form-radio.disabled {
    background-position: 15px -16px;
}

.form-checkbox.disabled {
    background-position: 15px 0px;
}

.form-radio + label, .form-checkbox + label {
    float: left;
    display: inline-block;

    + .form-description {
        margin-left: 1em;
    }

    + br, + .form-description + br {
        clear: both;
    }

    + .form-radio, + .form-checkbox {
        margin-left: 32px;
    }
}

fieldset > .form-radio + label { // assumes <br/> after the label
    display: inline-block;
    margin-bottom: -.5em;
}

label {
    &.hover,
    &:hover {
        border: 0px;
    }
}

.form-radio {
    background-position: 0 -16px;

    &.form-hover {
        background-position: -60px -16px;
    }

    &.checked {
        background-position: -30px -16px;
        &.form-hover {
            background-position: -90px -16px;
        }
    }
}

.form-checkbox {
    background-position: 0 0;

    &.form-hover {
        background-position: -60px 0;
    }

    &.checked {
        background-position: -30px 0;
        &.form-hover {
            background-position: -90px 0;
        }
    }
}

.prettycheckbox a:focus, .prettyradio a:focus {
    outline: 0 none;
}
.prettycheckbox label, .prettyradio label {
    display: block;
    float: left;
    margin: 2px;
    cursor: pointer;
}
.prettycheckbox a.disabled, .prettycheckbox label.disabled, .prettyradio a.disabled, .prettyradio label.disabled {
    cursor: not-allowed;
}
.prettycheckbox a {
    background-position: 0 0;
}
.prettycheckbox a:focus {
    background-position: -15px 0;
}
.prettycheckbox a.checked {
    background-position: -38px 0;
}
.prettycheckbox a.checked:focus {
    background-position: -53px 0;
}
.prettycheckbox a.checked.disabled {
    background-position: -99px 0;
}
.prettycheckbox a.disabled {
    background-position: -76px 0;
}
.prettyradio a {
    background-position: -129px 0;
}
.prettyradio a:focus {
    background-position: -144px 0;
}
.prettyradio a.checked {
    background-position: -167px 0;
}
.prettyradio a.checked:focus {
    background-position: -182px 0;
}
.prettyradio a.checked.disabled {
    background-position: -228px 0;
}
.prettyradio a.disabled {
    background-position: -205px 0;
}

// specific form control overrides (for iCheck)
.indented-radio-button {
    margin: 0;
}

.listReports > li:after {
    content: "";
    display: table;
    clear: both;
}

.listReports {
    .form-radio + label, .form-checkbox + label {
        width: 250px;
    }
}

// Bootstrap input groups
// --------------------------------------------------
.input-group {
    position: relative; // For dropdowns
    display: table;
    border-collapse: separate; // prevent input groups from inheriting border styles from table cells when placed within a table

    // Undo padding and float of grid classes
    &[class*="col-"] {
        float: none;
        padding-left: 0;
        padding-right: 0;
    }

    input {
        // Ensure that the input is always above the *appended* addon button for
        // proper border colors.
        position: relative;
        z-index: 2;

        // IE9 fubars the placeholder attribute in text inputs and the arrows on
        // select elements in input groups. To fix it, we float the input. Details:
        // https://github.com/twbs/bootstrap/issues/11561#issuecomment-28936855
        float: left;

        width: 100%;
        margin-bottom: 0;
    }
}
// Display as table-cell
.input-group-addon,
.input-group-btn,
.input-group input {
    display: table-cell;

    &:not(:first-child):not(:last-child) {
        border-radius: 0;
    }
}
// Addon and addon wrapper for buttons
.input-group-addon,
.input-group-btn {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle; // Match the inputs
}
// Text input groups
.input-group-addon {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: normal;
    color: @theme-color-text-lighter;
    line-height: 1;
    text-align: center;
    background-color: @theme-color-background-base;
    border: 1px solid #d4d4d4;
    border-radius: 2px;
    // Nuke default margins from checkboxes and radios to vertically center within.
    input[type="radio"],
    input[type="checkbox"] {
        margin-top: 0;
    }
}

// Reset rounded corners
.input-group input:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn,
.input-group-btn:first-child > .btn-group > .btn,
.input-group-btn:first-child > .dropdown-toggle,
.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),
.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}
.input-group-addon:first-child {
    border-right: 0;
}
.input-group input:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group > .btn,
.input-group-btn:last-child > .dropdown-toggle,
.input-group-btn:first-child > .btn:not(:first-child),
.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}
.input-group-addon:last-child {
    border-left: 0;
}
// Button input groups
.input-group-btn {
    position: relative;
    // Jankily prevent input button groups from wrapping with `white-space` and
    // `font-size` in combination with `inline-block` on buttons.
    font-size: 0;
    white-space: nowrap;

    // Negative margin for spacing, position for bringing hovered/focused/actived
    // element above the siblings.
    > .btn {
        position: relative;
        + .btn {
            margin-left: -1px;
        }
        // Bring the "active" button to the front
        &:hover,
        &:focus,
        &:active {
            z-index: 2;
        }
    }

    // Negative margin to only have a 1px border between the two
    &:first-child {
        > .btn,
        > .btn-group {
            margin-right: -1px;
        }
    }
    &:last-child {
        > .btn,
        > .btn-group {
            z-index: 2;
            margin-left: -1px;
        }
    }
}