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: #C09070;
23 border: 1px solid transparent;
26 -moz-padding-start: .5em;
27 -moz-padding-end: calc(.5em + 1px);
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"] {
49 background-color: #A06060;
52 button[default="true"] > .button-box {
56 /* .......... active/open/checked state .......... */
61 background-color: #FFCF00;
67 background-color: #FF9F00;
71 button[checked="true"]:not(:hover) {
73 background-color: #008484;
77 button:hover:active > .button-box,
78 button[open="true"] > .button-box,
79 button[checked="true"] > .button-box {
82 -moz-padding-start: calc(.5em + 1px);
83 -moz-padding-end: .5em;
86 /* .......... disabled state .......... */
88 button[disabled="true"],
89 button[disabled="true"]:hover:active {
91 background-color: #402858 !important;
92 color: #000000 !important;
95 button[disabled="true"] > .button-box {
96 padding-top: 1px !important;
97 padding-bottom: 2px !important;
98 -moz-padding-start: .5em !important;
99 -moz-padding-end: calc(.5em + 1px) !important;
102 /* ::::: menu/menu-button buttons ::::: */
104 .button-menubutton-button,
105 .button-menubutton-button:hover,
106 .button-menubutton-button:hover:active,
107 .button-menubutton-button[open="true"],
108 .button-menubutton-button[disabled="true"] {
110 background-color: transparent;
113 button[type="menu-button"]:hover:active > .button-menubutton-button > .button-box,
114 button[type="menu-button"][open="true"] > .button-menubutton-button > .button-box {
117 -moz-padding-start: calc(.5em + 1px);
118 -moz-padding-end: .5em;
121 button[type="menu-button"]:hover > .button-menubutton-button,
122 button[type="menu-button"]:hover:active > .button-menubutton-button,
123 button[type="menu-button"][open="true"] > .button-menubutton-button {
127 .button-menu-dropmarker,
128 .button-menubutton-dropmarker {
130 -moz-margin-end: 5px;
133 background-color: transparent;
135 list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
138 .button-menu-dropmarker,
139 button[type="menu-button"]:hover > .button-menubutton-dropmarker,
140 button[type="menu-button"]:hover:active > .button-menubutton-dropmarker,
141 button[type="menu-button"][open="true"] > .button-menubutton-dropmarker {
144 /* ::::: plain buttons ::::: */
147 border: 0px !important;
148 margin: 0px !important;
149 padding: 0px !important;
152 button[type="disclosure"] {
153 border: 0px !important;
154 margin: 0px !important;
155 padding: 0px !important;
156 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
157 min-width: 0px !important;
158 background-color: transparent;
161 button[type="disclosure"][open="true"] {
162 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
165 /* ::::: xhtml buttons ::::: */
167 button::-moz-focus-inner {
172 /* ::::: toolbar buttons (sync look with toolbarbutton) ::::: */
174 /* The #throbber-box rules are only needed for the SeaMonkey editor,
175 * the toolbaritem ones for buttons in customizable toolbars. */
176 toolbaritem > button,
177 #throbber-box > button {
179 background-color: #000000;
183 toolbaritem > button > .button-box,
184 #throbber-box > button > .button-box {
186 -moz-padding-start: 0;
187 -moz-padding-end: 1px;
190 toolbaritem > button > button:hover:active > .button-box,
191 toolbaritem > button > button[open="true"] > .button-box,
192 toolbaritem > button > button[checked="true"] > .button-box,
193 #throbber-box > button:hover:active > .button-box,
194 #throbber-box > button > button[open="true"] > .button-box,
195 #throbber-box > button > button[checked="true"] > .button-box {
196 -moz-padding-start: 1px;
200 toolbaritem > button > button[disabled="true"] > .button-box,
201 #throbber-box > button[disabled="true"] > .button-box {
202 -moz-padding-start: 0 !important;
203 -moz-padding-end: 1px !important;