-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalidate_form.css
206 lines (182 loc) · 3.83 KB
/
validate_form.css
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
body {
width: 100%;
height: auto;
margin: 0;
padding: 0;
background: rgb(210,210,210);
font-family: Open Sans, sans serif;
}
/*the 'company' title*/
#title {
text-align: center;
font-family: allura;
font-size: 80px;
line-height: 1;
padding: 0;
margin: 0;
color: white;
text-shadow: 1px 1px 2px #292929, -1px -1px 0.5px #292929;
}
#form_container {
width: 300px;
height: auto;
margin: 30px auto;
padding: 30px;
border-radius: 5px;
background: #95a5a6;
box-shadow: 15px 15px 8px #292929;
position: relative;
z-index: 3;
border: none;
}
#form {
width: 100%;
height: auto;
margin: 30px auto;
border: none;
}
/*This hiddes the labels for use only by the JS as there are placeholders in the HTML*/
label {
color : red;
border : none;
}
input {
width: calc(100% - 16px);
padding: 10px 0 10px 10px;
margin: 0;
border: 2px solid transparent;
border-radius: 5px;
box-shadow: 1px 1px 1px #B2B2B2, -1px -1px 1px #292929;
position: relative;
margin-top: 15px;
}
input:focus {
outline:none;
border: 2px solid transparent;
}
select {
width: calc(100% - 0px);
padding: 10px 0 10px 10px;
margin: 0;
border: 2px solid transparent;
border-radius: 5px;
box-shadow: 1px 1px 1px #B2B2B2, -1px -1px 1px #292929;
position: relative;
}
select:focus {
outline:none;
border: 2px solid transparent;
}
input.isRequired {
border: 2px solid #e74c3c;
}
/*used a button so to easily add fontawesome's icon to the submit*/
button {
border: none;
background: #3498db;
width: 80px;
height: 35px;
padding: 0;
margin-top: 16px;
cursor: pointer;
box-shadow: 1px 1px 1px #292929, -1px -1px 1px #B2B2B2;
border-radius: 5px;
transition: all .3s;
color: white;
font-weight: 700;
margin : 20px 20px 20px 100px;
}
button:hover {
background: #2980b9;
}
button:focus {
box-shadow: 1px 1px 1px #B2B2B2, -1px -1px 1px #292929;
}
/*style for the error box*/
.errorMessages {
width: calc(100% - 8px);
padding: 20px 0;
background: #e74c3c;
color: white;
border: 2px solid #EC644B;
display: none;
}
.errorMessages li {
padding: 0 0 5px 0;
margin: 0 0 0 30px;
font-family: Open Sans, sans serif;
}
#info {
width: 360px;
position: absolute;
left: 20px;
top: 10px;
}
#info h1 {
margin: 10px 0;
}
#info li {
list-style: none;
margin-bottom: 5px;
}
h4{
color :whitesmoke;
}
p{
color : red;
}
.error-active{
width: calc(100% - 16px);
padding: 10px 0 10px 10px;
margin: 0;
border: 2px solid transparent;
border-radius: 5px;
outline-color: #e74c3c;
box-shadow: 1px 1px 1px #B2B2B2, -1px -1px 1px #292929;
position: relative;
}
.error-inactive{
width: calc(100% - 16px);
padding: 10px 0 10px 10px;
margin: 0;
border: 2px solid transparent;
border-radius: 5px;
box-shadow: 1px 1px 1px #B2B2B2, -1px -1px 1px #292929;
position: relative;
}
input.invalid{
border-color: #900;
background-color: #FDD;
}
input:focus.invalid {
outline: none;
}
select{
margin-top: 15px;
}
option{
font-weight: lighter;
}
/*
.error{
width: calc(100% - 16px);
padding: 10px 0 10px 10px;
margin: 0;
border: 2px solid transparent;
border-radius: 5px;
box-shadow: 1px 1px 1px #B2B2B2, -1px -1px 1px #292929;
position: relative;
margin-top: 20px;
border-color : #e74c3c;
}
.noerror{
width: calc(100% - 16px);
padding: 10px 0 10px 10px;
margin: 0;
border: 2px solid transparent;
border-radius: 5px;
box-shadow: 1px 1px 1px #B2B2B2, -1px -1px 1px #292929;
position: relative;
margin-top: 20px;
border-color : #2ecc71;
} */