summaryrefslogtreecommitdiffstats
path: root/webapp/sass/components/_inputs.scss
blob: 857772d7caeaaaf77a2f37fc000611f3a973ec3c (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
@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;
    }
}

::-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;
}