Dotclear

source: admin/style/scss/partials/_buttons.scss @ 3513:49903df908f3

Revision 3513:49903df908f3, 5.1 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

First attempt to fix post/page edition on different screen sizes

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

Sites map