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 :::::::::: */
14 border: 1px outset #CCD0DD;
15 background-color: #CCD0DD;
21 border: 1px solid transparent;
24 -moz-padding-start: 2px;
25 -moz-padding-end: 3px;
33 margin: 0px !important;
37 /* .......... focused state .......... */
39 button:-moz-focusring > .button-box {
40 border: 1px dotted #9999CC;
43 /* .......... default state .......... */
45 button[default="true"] > .button-box {
47 list-style-image: url("chrome://global/skin/icons/return.gif");
48 -moz-box-direction: reverse;
51 button[default="true"] > .button-box > .button-icon {
53 -moz-margin-start: 2px;
56 button[default="true"][disabled="true"] > .button-box {
58 list-style-image: url("chrome://global/skin/icons/return-disabled.gif");
61 /* .......... active/open/checked state .......... */
65 button[checked="true"] {
66 border: 1px inset #CCD0DD;
69 button:hover:active > .button-box,
70 button[open="true"] > .button-box,
71 button[checked="true"] > .button-box {
74 -moz-padding-start: 3px;
75 -moz-padding-end: 2px;
78 /* .......... disabled state .......... */
80 button[disabled="true"],
81 button[disabled="true"]:hover:active {
82 border: 1px outset #CCD0DD;
86 button[disabled="true"] > .button-box {
87 padding-top: 0 !important;
88 padding-bottom: 1px !important;
89 -moz-padding-start: 2px !important;
90 -moz-padding-end: 3px !important;
93 /* ::::: menu/menu-button buttons ::::: */
95 .button-menubutton-button,
96 .button-menubutton-button:hover:active,
97 .button-menubutton-button[open="true"],
98 .button-menubutton-button[disabled="true"] {
100 background-color: transparent;
104 button[type="menu-button"]:hover:active > .button-menubutton-button > .button-box,
105 button[type="menu-button"][open="true"] > .button-menubutton-button > .button-box {
108 -moz-padding-start: 3px;
109 -moz-padding-end: 2px;
112 .button-menu-dropmarker,
113 .button-menubutton-dropmarker {
117 background-color: transparent;
121 .button-menubutton-dropmarker[open="true"] {
124 -moz-margin-start: 2px;
128 /* ::::: plain buttons ::::: */
131 border: 0px !important;
132 margin: 0px !important;
133 padding: 0px !important;
136 button[type="disclosure"] {
137 border: 0px !important;
138 margin: 0px !important;
139 padding: 0px !important;
140 list-style-image: url("chrome://global/skin/tree/twisty-closed.gif");
141 min-width: 0px !important;
142 background-color: transparent;
145 button[type="disclosure"][open="true"] {
146 list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
149 /* ::::: xhtml buttons ::::: */
151 button::-moz-focus-inner {