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/. */
5 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
7 /* ==== button.css ==========================================================
8 == Styles for special buttons in the Communicator suite.
9 ========================================================================== */
11 /* ::::: large toolbar buttons ::::: */
14 .toolbarbutton-1 > .toolbarbutton-menubutton-button {
17 -moz-box-orient: vertical;
20 statusbarpanel > .toolbarbutton-1,
21 statusbarpanel > .toolbarbutton-1 > .toolbarbutton-menubutton-button {
24 -moz-box-orient: vertical;
27 .toolbarbutton-1[type="menu-button"] {
28 -moz-box-orient: horizontal;
32 .toolbarbutton-1 > .toolbarbutton-menubutton-button,
33 .toolbarbutton-1[disabled="true"]:hover:active,
34 .toolbarbutton-1[disabled="true"]:hover:active > .toolbarbutton-menubutton-button {
38 .toolbarbutton-1:hover:active,
39 .toolbarbutton-1[open="true"],
40 .toolbarbutton-1:hover:active > .toolbarbutton-menubutton-button {
43 -moz-padding-start: 3px;
44 -moz-padding-end: 1px;
47 .toolbarbutton-1[type="menu"] {
48 -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu-vertical");
51 /* ::::: small primary toolbar buttons ::::: */
53 toolbar[mode="text"] .toolbarbutton-1,
54 toolbar[mode="icons"] .toolbarbutton-1,
55 toolbar[iconsize="small"] .toolbarbutton-1,
56 toolbar[mode="text"] .toolbarbutton-menubutton-button,
57 toolbar[mode="icons"] .toolbarbutton-menubutton-button,
58 toolbar[iconsize="small"] .toolbarbutton-menubutton-button {
63 toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker {
66 -moz-padding-start: 1px;
67 -moz-padding-end: 1px;
70 toolbar[mode="icons"] .toolbarbutton-menubutton-dropmarker,
71 toolbar[iconsize="small"] .toolbarbutton-menubutton-dropmarker {
74 -moz-padding-start: 1px;
75 -moz-padding-end: 1px;
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 {
82 -moz-padding-start: 2px;
83 -moz-padding-end: 0px;
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,
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 {
92 -moz-padding-start: 2px;
93 -moz-padding-end: 0px;
96 toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker[disabled="true"] {
97 padding-top: 4px !important;
98 padding-bottom: 8px !important;
99 -moz-padding-start: 1px !important;
100 -moz-padding-end: 1px !important;
103 toolbar[mode="icons"] .toolbarbutton-menubutton-dropmarker[disabled="true"],
104 toolbar[iconsize="small"] > .toolbarbutton-menubutton-dropmarker[disabled="true"] {
105 padding-top: 0px !important;
106 padding-bottom: 13px !important;
107 -moz-padding-start: 1px !important;
108 -moz-padding-end: 1px !important;
111 toolbar[mode="icons"] .toolbarbutton-text,
112 toolbar[mode="text"] .toolbarbutton-icon {
116 toolbar[mode="text"] .toolbarbutton-text {
120 toolbar[mode="text"] .toolbarbutton-1,
121 toolbar[mode="text"] .toolbarbutton-1 > .toolbarbutton-menubutton-button {
122 -moz-box-orient: horizontal;
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;
131 /* ::::: standard toolbar buttons ::::: */
134 -moz-user-focus: ignore;
137 background-color: transparent;
140 /* ::::: taskbuttons ::::: */
144 .taskbutton:hover:active {
150 background-color: #FFCF00;
153 .taskbutton:hover:active {
154 background-color: #FFCF00;
157 /* override windows */
159 .toolbarbutton-icon[label]:not([label=""]),
160 .toolbarbutton-icon[type="menu"] {
161 -moz-margin-start: 1px;
162 -moz-margin-end: 2px;