-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathform-basic.css
194 lines (161 loc) · 3.66 KB
/
form-basic.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
html{
background-color: #f3f3f3;
}
.form-basic{
max-width: 640px;
margin: 0 auto;
padding: 55px;
box-sizing: border-box;
background-color: #404040; //#ffffff;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
font: bold 14px sans-serif;
text-align: center;
}
.form-basic .form-row{
text-align: left;
margin-bottom: 22px;
}
.form-basic .form-title-row{
text-align: center;
margin-bottom: 55px;
color: #909090; // APA new
}
.form-basic a{
color: #6caee0; // APA new
}
.form-basic h3 {
color: #909090; // APA new
}
/* The form title */
.form-basic h1{
display: inline-block;
box-sizing: border-box;
color: #4c565e;
font-size: 24px;
padding: 0 10px 15px;
border-bottom: 2px solid #6caee0;
margin: 0;
}
.form-basic .form-row > label span{
display: inline-block;
box-sizing: border-box;
color: #808080; // #5F5F5F;
width: 180px;
text-align: right;
vertical-align: top;
padding: 12px 25px;
}
.form-basic input[type=text],
.form-basic input[type=date],
.form-basic input[type=time],
.form-basic input[type=number],
.form-basic input[type=email],
.form-basic input[type=url],
.form-basic input[type=tel]{
color: #5f5f5f;
box-sizing: border-box;
width: 240px;
box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.08);
padding: 12px;
border: 1px solid #dbdbdb;
}
.form-basic input[type=color]{
//color: #5f5f5f;
//box-sizing: border-box;
width: 100px;
height: 50px;
//box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.08);
//border: 0px solid #dbdbdb;
}
.form-basic input[type=radio],
.form-basic input[type=checkbox]{
box-shadow: none;
width: auto;
}
.form-basic input[type=checkbox]{
margin-top: 13px;
}
.form-basic select{
background-color: #ffffff;
color: #5f5f5f;
box-sizing: border-box;
max-width: 240px;
box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.08);
padding: 12px 8px;
border: 1px solid #dbdbdb;
}
.form-basic textarea{
color: #5f5f5f;
box-sizing: border-box;
width: 240px;
height: 80px;
box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.08);
font: normal 13px sans-serif;
padding: 12px;
border: 1px solid #dbdbdb;
resize: vertical;
}
.form-basic .form-radio-buttons input[type=checkbox]{
margin-top: 0;
}
.form-basic .form-radio-buttons{
display: inline-block;
vertical-align: top;
}
.form-basic .form-radio-buttons > div{
margin-top: 10px;
}
.form-basic .form-radio-buttons label span{
margin-left: 8px;
color: #5f5f5f;
font-weight: normal;
}
.form-basic .form-radio-buttons input{
width: auto;
}
.form-basic button{
//display: block;
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;
padding: 2px 6px;
border: 0;
//margin: 40px 183px 0;
margin: 10px 0 10px 10px;
}
/* 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-basic{
padding: 30px;
max-width: 480px;
}
.form-basic .form-row{
max-width: 300px;
margin: 25px auto;
text-align: left;
}
.form-basic .form-title-row{
margin-bottom: 50px;
}
.form-basic .form-row > label span{
display: block;
text-align: left;
padding: 0 0 15px;
}
.form-basic select{
width: 240px;
}
.form-basic input[type=checkbox]{
margin-top:0;
}
.form-basic .form-radio-buttons > div{
margin: 0 0 10px;
}
.form-basic button{
margin: 0;
}
}