keep up with Classic development
[themes.git] / LCARStrek / global / toolbarbutton.css
CommitLineData
351107c9 1/* ***** BEGIN LICENSE BLOCK *****
2 * Version: NPL 1.1/GPL 2.0/LGPL 2.1
3 *
4 * The contents of this file are subject to the Netscape Public License
5 * Version 1.1 (the "License"); you may not use this file except in
6 * compliance with the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/NPL/
8 *
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
12 * License.
13 *
14 * The Original Code is mozilla.org code.
15 *
242fc635 16 * The Initial Developer of the Original Code is
351107c9 17 * Netscape Communications Corporation.
18 * Portions created by the Initial Developer are Copyright (C) 1998
19 * the Initial Developer. All Rights Reserved.
20 *
21 * Contributor(s):
22 * Joe Hewitt (hewitt@netscape.com)
23 * Robert Kaiser <KaiRo@KaiRo.at>
24 *
25 * Alternatively, the contents of this file may be used under the terms of
242fc635 26 * either the GNU General Public License Version 2 or later (the "GPL"), or
351107c9 27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the NPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the NPL, the GPL or the LGPL.
36 *
37 * ***** END LICENSE BLOCK ***** */
38
39@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
40
41/* ===== toolbarbutton.css =====================================================
42 == Styles used by the XUL button element.
43 ======================================================================= */
44
b1eaa419 45/* ::::: toolbarbutton ::::: */
351107c9 46
b1eaa419 47toolbarbutton {
48 -moz-border-radius: 3px;
49 -moz-box-align: center;
50 -moz-box-pack: center;
51 margin: 0px;
52 margin-left: 2px;
53 border: none;
54 padding: 1px;
55 background-color: #000000;
56 color: #FFCF00;
351107c9 57}
58
59.toolbarbutton-icon {
60 margin-right: 2px;
61}
62
63.toolbarbutton-text {
64 margin: 0px !important;
b1eaa419 65 padding: 0px;
66 text-align: center;
242fc635 67}
351107c9 68
242fc635 69toolbarbutton:hover {
b1eaa419 70 background-color: #FFCF00;
71 color: #000000;
242fc635 72}
351107c9 73
351107c9 74toolbarbutton:hover:active,
75toolbarbutton[open="true"],
b1eaa419 76toolbarbutton.toolbarbutton-menubutton-button[open="true"] {
77 background-color: #FF9F00;
78 color: #000000;
242fc635 79}
351107c9 80
b1eaa419 81toolbarbutton:hover:active,
82toolbarbutton[open="true"] {
83 padding: 2px 0px 0px 2px;
351107c9 84}
242fc635 85
b1eaa419 86toolbarbutton[disabled="true"] {
87 padding: 1px !important;
88 background-color: #000000 !important;
89 color: #8050B0 !important;
351107c9 90}
91
92/* ..... checked state ..... */
93
94toolbarbutton[checked="true"] {
7742f92f 95 padding: 1px !important;
b1eaa419 96 background-color: #008484;
97 color: #FFCF00;
351107c9 98}
242fc635 99
351107c9 100toolbarbutton[checked="true"]:hover {
b1eaa419 101 background-color: #FFCF00;
102 color: #000000;
351107c9 103}
104
105/* ::::: toolbarbutton menu ::::: */
106
b1eaa419 107.toolbarbutton-menu-dropmarker {
108 list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
351107c9 109}
110
b1eaa419 111.toolbarbutton-menu-dropmarker:hover,
b1eaa419 112.toolbarbutton-menu-dropmarker[open="true"] {
113 list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
351107c9 114}
115
b1eaa419 116.toolbarbutton-menu-dropmarker[disabled="true"] {
117 list-style-image: url("chrome://global/skin/arrow/arrow-down-disabled.gif");
351107c9 118}
119
120/* ::::: toolbarbutton menu-button ::::: */
121
b1eaa419 122toolbarbutton[type="menu-button"] {
123 -moz-box-align: stretch;
351107c9 124}
125
b1eaa419 126toolbarbutton[type="menu-button"],
127toolbarbutton[type="menu-button"]:hover,
128toolbarbutton[type="menu-button"]:hover:active,
129toolbarbutton[type="menu-button"][open="true"],
130toolbarbutton[type="menu-button"][disabled="true"],
131toolbarbutton[type="menu-button"][disabled="true"]:hover,
132toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
133 padding: 0px !important;
351107c9 134}
135
136.toolbarbutton-menubutton-button {
b1eaa419 137 margin: 0px;
138 -moz-box-align: center;
139 -moz-box-pack: center;
351107c9 140}
141
b1eaa419 142.toolbarbutton-menubutton-button,
351107c9 143.toolbarbutton-menubutton-dropmarker {
b1eaa419 144 background-color: #000000;
242fc635 145}
b1eaa419 146
147.toolbarbutton-menubutton-button[disabled="true"],
148.toolbarbutton-menubutton-dropmarker[disabled="true"] {
149 background-color: #000000 !important;
150 color: #8050B0 !important;
242fc635 151}
351107c9 152
b1eaa419 153toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button,
242fc635 154toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker {
b1eaa419 155 background-color: #FFCF00;
156 color: #000000;
351107c9 157}
158
242fc635 159toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-button,
b1eaa419 160toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
b1eaa419 161toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button,
162toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
163 background-color: #FF9F00;
164 color: #000000;
165}
351107c9 166
242fc635 167toolbarbutton[type="menu-button"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button,
b1eaa419 168toolbarbutton[type="menu-button"][open="true"] > toolbarbutton.toolbarbutton-menubutton-button {
169 padding: 2px 0px 0px 2px !important;
351107c9 170}
171
b1eaa419 172/* .......... dropmarker .......... */
173
174.toolbarbutton-menubutton-dropmarker {
175 -moz-border-radius: 3px;
edb23828 176 -moz-box-align: start;
177 padding: 3px 1px 1px 1px;
b1eaa419 178 list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
351107c9 179}
180
b1eaa419 181toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
b1eaa419 182toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
edb23828 183 padding: 4px 0px 0px 2px;
351107c9 184}
185
b1eaa419 186toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker,
187toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
b1eaa419 188toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
b1eaa419 189 list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
190}
191
192.toolbarbutton-menubutton-dropmarker[disabled="true"] {
edb23828 193 padding: 3px 1px 1px 1px !important;
b1eaa419 194 list-style-image: url("chrome://global/skin/arrow/arrow-down-disabled.gif") !important;
351107c9 195}