-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayment-form.css
64 lines (62 loc) · 1.03 KB
/
payment-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
h1{
margin-bottom: 0;
}
ul{
margin:0;
padding: 0;
list-style-type: none;
}
form{
margin: 0 auto;
width: 420px;
padding: 1em;
border:2px double goldenrod;
border-radius: 1em;
}
label span{
/*Align inputs vertically*/
display: inline-block;
width: 120px;
text-align: right;
}
input{
font: 1em sans-serif;
width: 250px;
box-sizing: border-box;
border: 2px solid rgb(190, 209, 16);
}
input[type=radio] {
width: auto;
border: none;
}
input:focus {
border-color: rgb(11, 235, 97);
}
fieldset{
width: 250px;
box-sizing: border-box;
margin-left: 136px;
border: 2px solid rgb(190, 209, 16);
}
button {
margin: 20px 0 0 124px;
}
/* =================
Validation
====================== */
div{
position: relative;
}
input+.validation{
padding-right: 30px;
}
input:invalid+.validation:after{
position: absolute;
content: '✖';
padding-left: 5px;
}
input:valid+.validation:after {
position: absolute;
content: '✓';
padding-left:5px;
}