summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE-common/client/app/styles/form.less
blob: 6418ab2d97a076c32f1fcb795f0c54eda201fa6a (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
/*-
 * ============LICENSE_START==========================================
 * ONAP Portal
 * ===================================================================
 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
 * ===================================================================
 *
 * Unless otherwise specified, all software contained herein is licensed
 * under the Apache License, Version 2.0 (the "License");
 * you may not use this software except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *             http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Unless otherwise specified, all documentation contained herein is licensed
 * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
 * you may not use this documentation except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *             https://creativecommons.org/licenses/by/4.0/
 *
 * Unless required by applicable law or agreed to in writing, documentation
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * ============LICENSE_END============================================
 *
 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
 */
 .form {
    input, textarea, label , .multiple {
        .blue14r;
    }
    input, textarea , .multiple {
        &:focus {
            outline: none;
            border: 1px solid @portalDBlue;
        }
        border: 1px solid @portalDBlue;
        padding: 8px;
        &:disabled {
            border: 1px solid @funcBkgGray;
            .bg_portalDarkPurple;
        }
        &.ng-invalid.ng-touched {
            border: 1px solid @err;
            box-shadow: 0 0 2.55px 0.45px rgba(218,31,61,.5);
            &:focus {
                border: 1px solid @portalDBlue;
            }
        }
    }
    input[type=number] {
        -moz-appearance:textfield;
    }
    textarea {
        min-height: 148px;
        max-width: @input-max-width;
    }
    .flex-group {
        display: flex;
        justify-content: space-between;
    }
    .form-group {
        margin: 0 0 18px;
        position: relative;
    }
    .checkbox {
        label {
            cursor: pointer;
        }
    }
    label {
        margin: 0 0 3px;
        display: block;
    }
    .text {
        width: 100%;
        display: block;
    }
    .short {
        width: 104px;
    }
    .multiple{
        padding: 0;
    }
    .error {
        color: @portalGreen;
        background: @err;
        border-radius: 0 5px 5px 0;
        font-size: 12px;
        line-height: 20px;
        text-align: center;
        width: 100%;
        position: absolute;
        top: 18px;
        margin-left: 75%;
        z-index: 100;
        height: 33px;
        padding: 8px;
        box-shadow: 0 0 2.55px 0.45px rgba(218,31,61,.5);
        &:before {
            content: '';
            width: 0;
            height: 0;
            position: absolute;
            left: -9px;
            top: 7px;
            border-top: 9px solid transparent;
            border-bottom: 9px solid transparent;
            border-right: 9px solid @err;
        }
    }
}

.required:before {
    color: @funcRed;
    margin-right: 2px;
    content:  "* ";
    position: absolute;
    top: 28px;
    left: -10px;
}

.custom-input-field{
    padding-left: 6px;
    padding-top: 0;

    height: 30px;
    line-height: 30px;
    width: 100%;
    border: 1px solid @portalLGray;
    border-radius: 0;
    position: relative;
    padding-bottom: 0px;

}
.custom-select-field{
    padding-left: 6px;
    padding-top: 0;

    height: 30px;
    line-height: 30px;
    width: 100%;
    border: 1px solid @portalLGray;
    border-radius: 0;
    position: relative;
}

.custom-select-wrap{
    width: 100%;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}
.custom-select-wrap::after{
    content: '';
    .arrow_down;
    display: block;
    position: absolute;
    top: 12px;
    right: 10px;
    z-index: 999;
}

select{
    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
    text-indent: 0.01px;
    text-overflow: '';
}