-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformvalidation.css
141 lines (118 loc) · 2.7 KB
/
formvalidation.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
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Lato', sans-serif;
}
.container{
width: 100%;
height: 100vh;
background: #c7ebc7;
display: flex;
align-items: center;
justify-content: center;
}
.container form{
width: 90%;
max-width: 500px;
padding: 50px 30px 20px;
background: #fff;
border-radius: 5px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
position: relative;
}
.container .fa-envelope{
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%,-50%);
background: #fff;
font-size: 26px;
border-radius: 50%;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.container .input-box{
width: 100%;
display: flex;
align-items: center;
position: relative;
margin: 10px 0;
}
.container .input-box label{
flex-basis: 28%;
}
.container .input-box input, .container .input-box textarea{
flex-basis: 68%;
background: transparent;
border: 0;
outline: 0;
padding: 10px 0;
border-bottom: 1px solid #999;
color: #333;
font-size: 16px;
}
.container .input-box input::placeholder{
font-size: 14px;
}
.container .btn{
background: #2b46c0;
color: #fff;
border-radius: 5px;
border: 1px solid rgba(255, 255, 255, 0.7);
padding: 10px 20px;
outline: 0;
cursor: pointer;
display: block;
margin: 30px auto 10px;
transition: all 0.5s ease;
text-transform: uppercase;
}
.container .btn:hover{
background: #0f2fbe;
}
.container .input-box span{
position: absolute;
right: 17px;
bottom: 12px;
font-size: 14px;
color: #ff0000;
}
.container #submit-error{
color: #ff0000;
}
.container .input-box .fa-check{
color: #2e8b57;
background-color: #e2dcdc;
border-radius: 50%;
padding: 7%;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.container .popup{
width: 400px;
background: #fff;
border-radius: 6px;
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%, -50%) scale(0.1);
text-align: center;
padding: 0 30px 30px;
color: #333;
visibility: hidden;
transition: transform 0.4s, top 4s;
}
.container .popup .fa-check{
background: #fff;
font-size: 26px;
border-radius: 50%;
padding: 20px;
margin-bottom: 30px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.container .open-popup{
visibility: visible;
top: 50%;
transform: translate(-50%, -50%) scale(1);
}