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 | a.button { |
---|
35 | vertical-align: middle; |
---|
36 | } |
---|
37 | |
---|
38 | /* Boutons javascript (dépliage/repliage, …) */ |
---|
39 | |
---|
40 | .void-btn { |
---|
41 | border: none; |
---|
42 | border-radius: 0; |
---|
43 | padding: 0; |
---|
44 | } |
---|
45 | |
---|
46 | |
---|
47 | /* validation */ |
---|
48 | |
---|
49 | input[type=submit], |
---|
50 | button[type=submit], |
---|
51 | a.button.submit, |
---|
52 | button.submit, |
---|
53 | input.button.start { |
---|
54 | color: #fff; |
---|
55 | background-color: #25a6e1; |
---|
56 | @include background-image(linear-gradient(to bottom, #25a6e1, #188bc0)); |
---|
57 | border-color: #25a6e1; |
---|
58 | } |
---|
59 | |
---|
60 | input[type=submit]:hover, |
---|
61 | input[type=submit]:focus, |
---|
62 | button[type=submit]:hover, |
---|
63 | button[type=submit]:focus, |
---|
64 | input.button.start:hover, |
---|
65 | input.button.start:focus, |
---|
66 | button.submit:hover, |
---|
67 | button.submit:focus, |
---|
68 | a.button.submit:hover, |
---|
69 | a.button.submit:focus { |
---|
70 | background-color: #188bc0; |
---|
71 | @include background-image(linear-gradient(to bottom, #188bc0, #25a6e1)); |
---|
72 | border-color: #188bc0; |
---|
73 | } |
---|
74 | |
---|
75 | |
---|
76 | /* suppression, reset, "neutres" fond gris */ |
---|
77 | |
---|
78 | button, |
---|
79 | input[type=button], |
---|
80 | input.button, |
---|
81 | input[type=reset], |
---|
82 | input[type=submit].reset, |
---|
83 | input.reset, |
---|
84 | input[type=submit].delete, |
---|
85 | input.delete, |
---|
86 | a.button, |
---|
87 | a.button.delete, |
---|
88 | a.button.reset { |
---|
89 | color: #000; |
---|
90 | background-color: #eaeaea; |
---|
91 | @include background-image(linear-gradient(to bottom, #f9f9f9, #eaeaea)); |
---|
92 | background-repeat: repeat-x; |
---|
93 | border-color: #dfdfdf #dfdfdf #c5c5c5; |
---|
94 | } |
---|
95 | |
---|
96 | button:hover, |
---|
97 | input[type=button]:hover, |
---|
98 | input.button:hover, |
---|
99 | button:focus, |
---|
100 | input[type=button]:focus, |
---|
101 | input.button:focus, |
---|
102 | input[type=reset]:hover, |
---|
103 | input[type=submit].reset:hover, |
---|
104 | input.reset:hover, |
---|
105 | input[type=reset]:focus, |
---|
106 | input[type=submit].reset:focus, |
---|
107 | input.reset:focus, |
---|
108 | input[type=submit].delete:hover, |
---|
109 | input.delete:hover, |
---|
110 | input[type=submit].delete:focus, |
---|
111 | input.delete:focus, |
---|
112 | a.button.delete:hover, |
---|
113 | a.button.reset:hover, |
---|
114 | a.button:hover, |
---|
115 | a.button.delete:focus, |
---|
116 | a.button.reset:focus, |
---|
117 | a.button:focus { |
---|
118 | background-color: #dadada; |
---|
119 | @include background-image(linear-gradient(to bottom, #eaeaea, #dadada)); |
---|
120 | background-repeat: repeat-x; |
---|
121 | border-color: #cccccc #cccccc #b5b5b5; |
---|
122 | } |
---|
123 | |
---|
124 | |
---|
125 | /* suppression */ |
---|
126 | |
---|
127 | input[type=submit].delete, |
---|
128 | input.delete, |
---|
129 | button[type=submit].delete, |
---|
130 | button.delete, |
---|
131 | a.button.delete { |
---|
132 | color: #900; |
---|
133 | } |
---|
134 | |
---|
135 | input[type=submit].delete:hover, |
---|
136 | input.delete:hover, |
---|
137 | button[type=submit].delete:hover, |
---|
138 | button.delete:hover, |
---|
139 | a.button.delete:hover, |
---|
140 | input[type=submit].delete:focus, |
---|
141 | input.delete:focus, |
---|
142 | button[type=submit].delete:focus, |
---|
143 | button.delete:focus, |
---|
144 | a.button.delete:focus { |
---|
145 | color: #ffffff; |
---|
146 | background-color: #b33630; |
---|
147 | @include background-image(linear-gradient(to bottom, #dc5f59, #b33630)); |
---|
148 | background-repeat: repeat-x; |
---|
149 | border-color: #cd504a; |
---|
150 | } |
---|
151 | |
---|
152 | #info-box a.button, |
---|
153 | #info-box button { |
---|
154 | padding: 0 .5em; |
---|
155 | margin-left: 2em; |
---|
156 | } |
---|
157 | |
---|
158 | .button.add, |
---|
159 | button.add { |
---|
160 | color: #000; |
---|
161 | background-color: #bee74b; |
---|
162 | @include background-image(linear-gradient(to bottom, #bee74b, #9bca1c)); |
---|
163 | border-color: #bee74b; |
---|
164 | padding: .33em 1.33em .5em; |
---|
165 | } |
---|
166 | |
---|
167 | .button.add:hover, |
---|
168 | .button.add:active, |
---|
169 | .button.add:focus, |
---|
170 | button.add:hover, |
---|
171 | button.add:active, |
---|
172 | button.add:focus { |
---|
173 | background-color: #9bca1c; |
---|
174 | @include background-image(linear-gradient(to bottom, #9bca1c, #bee74b)); |
---|
175 | border-color: #9bca1c; |
---|
176 | } |
---|
177 | |
---|
178 | .button-add:focus { |
---|
179 | outline: dotted 1px; |
---|
180 | } |
---|
181 | |
---|
182 | |
---|
183 | /* paragraphe pour bouton Nouveau bidule */ |
---|
184 | |
---|
185 | p.top-add { |
---|
186 | text-align: right; |
---|
187 | margin: 0; |
---|
188 | } |
---|
189 | |
---|
190 | |
---|
191 | /* disabled */ |
---|
192 | |
---|
193 | input.disabled, |
---|
194 | input[type=submit].disabled, |
---|
195 | button.disabled, |
---|
196 | button[type=submit].disabled { |
---|
197 | color: #676e78; |
---|
198 | background: #F5F5F5; |
---|
199 | border: 1px solid #CCC; |
---|
200 | } |
---|
201 | |
---|
202 | input.disabled:hover, |
---|
203 | input[type=submit].disabled:hover, |
---|
204 | button.disabled:hover, |
---|
205 | button[type=submit].disabled:hover { |
---|
206 | color: #676e78; |
---|
207 | background: #eee; |
---|
208 | border: 1px solid #CCC; |
---|
209 | } |
---|
210 | |
---|
211 | |
---|
212 | /* specific buttons */ |
---|
213 | |
---|
214 | // Ajax or js buttons (action do not reload current page) |
---|
215 | .checkbox-helper, |
---|
216 | #gototop, |
---|
217 | .metaGetList, |
---|
218 | .metaGetMore, |
---|
219 | a.checkbox-helper, |
---|
220 | a#gototop, |
---|
221 | a.metaGetList, |
---|
222 | a.metaGetMore { |
---|
223 | font-size: 0.825em; |
---|
224 | color: #333; |
---|
225 | background: #fff; |
---|
226 | box-shadow: none; |
---|
227 | border: 1px solid #676e78; |
---|
228 | margin-bottom: .25em; |
---|
229 | text-align: center; |
---|
230 | &:hover { |
---|
231 | background: #a2cbe9; |
---|
232 | box-shadow: none; |
---|
233 | border: 1px solid #676e78; |
---|
234 | } |
---|
235 | } |
---|
236 | |
---|
237 | #gototop { |
---|
238 | display: none; |
---|
239 | z-index: 1000; |
---|
240 | position: fixed; |
---|
241 | bottom: 0; |
---|
242 | right: .5em; |
---|
243 | width: 10em; |
---|
244 | padding: .25em; |
---|
245 | border-radius: .25em; |
---|
246 | a, |
---|
247 | a:link, |
---|
248 | a:hover, |
---|
249 | a:active { |
---|
250 | color: #333; |
---|
251 | background: transparent; |
---|
252 | border: none; |
---|
253 | } |
---|
254 | } |
---|
255 | |
---|
256 | .metaRemove, |
---|
257 | .addMeta button:not(.metaGetMore), |
---|
258 | .addMeta a:not(.metaGetMore) { |
---|
259 | border: none; |
---|
260 | border-radius: 0; |
---|
261 | padding: 0; |
---|
262 | background: none; |
---|
263 | } |
---|
264 | |
---|
265 | .addMeta button:not(.metaGetMore), |
---|
266 | .addMeta a:not(.metaGetMore) { |
---|
267 | box-shadow: initial; |
---|
268 | margin-bottom: 2px; |
---|
269 | &:hover, |
---|
270 | &:focus { |
---|
271 | background: #fc0; |
---|
272 | } |
---|
273 | } |
---|