-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.css
113 lines (113 loc) · 2.23 KB
/
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
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
input[type=text],
input[type=email],
input[type=password],
input[type=search],
textarea {
padding: 6px 9px;
border: 1px solid #ddd;
border-radius: 3px;
background: #fff;
font: inherit;
}
input[type=text]:hover,
input[type=email]:hover,
input[type=password]:hover,
input[type=search]:hover,
textarea:hover {
border-color: #bbb;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=search]:focus,
textarea:focus {
border-color: #419bf9;
box-shadow: 0 0 0 2px rgba(70, 158, 250, .5);
}
input[type=text]:disabled,
input[type=email]:disabled,
input[type=password]:disabled,
input[type=search]:disabled,
textarea:disabled {
background: #eee;
}
input[type=text]:disabled:hover,
input[type=email]:disabled:hover,
input[type=password]:disabled:hover,
input[type=search]:disabled:hover,
textarea:disabled:hover {
border-color: #ddd;
}
input[type=checkbox],
input[type=radio] {
font-family: FontAwesome;
font-size: 1.5em;
vertical-align: sub;
color: #333;
width: 16px;
-webkit-appearance: none;
}
input[type=checkbox]:hover,
input[type=radio]:hover {
color: #000;
}
input[type=checkbox]:focus,
input[type=radio]:focus {
color: #2973B8;
}
input[type=checkbox]:disabled,
input[type=radio]:disabled {
color: #999;
}
input[type=checkbox]::before {
content: "\f096";
}
input[type=checkbox]:checked::before {
content: "\f046";
}
input[type=radio]::before {
content: "\f10c";
}
input[type=radio]:checked::before {
content: "\f192";
}
select {
background: #fff;
border: 1px solid #ddd;
height: 32px;
}
select:hover {
border-color: #bbb;
}
select:focus {
border-color: #2f84f8;
box-shadow: 0 0 0 2px rgba(70, 158, 250, .5);
}
button {
padding: 8px 12px;
background: #fff;
border: 1px solid #ddd;
border-radius: 3px;
font-size: 1.1em;
cursor: pointer;
}
button:hover {
border-color: #bbb;
}
button:focus {
border-color: #2f84f8;
box-shadow: 0 0 0 2px rgba(70, 158, 250, .5);
}
button:active {
/*background: #f0f0f0;*/
}
button.active,
button[type=submit] {
background: #419bf9 linear-gradient(to bottom, rgba(65,155,249,1) 0%,rgba(26,130,251,1) 100%);
border-color: #2f84f8;
color: #fff;
}
button.active:active,
button[type=submit]:active {
background: linear-gradient(to bottom, rgba(80,154,251,1) 0%,rgba(20,105,224,1) 100%);
}