Dotclear

source: admin/style/scss/partials/_buttons.scss @ 3355:5619cd4c8c5d

Revision 3355:5619cd4c8c5d, 4.5 KB checked in by franck <carnet.franck.paul@…>, 9 years ago (diff)

Switch admin CSS to Sass/Compass?, 1st step

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
34button,
35input[type=button],
36input[type=reset],
37input[type=submit] {
38    -webkit-appearance: button;
39}
40
41
42/* validation */
43
44input[type=submit],
45a.button.submit,
46input.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
55input[type=submit]:hover,
56input[type=submit]:focus,
57input.button.start:hover,
58input.button.start:focus,
59a.button.submit:hover,
60a.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
70button,
71input[type=button],
72input.button,
73input[type=reset],
74input[type=submit].reset,
75input.reset,
76input[type=submit].delete,
77input.delete,
78a.button,
79a.button.delete,
80a.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
90button:hover,
91input[type=button]:hover,
92input.button:hover,
93button:focus,
94input[type=button]:focus,
95input.button:focus,
96input[type=reset]:hover,
97input[type=submit].reset:hover,
98input.reset:hover,
99input[type=reset]:focus,
100input[type=submit].reset:focus,
101input.reset:focus,
102input[type=submit].delete:hover,
103input.delete:hover,
104input[type=submit].delete:focus,
105input.delete:focus,
106a.button.delete:hover,
107a.button.reset:hover,
108a.button:hover,
109a.button.delete:focus,
110a.button.reset:focus,
111a.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
122input[type=submit].delete,
123input.delete,
124a.button.delete {
125    color: #900;
126}
127
128input[type=submit].delete:hover,
129input.delete:hover,
130a.button.delete:hover,
131input[type=submit].delete:focus,
132input.delete:focus,
133a.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
176p.top-add {
177    text-align: right;
178    margin: 0;
179}
180
181
182/* disabled */
183
184input.disabled,
185input[type=submit].disabled {
186    text-shadow: none;
187    color: #676e78;
188    background: #F5F5F5;
189    border: 1px solid #CCC;
190}
191
192input.disabled:hover,
193input[type=submit].disabled:hover {
194    color: #676e78;
195    background: #eee;
196    border: 1px solid #CCC;
197}
Note: See TracBrowser for help on using the repository browser.

Sites map