-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
47 lines (43 loc) · 701 Bytes
/
styles.css
File metadata and controls
47 lines (43 loc) · 701 Bytes
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
body{
font-family: arial;
color: #333;
}
h1{
font-weight: normal;
margin: 1.5em auto 0;
text-align: center;
}
form{
width: 500px;
margin: 1.9em auto;
}
input{
display: block;
padding: .5em 1em;
font-size: 1.5rem;
margin: 10px auto;
width: 100%;
box-sizing: border-box;
border-radius: 10px;
border: 3px solid #ccc;
outline: none !important;
}
input.valid {
border-color: #36cc36;
}
input.invalid {
border-color: red;
}
input + p {
font-size: .9rem;
font-weight: bold;
margin: 0 .9em;
color: red;
opacity: 0;
height: 0;
}
input.invalid + p {
opacity: 1;
height: auto;
margin-bottom: .7em;
}