-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathforms.css
64 lines (64 loc) · 1.85 KB
/
forms.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
/* FORMS */
/* RESET */
fieldset {
border: thin solid black;
padding: 0 10px;
}
legend {
padding: 0 10px;
}
input[type=text],
input[type=password],
textarea {
-moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
width: 100%;
background: #ccc;
border: 1px solid #9D9593;
color: #000;
float: left;
min-height: 30px;
padding: 1% 3%;
}
input, textarea, button {
-webkit-appearance: none;
-webkit-border-radius: 0;
margin: 5px 0;
}
input[type=text]:focus,
textarea:focus {
background: #898989;
box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
-moz-box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
-webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
}
/*Remove button padding in FF*/
input::-moz-focus-inner {
border: 0;
padding: 0;
}
form, input, button {
width: 100%;
}
input[type=submit], button, input.button {
cursor: pointer;
}
button input:hover, button input:focus, button:focus, button input:active,
input.button:hover, button:hover, input.button:focus, input.button:active {
background: #ddd;
box-shadow: none;
}
button {
border: none;
text-align: center;
background: #f0f0f0;
cursor: pointer;
float: left;
height: 30px;
padding: 0;
width: 100%;
}
form label {
margin: 0 0 1%;
}