Dotclear

source: admin/style/scss/partials/_buttons.scss @ 3517:7db06cb5e221

Revision 3517:7db06cb5e221, 5.0 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

Minor CSS enhancements

Line 
1/* Removes inner padding and border in FF3+  - Knacss */
2
3button::-moz-focus-inner,
4input[type=button]::-moz-focus-inner,
5input[type=reset]::-moz-focus-inner,
6input[type=submit]::-moz-focus-inner {
7     border: 0;
8     padding: 0;
9}
10
11
12/* tous les boutons */
13
14button,
15a.button,
16input[type=button],
17input[type=reset],
18input[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
34a.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
49input[type=submit],
50button[type=submit],
51a.button.submit,
52button.submit,
53input.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
60input[type=submit]:hover,
61input[type=submit]:focus,
62button[type=submit]:hover,
63button[type=submit]:focus,
64input.button.start:hover,
65input.button.start:focus,
66button.submit:hover,
67button.submit:focus,
68a.button.submit:hover,
69a.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
78button,
79input[type=button],
80input.button,
81input[type=reset],
82input[type=submit].reset,
83input.reset,
84input[type=submit].delete,
85input.delete,
86a.button,
87a.button.delete,
88a.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
96button:hover,
97input[type=button]:hover,
98input.button:hover,
99button:focus,
100input[type=button]:focus,
101input.button:focus,
102input[type=reset]:hover,
103input[type=submit].reset:hover,
104input.reset:hover,
105input[type=reset]:focus,
106input[type=submit].reset:focus,
107input.reset:focus,
108input[type=submit].delete:hover,
109input.delete:hover,
110input[type=submit].delete:focus,
111input.delete:focus,
112a.button.delete:hover,
113a.button.reset:hover,
114a.button:hover,
115a.button.delete:focus,
116a.button.reset:focus,
117a.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
127input[type=submit].delete,
128input.delete,
129button[type=submit].delete,
130button.delete,
131a.button.delete {
132     color: #900;
133}
134
135input[type=submit].delete:hover,
136input.delete:hover,
137button[type=submit].delete:hover,
138button.delete:hover,
139a.button.delete:hover,
140input[type=submit].delete:focus,
141input.delete:focus,
142button[type=submit].delete:focus,
143button.delete:focus,
144a.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,
159button.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,
170button.add:hover,
171button.add:active,
172button.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
185p.top-add {
186     text-align: right;
187     margin: 0;
188}
189
190
191/* disabled */
192
193input.disabled,
194input[type=submit].disabled,
195button.disabled,
196button[type=submit].disabled {
197     color: #676e78;
198     background: #F5F5F5;
199     border: 1px solid #CCC;
200}
201
202input.disabled:hover,
203input[type=submit].disabled:hover,
204button.disabled:hover,
205button[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,
219a.checkbox-helper,
220a#gototop,
221a.metaGetList,
222a.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}
Note: See TracBrowser for help on using the repository browser.

Sites map