update LCARStrek changes for toolkit winstripe changes between 2008-09-21 and 2008...
[themes.git] / EarlyBlue / global / toolbarbutton.css
CommitLineData
128000f4 1/* ***** BEGIN LICENSE BLOCK *****
e181d49e 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
f6e0a33f 3 *
e181d49e
RK
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
f6e0a33f 8 *
128000f4 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.
f6e0a33f 13 *
e181d49e
RK
14 * The Original Code is Mozilla Communicator client code, released
15 * March 31, 1998.
128000f4 16 *
61af9d1c 17 * The Initial Developer of the Original Code is
128000f4 18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998-1999
20 * the Initial Developer. All Rights Reserved.
f6e0a33f 21 *
22 * Contributor(s):
23 * Joe Hewitt (hewitt@netscape.com)
128000f4 24 * Robert Kaiser <KaiRo@KaiRo.at>
25 *
26 * Alternatively, the contents of this file may be used under the terms of
61af9d1c 27 * either the GNU General Public License Version 2 or later (the "GPL"), or
128000f4 28 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 * in which case the provisions of the GPL or the LGPL are applicable instead
30 * of those above. If you wish to allow use of your version of this file only
31 * under the terms of either the GPL or the LGPL, and not to allow others to
e181d49e 32 * use your version of this file under the terms of the MPL, indicate your
128000f4 33 * decision by deleting the provisions above and replace them with the notice
34 * and other provisions required by the GPL or the LGPL. If you do not delete
35 * the provisions above, a recipient may use your version of this file under
e181d49e 36 * the terms of any one of the MPL, the GPL or the LGPL.
128000f4 37 *
38 * ***** END LICENSE BLOCK ***** */
39
f6e0a33f 40/* ===== toolbarbutton.css =====================================================
41 == Styles used by the XUL button element.
42 ======================================================================= */
43
e181d49e
RK
44@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
45
74d14f90 46/* ::::: toolbarbutton ::::: */
f6e0a33f 47
74d14f90 48toolbarbutton {
49 -moz-box-align: center;
50 -moz-box-pack: center;
51 margin: 0px;
52 border: 1px solid transparent;
53 padding: 1px;
54 background-color: transparent;
55 color: #000000;
f6e0a33f 56}
57
58.toolbarbutton-icon {
e181d49e 59 -moz-margin-end: 2px;
f6e0a33f 60}
61
62.toolbarbutton-text {
63 margin: 0px !important;
74d14f90 64 padding: 0px;
65 text-align: center;
f6e0a33f 66}
67
e181d49e
RK
68toolbarbutton.tabbable {
69 -moz-user-focus: normal !important;
70}
71
72toolbarbutton:focus {
73 outline: 1px dotted #666699;
cfae8c74 74 outline-offset: -1px;
e181d49e
RK
75}
76
f2450795 77/*
f6e0a33f 78toolbarbutton:hover,
74d14f90 79toolbarbutton.toolbarbutton-menubutton-button[open="true"] {
61af9d1c 80}
f2450795 81*/
f6e0a33f 82
e181d49e
RK
83toolbarbutton:hover,
84toolbarbutton[buttonover="true"] {
74d14f90 85 border: 1px outset #CCD0DD;
f6e0a33f 86}
87
74d14f90 88toolbarbutton:hover:active,
89toolbarbutton[open="true"] {
e181d49e
RK
90 padding-top: 2px;
91 padding-bottom: 0px;
92 -moz-padding-start: 2px;
93 -moz-padding-end: 0px;
74d14f90 94 border: 1px inset #CCD0DD;
f6e0a33f 95}
61af9d1c 96
e181d49e
RK
97toolbarbutton[disabled="true"],
98toolbarbutton[disabled="true"]:hover,
99toolbarbutton[disabled="true"]:hover:active,
100toolbarbutton[disabled="true"][open="true"] {
101 border: 1px solid transparent;
102 padding: 1px;
103 color: #999999;
f6e0a33f 104}
105
106/* ..... checked state ..... */
107
74d14f90 108toolbarbutton[checked="true"] {
e181d49e
RK
109 padding-top: 2px !important;
110 padding-bottom: 0px !important;
111 -moz-padding-start: 2px !important;
112 -moz-padding-end: 0px !important;
74d14f90 113 border: 1px inset #CCD0DD !important;
114 background-color: #DDDDDD !important;
f6e0a33f 115}
61af9d1c 116
f6e0a33f 117/* ::::: toolbarbutton menu ::::: */
118
74d14f90 119.toolbarbutton-menu-dropmarker {
1d4ddf30 120 padding: 0px;
121 border: none !important;
122 background-color: transparent !important;
f6e0a33f 123}
124
74d14f90 125.toolbarbutton-menu-dropmarker[disabled="true"] {
e181d49e 126 padding: 0 !important;
f6e0a33f 127}
128
129/* ::::: toolbarbutton menu-button ::::: */
130
74d14f90 131toolbarbutton[type="menu-button"] {
132 -moz-box-align: stretch;
f6e0a33f 133}
134
74d14f90 135toolbarbutton[type="menu-button"],
136toolbarbutton[type="menu-button"]:hover,
137toolbarbutton[type="menu-button"]:hover:active,
138toolbarbutton[type="menu-button"][open="true"],
139toolbarbutton[type="menu-button"][disabled="true"],
140toolbarbutton[type="menu-button"][disabled="true"]:hover,
141toolbarbutton[type="menu-button"][disabled="true"]:hover:active {
e181d49e 142 border-style: none;
74d14f90 143 padding: 0px !important;
f6e0a33f 144}
145
146.toolbarbutton-menubutton-button {
74d14f90 147 -moz-box-align: center;
148 -moz-box-pack: center;
e181d49e 149 -moz-box-orient: vertical;
f6e0a33f 150}
151
74d14f90 152.toolbarbutton-menubutton-button,
f6e0a33f 153.toolbarbutton-menubutton-dropmarker {
74d14f90 154 border: 1px solid transparent;
61af9d1c 155}
156
74d14f90 157.toolbarbutton-menubutton-button[disabled="true"],
f6e0a33f 158.toolbarbutton-menubutton-dropmarker[disabled="true"] {
74d14f90 159 border: 1px solid transparent !important;
61af9d1c 160}
f6e0a33f 161
74d14f90 162toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button,
61af9d1c 163toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker {
74d14f90 164 border: 1px outset #CCD0DD;
f6e0a33f 165}
166
61af9d1c 167toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-button,
74d14f90 168toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
74d14f90 169toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button,
170toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
171 border: 1px inset #CCD0DD;
f6e0a33f 172}
173
61af9d1c 174toolbarbutton[type="menu-button"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button,
74d14f90 175toolbarbutton[type="menu-button"][open="true"] > toolbarbutton.toolbarbutton-menubutton-button {
e181d49e
RK
176 padding-top: 2px !important;
177 padding-bottom: 0px !important;
178 -moz-padding-start: 2px !important;
179 -moz-padding-end: 0px !important;
f6e0a33f 180}
181
58a9dcb5 182toolbarbutton[disabled="true"] > toolbarbutton.toolbarbutton-menubutton-button,
183toolbarbutton[disabled="true"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button {
b70a3a73 184 padding: 1px !important;
185}
186
74d14f90 187/* .......... dropmarker .......... */
188
189.toolbarbutton-menubutton-dropmarker {
1232bf8e 190 -moz-box-align: start;
73c8e4ae 191 padding: 3px 1px 1px 1px;
37cf043b 192 background-color: transparent;
f6e0a33f 193}
194
74d14f90 195toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
74d14f90 196toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
e181d49e
RK
197 padding-top: 4px;
198 padding-bottom: 0px;
199 -moz-padding-start: 2px;
200 -moz-padding-end: 0px;
74d14f90 201}
202
203.toolbarbutton-menubutton-dropmarker[disabled="true"] {
73c8e4ae 204 padding: 3px 1px 1px 1px !important;
f6e0a33f 205}