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 /* ===== button.css =====================================================
6 == Styles used by the XUL (and XHTML in netError.xhtml) button element.
7 ======================================================================= */
9 /* :::::::::: button :::::::::: */
16 background-color: #000000;
23 border: 1px solid transparent;
26 -moz-padding-start: 3px;
27 -moz-padding-end: 4px;
36 margin: 0px !important;
40 /* .......... focused state .......... */
42 button:-moz-focusring > .button-box {
43 border: 1px dotted #008484;
46 /* .......... default state .......... */
48 button[default="true"] > .button-box {
50 list-style-image: url("chrome://global/skin/icons/return.gif");
51 -moz-box-direction: reverse;
54 button[default="true"] > .button-box > .button-icon {
56 -moz-margin-start: 2px;
59 button[default="true"]:hover > .button-box,
60 button[default="true"]:hover:active > .button-box {
61 list-style-image: url("chrome://global/skin/icons/return-hover.gif");
64 button[default="true"][disabled="true"] > .button-box {
66 list-style-image: url("chrome://global/skin/icons/return-disabled.gif") !important;
69 /* .......... active/open/checked state .......... */
74 background-color: #FFCF00;
80 background-color: #FF9F00;
84 button[checked="true"]:not(:hover) {
86 background-color: #008484;
90 button:hover:active > .button-box,
91 button[open="true"] > .button-box,
92 button[checked="true"] > .button-box {
95 -moz-padding-start: 4px;
96 -moz-padding-end: 3px;
99 /* .......... disabled state .......... */
101 button[disabled="true"],
102 button[disabled="true"]:hover:active {
104 background-color: #000000 !important;
105 color: #8050B0 !important;
108 button[disabled="true"] > .button-box {
109 padding-top: 1px !important;
110 padding-bottom: 2px !important;
111 -moz-padding-start: 3px !important;
112 -moz-padding-end: 4px !important;
115 /* ::::: menu/menu-button buttons ::::: */
117 .button-menubutton-button,
118 .button-menubutton-button:hover,
119 .button-menubutton-button:hover:active,
120 .button-menubutton-button[open="true"],
121 .button-menubutton-button[disabled="true"] {
123 background-color: transparent;
126 button[type="menu-button"]:hover:active > .button-menubutton-button > .button-box,
127 button[type="menu-button"][open="true"] > .button-menubutton-button > .button-box {
130 -moz-padding-start: 4px;
131 -moz-padding-end: 3px;
134 button[type="menu-button"]:hover > .button-menubutton-button,
135 button[type="menu-button"]:hover:active > .button-menubutton-button,
136 button[type="menu-button"][open="true"] > .button-menubutton-button {
140 .button-menu-dropmarker,
141 .button-menubutton-dropmarker {
145 background-color: transparent;
149 button[type="menu-button"]:hover > .button-menubutton-dropmarker,
150 button[type="menu-button"]:hover:active > .button-menubutton-dropmarker,
151 button[type="menu-button"][open="true"] > .button-menubutton-dropmarker {
152 list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
155 /* ::::: plain buttons ::::: */
158 border: 0px !important;
159 margin: 0px !important;
160 padding: 0px !important;
163 button[type="disclosure"] {
164 border: 0px !important;
165 margin: 0px !important;
166 padding: 0px !important;
167 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
168 min-width: 0px !important;
169 background-color: transparent;
172 button[type="disclosure"][open="true"] {
173 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
176 /* ::::: xhtml buttons ::::: */
178 button::-moz-focus-inner {