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