Commit | Line | Data |
---|---|---|
9099c61d RK |
1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
2 | * License, v. 2.0. If a copy of the MPL was not distributed with this | |
3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
351107c9 | 4 | |
5 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
6 | ||
7 | /* ==== button.css ========================================================== | |
8 | == Styles for special buttons in the Communicator suite. | |
9 | ========================================================================== */ | |
10 | ||
11 | /* ::::: large toolbar buttons ::::: */ | |
12 | ||
13 | .toolbarbutton-1, | |
b1eaa419 | 14 | .toolbarbutton-1 > .toolbarbutton-menubutton-button { |
15 | min-width: 36px; | |
16 | min-height: 36px; | |
17 | -moz-box-orient: vertical; | |
351107c9 | 18 | } |
19 | ||
e75098eb RK |
20 | statusbarpanel > .toolbarbutton-1, |
21 | statusbarpanel > .toolbarbutton-1 > .toolbarbutton-menubutton-button { | |
22 | min-width: 16px; | |
23 | min-height: 16px; | |
24 | -moz-box-orient: vertical; | |
25 | } | |
26 | ||
351107c9 | 27 | .toolbarbutton-1[type="menu-button"] { |
b1eaa419 | 28 | -moz-box-orient: horizontal; |
351107c9 | 29 | } |
30 | ||
b1eaa419 | 31 | .toolbarbutton-1, |
32 | .toolbarbutton-1 > .toolbarbutton-menubutton-button, | |
57d23eae | 33 | .toolbarbutton-1[disabled="true"]:hover:active, |
34 | .toolbarbutton-1[disabled="true"]:hover:active > .toolbarbutton-menubutton-button { | |
dd676468 | 35 | padding: 1px 2px; |
351107c9 | 36 | } |
37 | ||
b1eaa419 | 38 | .toolbarbutton-1:hover:active, |
39 | .toolbarbutton-1[open="true"], | |
242fc635 | 40 | .toolbarbutton-1:hover:active > .toolbarbutton-menubutton-button { |
dd676468 RK |
41 | padding-top: 2px; |
42 | padding-bottom: 0px; | |
dae45075 RK |
43 | padding-inline-start: 3px; |
44 | padding-inline-end: 1px; | |
351107c9 | 45 | } |
46 | ||
020a0978 | 47 | .toolbarbutton-1[type="menu"] { |
48 | -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu-vertical"); | |
351107c9 | 49 | } |
50 | ||
dc8e1207 | 51 | /* ::::: small primary toolbar buttons ::::: */ |
52 | ||
c79d2bbe RK |
53 | toolbar[mode="text"] .toolbarbutton-1, |
54 | toolbar[mode="icons"] .toolbarbutton-1, | |
7a7b11b3 | 55 | toolbar[iconsize="small"] .toolbarbutton-1, |
c79d2bbe RK |
56 | toolbar[mode="text"] .toolbarbutton-menubutton-button, |
57 | toolbar[mode="icons"] .toolbarbutton-menubutton-button, | |
7a7b11b3 | 58 | toolbar[iconsize="small"] .toolbarbutton-menubutton-button { |
dc8e1207 | 59 | min-width: 0px; |
60 | min-height: 0px; | |
61 | } | |
62 | ||
c79d2bbe | 63 | toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker { |
dd676468 RK |
64 | padding-top: 4px; |
65 | padding-bottom: 8px; | |
dae45075 RK |
66 | padding-inline-start: 1px; |
67 | padding-inline-end: 1px; | |
dc8e1207 | 68 | } |
69 | ||
c79d2bbe | 70 | toolbar[mode="icons"] .toolbarbutton-menubutton-dropmarker, |
7a7b11b3 | 71 | toolbar[iconsize="small"] .toolbarbutton-menubutton-dropmarker { |
dd676468 RK |
72 | padding-top: 0px; |
73 | padding-bottom: 13px; | |
dae45075 RK |
74 | padding-inline-start: 1px; |
75 | padding-inline-end: 1px; | |
dc8e1207 | 76 | } |
77 | ||
c79d2bbe RK |
78 | toolbar[mode="text"] .toolbarbutton-1[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker, |
79 | toolbar[mode="text"] .toolbarbutton-1[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker { | |
dd676468 RK |
80 | padding-top: 5px; |
81 | padding-bottom: 7px; | |
dae45075 RK |
82 | padding-inline-start: 2px; |
83 | padding-inline-end: 0px; | |
dc8e1207 | 84 | } |
85 | ||
c79d2bbe RK |
86 | toolbar[mode="icons"] .toolbarbutton-1[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker, |
87 | toolbar[mode="icons"] .toolbarbutton-1[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker, | |
7a7b11b3 RK |
88 | toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker, |
89 | toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker { | |
dd676468 RK |
90 | padding-top: 1px; |
91 | padding-bottom: 12px; | |
dae45075 RK |
92 | padding-inline-start: 2px; |
93 | padding-inline-end: 0px; | |
dc8e1207 | 94 | } |
95 | ||
c79d2bbe | 96 | toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker[disabled="true"] { |
dd676468 RK |
97 | padding-top: 4px !important; |
98 | padding-bottom: 8px !important; | |
dae45075 RK |
99 | padding-inline-start: 1px !important; |
100 | padding-inline-end: 1px !important; | |
dc8e1207 | 101 | } |
102 | ||
c79d2bbe | 103 | toolbar[mode="icons"] .toolbarbutton-menubutton-dropmarker[disabled="true"], |
7a7b11b3 | 104 | toolbar[iconsize="small"] > .toolbarbutton-menubutton-dropmarker[disabled="true"] { |
dd676468 RK |
105 | padding-top: 0px !important; |
106 | padding-bottom: 13px !important; | |
dae45075 RK |
107 | padding-inline-start: 1px !important; |
108 | padding-inline-end: 1px !important; | |
dc8e1207 | 109 | } |
110 | ||
c79d2bbe RK |
111 | toolbar[mode="icons"] .toolbarbutton-text, |
112 | toolbar[mode="text"] .toolbarbutton-icon { | |
dc8e1207 | 113 | display: none; |
242fc635 | 114 | } |
115 | ||
c79d2bbe | 116 | toolbar[mode="text"] .toolbarbutton-text { |
dc8e1207 | 117 | padding: 4px 0; |
118 | } | |
119 | ||
7a7b11b3 RK |
120 | toolbar[mode="text"] .toolbarbutton-1, |
121 | toolbar[mode="text"] .toolbarbutton-1 > .toolbarbutton-menubutton-button { | |
122 | -moz-box-orient: horizontal; | |
123 | } | |
124 | ||
125 | toolbar[labelalign="end"] .toolbarbutton-1, | |
126 | toolbar[labelalign="end"] .toolbarbutton-1 > .toolbarbutton-menubutton-button, | |
127 | toolbar[labelalign="end"] .toolbarbutton-1 > hbox > vbox { | |
128 | -moz-box-orient: horizontal; | |
129 | } | |
130 | ||
b1eaa419 | 131 | /* ::::: standard toolbar buttons ::::: */ |
351107c9 | 132 | |
133 | .button-toolbar { | |
b1eaa419 | 134 | -moz-user-focus: ignore; |
135 | min-width: 0px; | |
136 | max-width: 10em; | |
137 | background-color: transparent; | |
351107c9 | 138 | } |
c79d2bbe RK |
139 | |
140 | /* ::::: taskbuttons ::::: */ | |
141 | ||
142 | .taskbutton, | |
143 | .taskbutton:hover, | |
144 | .taskbutton:hover:active { | |
145 | padding: 1px 3px; | |
146 | border: none; | |
147 | } | |
148 | ||
149 | .taskbutton:hover { | |
150 | background-color: #FFCF00; | |
151 | } | |
152 | ||
153 | .taskbutton:hover:active { | |
154 | background-color: #FFCF00; | |
155 | } | |
156 | ||
9b1c3cf9 | 157 | /* override windows */ |
c79d2bbe | 158 | |
150efe45 RK |
159 | .toolbarbutton-icon[label]:not([label=""]), |
160 | .toolbarbutton-icon[type="menu"] { | |
dae45075 RK |
161 | margin-inline-start: 1px; |
162 | margin-inline-end: 2px; | |
c79d2bbe | 163 | } |