Commit | Line | Data |
---|---|---|
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 | 48 | toolbarbutton { |
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 | ||
ca710c53 RK |
58 | .toolbarbutton-icon[label]:not([label=""]), |
59 | .toolbarbutton-icon[type="menu"] { | |
e181d49e | 60 | -moz-margin-end: 2px; |
f6e0a33f | 61 | } |
62 | ||
63 | .toolbarbutton-text { | |
64 | margin: 0px !important; | |
74d14f90 | 65 | padding: 0px; |
66 | text-align: center; | |
f6e0a33f | 67 | } |
68 | ||
e181d49e RK |
69 | toolbarbutton.tabbable { |
70 | -moz-user-focus: normal !important; | |
71 | } | |
72 | ||
73 | toolbarbutton:focus { | |
74 | outline: 1px dotted #666699; | |
cfae8c74 | 75 | outline-offset: -1px; |
e181d49e RK |
76 | } |
77 | ||
f2450795 | 78 | /* |
f6e0a33f | 79 | toolbarbutton:hover, |
74d14f90 | 80 | toolbarbutton.toolbarbutton-menubutton-button[open="true"] { |
61af9d1c | 81 | } |
f2450795 | 82 | */ |
f6e0a33f | 83 | |
e181d49e RK |
84 | toolbarbutton:hover, |
85 | toolbarbutton[buttonover="true"] { | |
74d14f90 | 86 | border: 1px outset #CCD0DD; |
f6e0a33f | 87 | } |
88 | ||
74d14f90 | 89 | toolbarbutton:hover:active, |
90 | toolbarbutton[open="true"] { | |
e181d49e RK |
91 | padding-top: 2px; |
92 | padding-bottom: 0px; | |
93 | -moz-padding-start: 2px; | |
94 | -moz-padding-end: 0px; | |
74d14f90 | 95 | border: 1px inset #CCD0DD; |
f6e0a33f | 96 | } |
61af9d1c | 97 | |
e181d49e RK |
98 | toolbarbutton[disabled="true"], |
99 | toolbarbutton[disabled="true"]:hover, | |
100 | toolbarbutton[disabled="true"]:hover:active, | |
101 | toolbarbutton[disabled="true"][open="true"] { | |
102 | border: 1px solid transparent; | |
103 | padding: 1px; | |
104 | color: #999999; | |
f6e0a33f | 105 | } |
106 | ||
3b1530c2 RK |
107 | toolbarbutton:-moz-lwtheme { |
108 | text-shadow: none; | |
109 | } | |
110 | ||
f6e0a33f | 111 | /* ..... checked state ..... */ |
112 | ||
74d14f90 | 113 | toolbarbutton[checked="true"] { |
e181d49e RK |
114 | padding-top: 2px !important; |
115 | padding-bottom: 0px !important; | |
116 | -moz-padding-start: 2px !important; | |
117 | -moz-padding-end: 0px !important; | |
74d14f90 | 118 | border: 1px inset #CCD0DD !important; |
119 | background-color: #DDDDDD !important; | |
f6e0a33f | 120 | } |
61af9d1c | 121 | |
f6e0a33f | 122 | /* ::::: toolbarbutton menu ::::: */ |
123 | ||
74d14f90 | 124 | .toolbarbutton-menu-dropmarker { |
1d4ddf30 | 125 | padding: 0px; |
126 | border: none !important; | |
127 | background-color: transparent !important; | |
f6e0a33f | 128 | } |
129 | ||
74d14f90 | 130 | .toolbarbutton-menu-dropmarker[disabled="true"] { |
e181d49e | 131 | padding: 0 !important; |
f6e0a33f | 132 | } |
133 | ||
134 | /* ::::: toolbarbutton menu-button ::::: */ | |
135 | ||
74d14f90 | 136 | toolbarbutton[type="menu-button"] { |
137 | -moz-box-align: stretch; | |
f6e0a33f | 138 | } |
139 | ||
74d14f90 | 140 | toolbarbutton[type="menu-button"], |
141 | toolbarbutton[type="menu-button"]:hover, | |
142 | toolbarbutton[type="menu-button"]:hover:active, | |
143 | toolbarbutton[type="menu-button"][open="true"], | |
144 | toolbarbutton[type="menu-button"][disabled="true"], | |
145 | toolbarbutton[type="menu-button"][disabled="true"]:hover, | |
146 | toolbarbutton[type="menu-button"][disabled="true"]:hover:active { | |
e181d49e | 147 | border-style: none; |
74d14f90 | 148 | padding: 0px !important; |
f6e0a33f | 149 | } |
150 | ||
151 | .toolbarbutton-menubutton-button { | |
74d14f90 | 152 | -moz-box-align: center; |
153 | -moz-box-pack: center; | |
e181d49e | 154 | -moz-box-orient: vertical; |
f6e0a33f | 155 | } |
156 | ||
74d14f90 | 157 | .toolbarbutton-menubutton-button, |
f6e0a33f | 158 | .toolbarbutton-menubutton-dropmarker { |
74d14f90 | 159 | border: 1px solid transparent; |
61af9d1c | 160 | } |
161 | ||
74d14f90 | 162 | .toolbarbutton-menubutton-button[disabled="true"], |
f6e0a33f | 163 | .toolbarbutton-menubutton-dropmarker[disabled="true"] { |
74d14f90 | 164 | border: 1px solid transparent !important; |
61af9d1c | 165 | } |
f6e0a33f | 166 | |
74d14f90 | 167 | toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-button, |
61af9d1c | 168 | toolbarbutton[type="menu-button"]:hover > .toolbarbutton-menubutton-dropmarker { |
74d14f90 | 169 | border: 1px outset #CCD0DD; |
f6e0a33f | 170 | } |
171 | ||
61af9d1c | 172 | toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-button, |
74d14f90 | 173 | toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker, |
74d14f90 | 174 | toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-button, |
175 | toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker { | |
176 | border: 1px inset #CCD0DD; | |
f6e0a33f | 177 | } |
178 | ||
61af9d1c | 179 | toolbarbutton[type="menu-button"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button, |
74d14f90 | 180 | toolbarbutton[type="menu-button"][open="true"] > toolbarbutton.toolbarbutton-menubutton-button { |
e181d49e RK |
181 | padding-top: 2px !important; |
182 | padding-bottom: 0px !important; | |
183 | -moz-padding-start: 2px !important; | |
184 | -moz-padding-end: 0px !important; | |
f6e0a33f | 185 | } |
186 | ||
58a9dcb5 | 187 | toolbarbutton[disabled="true"] > toolbarbutton.toolbarbutton-menubutton-button, |
188 | toolbarbutton[disabled="true"]:hover:active > toolbarbutton.toolbarbutton-menubutton-button { | |
b70a3a73 | 189 | padding: 1px !important; |
190 | } | |
191 | ||
74d14f90 | 192 | /* .......... dropmarker .......... */ |
193 | ||
194 | .toolbarbutton-menubutton-dropmarker { | |
1232bf8e | 195 | -moz-box-align: start; |
02920d2b | 196 | padding: 3px 1px 1px; |
37cf043b | 197 | background-color: transparent; |
f6e0a33f | 198 | } |
199 | ||
74d14f90 | 200 | toolbarbutton[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker, |
74d14f90 | 201 | toolbarbutton[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker { |
e181d49e RK |
202 | padding-top: 4px; |
203 | padding-bottom: 0px; | |
204 | -moz-padding-start: 2px; | |
205 | -moz-padding-end: 0px; | |
74d14f90 | 206 | } |
207 | ||
208 | .toolbarbutton-menubutton-dropmarker[disabled="true"] { | |
02920d2b | 209 | padding: 3px 1px 1px !important; |
f6e0a33f | 210 | } |