-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
56 lines (47 loc) · 892 Bytes
/
styles.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
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;500;600&display=swap');
body {
font-family: 'Poppins', sans-serif;
color: #333;
}
h1 {
font-weight: normal;
margin: 20px auto;
text-align: center;
color: #0C2B53;
}
form {
width: 500px;
margin: 20px auto;
}
input {
display: block;
padding: 8px 16px;
font-size: 2em;
margin: 10px auto;
width: 100%;
box-sizing: border-box;
border-radius: 10px;
border: 3px solid #ccc;
outline: none !important;
}
/* Validation Styles */
input.valid {
border-color: #36cc36;
}
input.invalid {
border-color: orange;
}
input+p {
font-size: 0.9em;
font-weight: bold;
text-align: center;
margin: 0 10px;
color: orange;
opacity: 0;
height: 0;
}
input.invalid+p {
opacity: 1;
height: auto;
margin-bottom: 20px;
}