/
_forms.scss
202 lines (171 loc) · 3.07 KB
/
_forms.scss
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
195
196
197
198
199
200
201
202
/* Forms */
/*
* Remove inner padding and border in FF3/4
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
*/
input[type="submit"]::-moz-focus-inner {
border: 0;
padding: 0;
}
form ol {
list-style: none;
margin: 0 0 .75em 0;
margin: 0 0 .75rem 0;
}
form ol ol {
margin-left: 0;
}
form ol li {
list-style-position: outside;
margin: 0 0 .75em 0;
margin: 0 0 .75rem 0;
}
/*list-style-position fixes IE label margin bug*/
form ol ol li {
list-style-position: outside;
margin: 0 0 .25em 0;
margin: 0 0 .25rem 0;
}
form ol li.error input {
background: #FBE3E4;
}
p.inline-errors {
color: #D12F19;
}
form ol li.file {
background: #e1e1e1;
border: 1px solid #c8c8c8;
padding: .75em;
padding: .75rem;
}
form abbr {
border-bottom: 0;
}
label {
display: block;
}
.required label {
font-weight: bold;
}
.checkbox_field label,
.radio_field label {
font-weight: normal;
}
a.cancel {
color: #7d0d0d;
}
.inline-hints {
color: #666;
font-size: .75em;
font-size: .75rem;
margin-bottom: .25em;
margin-bottom: .25rem;
}
/* Fieldsets */
fieldset {
background: #f1f1f1;
border: 1px solid #e3e3e3;
margin: 0 0 1em 0;
margin: 0 0 1rem 0;
padding: 1rem 1rem .75em 1em;
padding: 1rem 1rem .75rem 1rem;
}
fieldset fieldset, fieldset fieldset fieldset {
border: 0;
padding: 0;
}
legend {
font-weight: bold;
}
.ie6 legend, .ie7 legend {
margin-left: .5em;
margin-left: .5rem;
}
fieldset.buttons {
background: inherit;
border: 0;
padding: 0;
}
fieldset.buttons li {
display: inline;
}
.radio fieldset {
margin: 0;
padding: 0;
}
/* Text fields */
input[type="color"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="range"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"] {
font-size: inherit;
padding: .25em;
padding: .25rem;
}
.ie6 input {
vertical-align: text-bottom;
}
input[disabled='disabled'] {
background-color: #fcfcfc;
cursor:default;
}
input[type="checkbox"] {
margin: 0 .25em 0 0;
margin: 0 .25rem 0 0;
position: relative;
vertical-align: middle;
}
.ie7 input[type="checkbox"] {
vertical-align: baseline;
}
input[type="radio"] {
margin: 0 .25em 0 0;
margin: 0 .25rem 0 0;
position: relative;
vertical-align: middle;
}
.check_boxes label {
display: inline;
padding: 0;
vertical-align: middle;
}
.radio label {
padding: 0;
}
/* Textareas */
textarea {
font-size: inherit;
margin: 0 .5em .5em 0;
margin: 0 .5rem .5rem 0;
padding: .5em;
padding: .5rem;
overflow: auto;
}
/* Select fields */
fieldset .select select {
font-size: .75em;
font-size: .75rem;
}
optgroup {
margin: 0 0 .5em 0;
margin: 0 0 .5rem 0;
}
/* Date & Time */
form ol li.date select, form ol li.time select, form ol li.datetime select {
display: inline;
width: auto;
}
form ol li.date ol li, form ol li.time ol li, form ol li.datetime ol li {
display: inline-block;
}