1 | /* Removes inner padding and border in FF3+ - Knacss */ |
---|
2 | |
---|
3 | button::-moz-focus-inner, |
---|
4 | input[type=button]::-moz-focus-inner, |
---|
5 | input[type=reset]::-moz-focus-inner, |
---|
6 | input[type=submit]::-moz-focus-inner { |
---|
7 | border: 0; |
---|
8 | padding: 0; |
---|
9 | } |
---|
10 | |
---|
11 | |
---|
12 | /* tous les boutons */ |
---|
13 | |
---|
14 | button, |
---|
15 | a.button, |
---|
16 | input[type=button], |
---|
17 | input[type=reset], |
---|
18 | input[type=submit] { |
---|
19 | border: 1px solid #ccc; |
---|
20 | font-family: $sans-serif-input; |
---|
21 | padding: 3px 10px; |
---|
22 | line-height: normal !important; |
---|
23 | display: inline-block; |
---|
24 | font-size: 100%; |
---|
25 | text-align: center; |
---|
26 | text-decoration: none; |
---|
27 | cursor: pointer; |
---|
28 | position: relative; |
---|
29 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); |
---|
30 | border-style: solid; |
---|
31 | border-width: 1px; |
---|
32 | } |
---|
33 | |
---|
34 | button, |
---|
35 | input[type=button], |
---|
36 | input[type=reset], |
---|
37 | input[type=submit] { |
---|
38 | -webkit-appearance: button; |
---|
39 | } |
---|
40 | |
---|
41 | |
---|
42 | /* validation */ |
---|
43 | |
---|
44 | input[type=submit], |
---|
45 | a.button.submit, |
---|
46 | input.button.start { |
---|
47 | color: #fff; |
---|
48 | background-color: #25A6E1; |
---|
49 | background-image: -webkit-gradient(linear, left top, left bottom, from(#25A6E1), to(#188BC0)); |
---|
50 | background-image: linear-gradient(#25A6E1, #188BC0); |
---|
51 | border-color: #25A6E1; |
---|
52 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); |
---|
53 | } |
---|
54 | |
---|
55 | input[type=submit]:hover, |
---|
56 | input[type=submit]:focus, |
---|
57 | input.button.start:hover, |
---|
58 | input.button.start:focus, |
---|
59 | a.button.submit:hover, |
---|
60 | a.button.submit:focus { |
---|
61 | background-color: #188BC0; |
---|
62 | background-image: -webkit-gradient(linear, left top, left bottom, from(#188BC0), to(#25A6E1)); |
---|
63 | background-image: linear-gradient(#188BC0, #25A6E1); |
---|
64 | border-color: #188BC0; |
---|
65 | } |
---|
66 | |
---|
67 | |
---|
68 | /* suppression, reset, "neutres" fond gris */ |
---|
69 | |
---|
70 | button, |
---|
71 | input[type=button], |
---|
72 | input.button, |
---|
73 | input[type=reset], |
---|
74 | input[type=submit].reset, |
---|
75 | input.reset, |
---|
76 | input[type=submit].delete, |
---|
77 | input.delete, |
---|
78 | a.button, |
---|
79 | a.button.delete, |
---|
80 | a.button.reset { |
---|
81 | color: #000; |
---|
82 | background-color: #EAEAEA; |
---|
83 | background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#EAEAEA)); |
---|
84 | background-image: linear-gradient(#f9f9f9, #EAEAEA); |
---|
85 | background-repeat: repeat-x; |
---|
86 | border-color: #dfdfdf #dfdfdf #C5C5C5; |
---|
87 | text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9); |
---|
88 | } |
---|
89 | |
---|
90 | button:hover, |
---|
91 | input[type=button]:hover, |
---|
92 | input.button:hover, |
---|
93 | button:focus, |
---|
94 | input[type=button]:focus, |
---|
95 | input.button:focus, |
---|
96 | input[type=reset]:hover, |
---|
97 | input[type=submit].reset:hover, |
---|
98 | input.reset:hover, |
---|
99 | input[type=reset]:focus, |
---|
100 | input[type=submit].reset:focus, |
---|
101 | input.reset:focus, |
---|
102 | input[type=submit].delete:hover, |
---|
103 | input.delete:hover, |
---|
104 | input[type=submit].delete:focus, |
---|
105 | input.delete:focus, |
---|
106 | a.button.delete:hover, |
---|
107 | a.button.reset:hover, |
---|
108 | a.button:hover, |
---|
109 | a.button.delete:focus, |
---|
110 | a.button.reset:focus, |
---|
111 | a.button:focus { |
---|
112 | background-color: #DADADA; |
---|
113 | background-image: -webkit-gradient( linear, left top, left bottom, from(#EAEAEA), to(#DADADA)); |
---|
114 | background-image: linear-gradient(#EAEAEA, #DADADA); |
---|
115 | background-repeat: repeat-x; |
---|
116 | border-color: #CCCCCC #CCCCCC #B5B5B5; |
---|
117 | } |
---|
118 | |
---|
119 | |
---|
120 | /* suppression */ |
---|
121 | |
---|
122 | input[type=submit].delete, |
---|
123 | input.delete, |
---|
124 | a.button.delete { |
---|
125 | color: #900; |
---|
126 | } |
---|
127 | |
---|
128 | input[type=submit].delete:hover, |
---|
129 | input.delete:hover, |
---|
130 | a.button.delete:hover, |
---|
131 | input[type=submit].delete:focus, |
---|
132 | input.delete:focus, |
---|
133 | a.button.delete:focus { |
---|
134 | color: #FFFFFF; |
---|
135 | background-color: #B33630; |
---|
136 | background-image: -webkit-gradient( linear, left top, left bottom, from(#DC5F59), to(#B33630)); |
---|
137 | background-image: linear-gradient(#DC5F59, #B33630); |
---|
138 | background-repeat: repeat-x; |
---|
139 | border-color: #CD504A; |
---|
140 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); |
---|
141 | } |
---|
142 | |
---|
143 | #info-box a.button { |
---|
144 | padding: 0 .5em; |
---|
145 | margin-left: 2em; |
---|
146 | } |
---|
147 | |
---|
148 | .button.add { |
---|
149 | color: #000; |
---|
150 | background-color: #bee74b; |
---|
151 | background-image: -webkit-gradient(linear, left top, left bottom, from(#bee74b), to(#9BCA1C)); |
---|
152 | background-image: linear-gradient(#bee74b, #9BCA1C); |
---|
153 | border-color: #bee74b; |
---|
154 | padding: .33em 1.33em .5em; |
---|
155 | text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); |
---|
156 | font-weight: normal; |
---|
157 | font-size: 1.16em; |
---|
158 | } |
---|
159 | |
---|
160 | .button.add:hover, |
---|
161 | .button.add:active, |
---|
162 | .button.add:focus { |
---|
163 | background-color: #9BCA1C; |
---|
164 | background-image: -webkit-gradient(linear, left top, left bottom, from(#9BCA1C), to(#bee74b)); |
---|
165 | background-image: linear-gradient(#9BCA1C, #bee74b); |
---|
166 | border-color: #9BCA1C; |
---|
167 | } |
---|
168 | |
---|
169 | .button-add:focus { |
---|
170 | outline: dotted 1px; |
---|
171 | } |
---|
172 | |
---|
173 | |
---|
174 | /* paragraphe pour bouton Nouveau bidule */ |
---|
175 | |
---|
176 | p.top-add { |
---|
177 | text-align: right; |
---|
178 | margin: 0; |
---|
179 | } |
---|
180 | |
---|
181 | |
---|
182 | /* disabled */ |
---|
183 | |
---|
184 | input.disabled, |
---|
185 | input[type=submit].disabled { |
---|
186 | text-shadow: none; |
---|
187 | color: #676e78; |
---|
188 | background: #F5F5F5; |
---|
189 | border: 1px solid #CCC; |
---|
190 | } |
---|
191 | |
---|
192 | input.disabled:hover, |
---|
193 | input[type=submit].disabled:hover { |
---|
194 | color: #676e78; |
---|
195 | background: #eee; |
---|
196 | border: 1px solid #CCC; |
---|
197 | } |
---|