-
Notifications
You must be signed in to change notification settings - Fork 3
/
style.css
49 lines (47 loc) · 789 Bytes
/
style.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
body{
font-family: arial;
color: white;
background-color:black;
}
h1{
font-weight: normal;
margin: 20px auto;
text-align: center;
}
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: red;
}
input + p{
font-family: arial;
font-size: 0.9em;
font-weight: bold;
text-align: center;
margin: 0 10px;
color: red;
opacity: 0;
height: 0;
}
input.invalid + p{
opacity: 1;
height: auto;
margin-bottom: 20px;
}