f6e0a33f |
1 | /* |
2 | * The contents of this file are subject to the Netscape Public |
3 | * License Version 1.1 (the "License"); you may not use this file |
4 | * except in compliance with the License. You may obtain a copy of |
5 | * the License at http://www.mozilla.org/NPL/ |
6 | * |
7 | * Software distributed under the License is distributed on an "AS |
8 | * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
9 | * implied. See the License for the specific language governing |
10 | * rights and limitations under the License. |
11 | * |
12 | * The Original Code is Mozilla Communicator client code, released |
13 | * March 31, 1998. |
14 | * |
15 | * The Initial Developer of the Original Code is Netscape |
16 | * Communications Corporation. Portions created by Netscape are |
17 | * Copyright (C) 1998-1999 Netscape Communications Corporation. All |
18 | * Rights Reserved. |
19 | * |
20 | * Contributor(s): |
21 | * |
22 | */ |
23 | |
24 | /* ==== button.css ========================================================== |
25 | == Styles for special buttons in the Communicator suite. |
26 | ========================================================================== */ |
27 | |
28 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
29 | |
30 | /* ::::: large toolbar buttons ::::: */ |
31 | |
32 | .toolbarbutton-1, |
33 | .toolbarbutton-1 > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button |
34 | { |
35 | min-width : 36px; |
36 | min-height : 36px; |
37 | /* font-size : smaller; */ |
38 | -moz-box-orient : vertical; |
39 | } |
40 | |
41 | .toolbarbutton-1[type="menu-button"] { |
42 | -moz-box-orient : horizontal; |
43 | } |
44 | |
45 | .toolbarbutton-1 > .toolbarbutton-box, |
46 | .toolbarbutton-1 > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button > .toolbarbutton-box, |
47 | .toolbarbutton-1[open="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button > .toolbarbutton-box, |
48 | .toolbarbutton-1[disabled="true"]:hover:active > .toolbarbutton-box, |
49 | .toolbarbutton-1[disabled="true"][buttondown="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button > .toolbarbutton-box |
50 | { |
51 | padding : 1px; |
52 | } |
53 | |
54 | .toolbarbutton-1:hover:active > .toolbarbutton-box, |
55 | .toolbarbutton-1[open="true"] > .toolbarbutton-box, |
56 | .toolbarbutton-1[buttondown="true"] > .toolbarbutton-menubutton-box > .toolbarbutton-menubutton-button > .toolbarbutton-box |
57 | { |
58 | padding : 2px 0px 0px 2px; |
59 | } |
60 | |
61 | .toolbarbutton-1[type="menu"] > .toolbarbutton-box > .toolbarbutton-dropmarker { |
62 | display: none; |
63 | } |
64 | |
65 | /* ::::: normal buttons on toolbars ::::: */ |
66 | |
67 | .button-toolbar { |
68 | -moz-user-focus : ignore; |
69 | min-width : 0px; |
70 | max-width : 10em; |
71 | background-color : transparent; |
72 | } |
73 | |
74 | /* |
75 | .button-toolbar > .button-box, |
76 | .button-toolbar[disabled="true"] > .button-box, |
77 | .button-toolbar[disabled="true"]:hover > .button-box, |
78 | .button-toolbar[disabled="true"]:hover:active > .button-box { |
79 | border-left : 1px solid ThreeDHighlight !important; |
80 | border-top : 1px solid ThreeDHighlight !important; |
81 | border-right : 1px solid ThreeDShadow !important; |
82 | border-bottom : 1px solid ThreeDShadow !important; |
83 | } |
84 | |
85 | .button-toolbar:hover:active > .button-box { |
86 | border-left : 1px solid ThreeDShadow !important; |
87 | border-top : 1px solid ThreeDShadow !important; |
88 | border-bottom : 1px solid ThreeDHighlight !important; |
89 | border-right : 1px solid ThreeDHighlight !important; |
90 | } |
91 | |
92 | .button-toolbar[checked="true"] > .button-box { |
93 | border-left : 1px solid ThreeDShadow; |
94 | border-top : 1px solid ThreeDShadow; |
95 | border-right : 1px solid ThreeDHighlight; |
96 | border-bottom : 1px solid ThreeDHighlight; |
97 | background-color : ThreeDHighlight; |
98 | } |
99 | |
100 | .button-toolbar[checked="true"]:hover > .button-box { |
101 | border-left : 1px solid ThreeDShadow; |
102 | border-top : 1px solid ThreeDShadow; |
103 | border-right : 1px solid ThreeDHighlight; |
104 | border-bottom : 1px solid ThreeDHighlight; |
105 | background-color : -moz-Dialog; |
106 | background-image : none; |
107 | } |
108 | |
109 | .button-toolbar > .button-box > .button-box-2, |
110 | .button-toolbar > .button-box > .button-box-2 > .button-box-text { |
111 | margin: none; |
112 | border: none !important; |
113 | padding: 0px 2px; |
114 | } |
115 | */ |
116 | |
117 | .button-toolbar > .button-box > .button-icon { |
118 | margin-right: 3px; |
119 | } |
120 | |
121 | .button-toolbar > .button-box > .button-text { |
122 | margin-right: 1px; |
123 | } |
124 | |
125 | /* ::::: reorder buttons ::::: */ |
126 | |
127 | .reorder-up { |
128 | min-width : 0px; |
129 | } |
130 | |
131 | .reorder-down { |
132 | min-width : 0px; |
133 | } |
134 | |
135 | .reorder-up > .button-internal-box > .button-icon, |
136 | .reorder-down > .button-internal-box > .button-icon { |
137 | margin : 0; |
138 | padding : 0; |
139 | } |
140 | |