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 $button-border; |
---|
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 $button-shadow; |
---|
30 | border-style: solid; |
---|
31 | border-width: 1px; |
---|
32 | } |
---|
33 | |
---|
34 | a.button { |
---|
35 | vertical-align: middle; |
---|
36 | } |
---|
37 | |
---|
38 | /* validation */ |
---|
39 | |
---|
40 | input[type=submit], |
---|
41 | button[type=submit], |
---|
42 | a.button.submit, |
---|
43 | button.submit, |
---|
44 | input.button.start { |
---|
45 | color: $submit-color; |
---|
46 | background-color: $submit-background; |
---|
47 | @include background-image(linear-gradient(to bottom, $submit-background, $submit-background-alt)); |
---|
48 | border-color: $submit-background; |
---|
49 | } |
---|
50 | |
---|
51 | input[type=submit]:hover, |
---|
52 | input[type=submit]:focus, |
---|
53 | button[type=submit]:hover, |
---|
54 | button[type=submit]:focus, |
---|
55 | input.button.start:hover, |
---|
56 | input.button.start:focus, |
---|
57 | button.submit:hover, |
---|
58 | button.submit:focus, |
---|
59 | a.button.submit:hover, |
---|
60 | a.button.submit:focus { |
---|
61 | background-color: $submit-background-alt; |
---|
62 | @include background-image(linear-gradient(to bottom, $submit-background-alt, $submit-background)); |
---|
63 | border-color: $submit-background-alt; |
---|
64 | } |
---|
65 | |
---|
66 | |
---|
67 | /* suppression, reset, "neutres" fond gris */ |
---|
68 | |
---|
69 | button, |
---|
70 | input[type=button], |
---|
71 | input.button, |
---|
72 | input[type=reset], |
---|
73 | input[type=submit].reset, |
---|
74 | input.reset, |
---|
75 | input[type=submit].delete, |
---|
76 | input.delete, |
---|
77 | a.button, |
---|
78 | a.button.delete, |
---|
79 | a.button.reset { |
---|
80 | color: $reset-color; |
---|
81 | background-color: $reset-background; |
---|
82 | @include background-image(linear-gradient(to bottom, $reset-background-alt, $reset-background)); |
---|
83 | background-repeat: repeat-x; |
---|
84 | border-color: $reset-border; |
---|
85 | } |
---|
86 | |
---|
87 | button:hover, |
---|
88 | input[type=button]:hover, |
---|
89 | input.button:hover, |
---|
90 | button:focus, |
---|
91 | input[type=button]:focus, |
---|
92 | input.button:focus, |
---|
93 | input[type=reset]:hover, |
---|
94 | input[type=submit].reset:hover, |
---|
95 | input.reset:hover, |
---|
96 | input[type=reset]:focus, |
---|
97 | input[type=submit].reset:focus, |
---|
98 | input.reset:focus, |
---|
99 | input[type=submit].delete:hover, |
---|
100 | input.delete:hover, |
---|
101 | input[type=submit].delete:focus, |
---|
102 | input.delete:focus, |
---|
103 | a.button.delete:hover, |
---|
104 | a.button.reset:hover, |
---|
105 | a.button:hover, |
---|
106 | a.button.delete:focus, |
---|
107 | a.button.reset:focus, |
---|
108 | a.button:focus { |
---|
109 | background-color: $reset-background-ter; |
---|
110 | @include background-image(linear-gradient(to bottom, $reset-background, $reset-background-ter)); |
---|
111 | background-repeat: repeat-x; |
---|
112 | border-color: $reset-border; |
---|
113 | } |
---|
114 | |
---|
115 | |
---|
116 | /* suppression */ |
---|
117 | |
---|
118 | input[type=submit].delete, |
---|
119 | input.delete, |
---|
120 | button[type=submit].delete, |
---|
121 | button.delete, |
---|
122 | a.button.delete { |
---|
123 | color: $delete-color; |
---|
124 | } |
---|
125 | |
---|
126 | input[type=submit].delete:hover, |
---|
127 | input.delete:hover, |
---|
128 | button[type=submit].delete:hover, |
---|
129 | button.delete:hover, |
---|
130 | a.button.delete:hover, |
---|
131 | input[type=submit].delete:focus, |
---|
132 | input.delete:focus, |
---|
133 | button[type=submit].delete:focus, |
---|
134 | button.delete:focus, |
---|
135 | a.button.delete:focus { |
---|
136 | color: $delete-hover-color; |
---|
137 | background-color: $delete-hover-background; |
---|
138 | @include background-image(linear-gradient(to bottom, $delete-hover-background-alt, $delete-hover-background)); |
---|
139 | background-repeat: repeat-x; |
---|
140 | border-color: $delete-hover-border; |
---|
141 | } |
---|
142 | |
---|
143 | #info-box a.button, |
---|
144 | #info-box button { |
---|
145 | padding: 0 .5em; |
---|
146 | margin-left: 2em; |
---|
147 | } |
---|
148 | |
---|
149 | .button.add, |
---|
150 | button.add { |
---|
151 | color: $add-color; |
---|
152 | background-color: $add-background; |
---|
153 | @include background-image(linear-gradient(to bottom, $add-background, $add-background-alt)); |
---|
154 | border-color: $add-border; |
---|
155 | padding: .33em 1.33em .5em; |
---|
156 | } |
---|
157 | |
---|
158 | .button.add:hover, |
---|
159 | .button.add:active, |
---|
160 | .button.add:focus, |
---|
161 | button.add:hover, |
---|
162 | button.add:active, |
---|
163 | button.add:focus { |
---|
164 | background-color: $add-background-alt; |
---|
165 | @include background-image(linear-gradient(to bottom, $add-background-alt, $add-background)); |
---|
166 | border-color: $add-border-alt; |
---|
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 | button.disabled, |
---|
187 | button[type=submit].disabled { |
---|
188 | color: $button-disabled-color; |
---|
189 | background: $button-disabled-background; |
---|
190 | border: 1px solid $button-disabled-border; |
---|
191 | } |
---|
192 | |
---|
193 | input.disabled:hover, |
---|
194 | input[type=submit].disabled:hover, |
---|
195 | button.disabled:hover, |
---|
196 | button[type=submit].disabled:hover { |
---|
197 | color: $button-disabled-color; |
---|
198 | background: $button-disabled-background-alt; |
---|
199 | border: 1px solid $button-disabled-border; |
---|
200 | } |
---|
201 | |
---|
202 | /* Boutons javascript (dépliage/repliage, …) */ |
---|
203 | |
---|
204 | .void-btn { |
---|
205 | border: none; |
---|
206 | border-radius: 0; |
---|
207 | padding: 0; |
---|
208 | } |
---|
209 | |
---|
210 | button.details-cmd { |
---|
211 | font-size: 0.9em; |
---|
212 | border: none; |
---|
213 | border-radius: 0; |
---|
214 | padding: 0; |
---|
215 | margin: 0 5px 0 0; |
---|
216 | color: currentColor; |
---|
217 | background: transparent; |
---|
218 | &:hover, |
---|
219 | &:focus { |
---|
220 | background: transparent; |
---|
221 | color: $input-focus; |
---|
222 | } |
---|
223 | } |
---|
224 | |
---|
225 | /* specific buttons */ |
---|
226 | |
---|
227 | // Ajax or js buttons (action do not reload current page) |
---|
228 | .checkbox-helper, |
---|
229 | #gototop, |
---|
230 | .metaGetList, |
---|
231 | .metaGetMore, |
---|
232 | a.checkbox-helper, |
---|
233 | a#gototop, |
---|
234 | a.metaGetList, |
---|
235 | a.metaGetMore { |
---|
236 | font-size: 0.825em; |
---|
237 | color: $ajax-color; |
---|
238 | background: $ajax-background; |
---|
239 | box-shadow: none; |
---|
240 | border: 1px solid $ajax-border; |
---|
241 | margin-bottom: .25em; |
---|
242 | text-align: center; |
---|
243 | &:hover { |
---|
244 | background: $ajax-background-alt; |
---|
245 | box-shadow: none; |
---|
246 | border: 1px solid $ajax-border; |
---|
247 | } |
---|
248 | } |
---|
249 | |
---|
250 | #gototop { |
---|
251 | display: none; |
---|
252 | z-index: 1000; |
---|
253 | position: fixed; |
---|
254 | bottom: 0; |
---|
255 | right: .5em; |
---|
256 | width: 10em; |
---|
257 | padding: .25em; |
---|
258 | border-radius: .25em; |
---|
259 | a, |
---|
260 | a:link, |
---|
261 | a:hover, |
---|
262 | a:active { |
---|
263 | color: $gotop-color; |
---|
264 | background: $gotop-background; |
---|
265 | border: $gotop-border; |
---|
266 | } |
---|
267 | } |
---|
268 | |
---|
269 | .metaRemove, |
---|
270 | .addMeta button:not(.metaGetMore), |
---|
271 | .addMeta a:not(.metaGetMore) { |
---|
272 | border: none; |
---|
273 | border-radius: 0; |
---|
274 | padding: 0; |
---|
275 | color: $addmeta-color; |
---|
276 | background: $addmeta-background; |
---|
277 | } |
---|
278 | |
---|
279 | .addMeta button:not(.metaGetMore), |
---|
280 | .addMeta a:not(.metaGetMore) { |
---|
281 | box-shadow: initial; |
---|
282 | margin-bottom: 2px; |
---|
283 | &:hover, |
---|
284 | &:focus { |
---|
285 | color: $addmeta-focus-color; |
---|
286 | background: $addmeta-focus-background; |
---|
287 | } |
---|
288 | } |
---|