summaryrefslogtreecommitdiffstats
path: root/webapp/sass/components/_inputs.scss
blob: 4d99e00e46e446c391e0bc7879bac5a0b01a5b75 (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
@charset 'UTF-8';

.form-control {
    @include border-radius($border-rad);

    &:focus {
        @include box-shadow(none);
    }

    &.no-padding {
        line-height: 32px;
        padding: 0;
    }

    &.no-resize {
        resize: none;
    }

    &[disabled],
    [readonly] {
        @include alpha-property(background, $white, .1);
        color: inherit;
        cursor: auto;
    }
}

fieldset {
    &[disabled] {
        .form-control {
            @include alpha-property(background, $white, .1);
            color: inherit;
            cursor: auto;
        }
    }
}

.admin-textarea {
    resize: none;
}

input {
    &[type='radio'],
    &[type='checkbox'] {
        font-size: 14px;
        margin-top: 3px;
    }
}

input::-webkit-file-upload-button {
    display: none
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: inherit;
    opacity: 0.5;
}

::-moz-placeholder { /* Firefox 19+ */
    color: inherit;
    opacity: 0.5;
}

:-ms-input-placeholder { /* IE 10+ */
    color: inherit;
    opacity: 0.5;
}

:-moz-placeholder { /* Firefox 18- */
    color: inherit;
    opacity: 0.5;
}