4bd25ec3039dbb0f6e098de0b5545a351106412b
[lhc/web/wiklou.git] / resources / jquery.ui / themes / vector / jquery.ui.button.css
1 /* Button
2 ----------------------------------*/
3
4 .ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
5 .ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
6 button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
7 .ui-button-icons-only { width: 3.4em; }
8 button.ui-button-icons-only { width: 3.7em; }
9
10 /*button text element */
11 .ui-button .ui-button-text { display: block; line-height: 1.4em; }
12 .ui-button-text-only .ui-button-text { padding: .125em .25em; }
13 .ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
14 .ui-button-text-icon-primary .ui-button-text { padding: 0.1em 0.8em 0.1em 1.9em; }
15 .ui-button-text-icon-secondary .ui-button-text { padding: .1em 1.9em .1em 0.8em; }
16 .ui-button-text-icons .ui-button-text { padding: 0.1em 1.9em 0.1em 1.9em; }
17 /* for older versions of jQuery UI */
18 .ui-button-text-icon .ui-button-text { padding: 0.1em 0.8em 0.1em 1.9em; }
19
20 /* no icon support for input elements, provide padding by default */
21 input.ui-button { padding: .4em 1em; }
22
23 /*button icon element(s) */
24 .ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-text-icon .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -9px; }
25 .ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
26 .ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icon .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: 0; }
27 .ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icon .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: 16px; }
28
29 /*button sets*/
30 .ui-buttonset { margin-right: 7px; }
31 .ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
32
33 /* workarounds */
34 button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
35
36 body .ui-button {
37 -moz-border-radius: 4px;
38 -webkit-border-radius: 4px;
39 padding: 0.2em 0.6em 0.15em !important;
40 margin: 0.5em 0 0.5em 0.4em !important;
41 border: 1px solid #a6a6a6 !important;
42 /* @embed */
43 background: #f2f2f2 url(images/button-off.png) repeat-x scroll 50% 100% !important;
44 cursor: pointer;
45 font-size: 1em;
46 line-height: 1.4em;
47 width: auto;
48 overflow: visible;
49 }
50 body .ui-button:hover {
51 border-color: #6e7273;
52 /* @embed */
53 background: #e1e1e1 url(images/button-over.png) repeat-x scroll 50% 100% !important;
54 }
55 body .ui-button:active,
56 body .ui-button:focus {
57 border-color: #707271;
58 /* @embed */
59 background: #bfbfbf url(images/button-down.png) repeat-x scroll 50% 100% !important;
60 }
61 body .ui-button.disabled {
62 color: #7f7f7f;
63 border-color: #cccccc;
64 /* @embed */
65 background: #f2f2f2 url(images/button-disabled.png) repeat-x scroll 50% 100% !important;
66 }
67 /* Disables the annoying dashed border Firefox puts on active buttons */
68 body button.ui-button::-moz-focus-inner {
69 border: 0;
70 }
71
72 /* Green buttons */
73
74 body .ui-button.ui-button-green {
75 color: white;
76 border-color: #97af7e !important;
77 /* @embed */
78 background: #85c940 url(images/button-off-green.png) repeat-x scroll 50% 100% !important;
79 }
80 body .ui-button.ui-button-green:hover {
81 border-color: #778e61;
82 /* @embed */
83 background: #77ad40 url(images/button-over-green.png) repeat-x scroll 50% 100% !important;
84 }
85 body .ui-button.ui-button-green:active,
86 body .ui-button.ui-button-green:focus {
87 border-color: #61b000;
88 /* @embed */
89 background: #54a800 url(images/button-down-green.png) repeat-x scroll 50% 100% !important;
90 }
91 body .ui-button.ui-button-green.disabled {
92 color: #7f7f7f;
93 border-color: #b8d29f;
94 /* @embed */
95 background: #c9cfc3 url(images/button-disabled-green.png) repeat-x scroll 50% 100% !important;
96 }
97
98 /* Blue buttons */
99
100 body .ui-button.ui-button-blue {
101 color: white;
102 border-color: #407ec9 !important;
103 /* @embed */
104 background: #407ec9 url(images/button-off-blue.png) repeat-x scroll 50% 100% !important;
105 }
106 body .ui-button.ui-button-blue:hover {
107 border-color: #245289;
108 /* @embed */
109 background: #4071ad url(images/button-over-blue.png) repeat-x scroll 50% 100% !important;
110 }
111 body .ui-button.ui-button-blue:active,
112 body .ui-button.ui-button-blue:focus {
113 border-color: #003980;
114 /* @embed */
115 background: #004daa url(images/button-down-blue.png) repeat-x scroll 50% 100% !important;
116 }
117 body .ui-button.ui-button-blue.disabled {
118 border-color: #9eafc6;
119 /* @embed */
120 background: #c3c8cf url(images/button-disabled-blue.png) repeat-x scroll 50% 100% !important;
121 }
122
123 /* Red buttons */
124
125 body .ui-button.ui-button-red {
126 color: white;
127 border-color: #af977e !important;
128 /* @embed */
129 background: #c9404c url(images/button-off-red.png) repeat-x scroll 50% 100% !important;
130 }
131 body .ui-button.ui-button-red:hover {
132 border-color: #8e7761;
133 /* @embed */
134 background: #ad404a url(images/button-over-red.png) repeat-x scroll 50% 100% !important;
135 }
136 body .ui-button.ui-button-red:active,
137 body .ui-button.ui-button-red:focus {
138 border-color: #b06100;
139 /* @embed */
140 background: #aa000f url(images/button-down-red.png) repeat-x scroll 50% 100% !important;
141 }
142 body .ui-button.ui-button-red.disabled {
143 color: #7f7f7f;
144 border-color: #c3acae;
145 /* @embed */
146 background: #cfc3c4 url(images/button-disabled-red.png) repeat-x scroll 50% 100% !important;
147 }