-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathform-labels-on-top.css
109 lines (90 loc) · 2.1 KB
/
form-labels-on-top.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
html{
background-color: #f3f3f3;
}
.form-labels-on-top{
box-sizing: border-box;
max-width: 475px;
margin: 0 auto;
padding: 55px;
background-color: #ffffff;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
font: bold 14px sans-serif;
text-align: center;
}
.form-labels-on-top .form-row{
text-align: left;
max-width: 315px;
margin: 25px auto 0;
}
.form-labels-on-top .form-title-row{
margin: 0 auto 40px;
}
.form-labels-on-top h1{
display: inline-block;
box-sizing: border-box;
color: #4C565E;
font-size: 24px;
padding: 0 0 12px 0;
margin: 0;
border-bottom: 2px solid #6CAEE0;
}
.form-labels-on-top .form-row > label span{
display: block;
box-sizing: border-box;
color: #5f5f5f;
width: 200px;
padding: 0 0 12px;
}
.form-labels-on-top input{
color: #5f5f5f;
box-sizing: border-box;
width: 300px;
box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.08);
padding: 12px 18px;
border: 1px solid #dbdbdb;
}
.form-labels-on-top input[type=radio],
.form-labels-on-top input[type=checkbox]{
box-shadow: none;
width: auto;
}
.form-labels-on-top select{
background-color: #ffffff;
color: #5f5f5f;
box-sizing: border-box;
width: 240px;
box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.08);
padding: 12px 18px;
border: 1px solid #dbdbdb;
}
.form-labels-on-top .form-radio-buttons > div{
margin-bottom: 10px;
}
.form-labels-on-top .form-radio-buttons label span{
margin-left: 8px;
color: #5f5f5f;
font-weight: normal;
}
.form-labels-on-top .form-radio-buttons input{
width: auto;
}
.form-labels-on-top button{
border-radius: 2px;
background-color: #6caee0;
color: #ffffff;
font-weight: bold;
box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.08);
padding: 14px 22px;
border: 0;
margin-top: 15px;
}
/* Making the form responsive. Remove this media query
if you don't need the form to work on mobile devices. */
@media (max-width: 600px) {
.form-labels-on-top{
padding: 30px;
}
.form-labels-on-top input{
width: 240px;
}
}