start 2.5 development cycles
[themes.git] / LCARStrek / global / button.css
index 66b2007a431c906781e02781c739cb667dad6f0a..f8cd97f1fd89bbe9714d4eb3b85471f6663405de 100644 (file)
  * ***** END LICENSE BLOCK ***** */
 
 /* ===== button.css =====================================================
-  == Styles used by the XUL button element.
+  == Styles used by the XUL (and XHTML in netError.xhtml) button element.
   ======================================================================= */
 
-@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
-
 /* :::::::::: button :::::::::: */
 
 button {
-  -moz-border-radius: 3px;
+  border-radius: 3px;
   margin: 1px 2px;
   min-width: 6.3em;
   border: none;
@@ -54,7 +52,7 @@ button {
 }
 
 .button-box {
-  -moz-border-radius: 3px;
+  border-radius: 3px;
   border: 1px solid transparent;
   padding-top: 1px;
   padding-bottom: 2px;
@@ -67,7 +65,7 @@ button {
 }
 
 .button-text {
-  -moz-border-radius: 3px;
+  border-radius: 3px;
   margin: 0px !important;
   text-align: center;
 }
@@ -105,19 +103,19 @@ button[default="true"][disabled="true"] > .button-box {
 
 button:hover,
 button:hover:active {
-  border : none;
+  border: none;
   background-color: #FFCF00;
   color: #000000;
 }
 
 button[open="true"] {
-  border : none;
+  border: none;
   background-color: #FF9F00;
   color: #000000;
 }
 
-button[checked="true"] {
-  border : none;
+button[checked="true"]:not(:hover) {
+  border: none;
   background-color: #008484;
   color: #000000;
 }
@@ -149,19 +147,42 @@ button[disabled="true"] > .button-box {
 
 /* ::::: menu/menu-button buttons ::::: */
 
-button[type="menu-button"] {
-  -moz-box-align: center;
-  -moz-box-pack: center;
+.button-menubutton-button,
+.button-menubutton-button:hover,
+.button-menubutton-button:hover:active,
+.button-menubutton-button[open="true"],
+.button-menubutton-button[disabled="true"] {
   margin: 0px;
-  border: none;
+  background-color: transparent;
+}
+
+button[type="menu-button"]:hover:active > .button-menubutton-button > .button-box,
+button[type="menu-button"][open="true"] > .button-menubutton-button > .button-box {
+  padding-top: 2px;
+  padding-bottom: 1px;
+  -moz-padding-start: 4px;
+  -moz-padding-end: 3px;
+}
+
+button[type="menu-button"]:hover > .button-menubutton-button,
+button[type="menu-button"]:hover:active > .button-menubutton-button,
+button[type="menu-button"][open="true"] > .button-menubutton-button {
+  color: #000000;
 }
 
 .button-menu-dropmarker,
 .button-menubutton-dropmarker {
-  -moz-border-radius: 3px;
-  margin: 1px;
+  margin: 2px;
   width: 11px;
   height: 11px;
+  background-color: transparent;
+  border: none;
+}
+
+button[type="menu-button"]:hover > .button-menubutton-dropmarker,
+button[type="menu-button"]:hover:active > .button-menubutton-dropmarker,
+button[type="menu-button"][open="true"] > .button-menubutton-dropmarker {
+  list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
 }
 
 /* ::::: plain buttons ::::: */
@@ -184,3 +205,10 @@ button[type="disclosure"] {
 button[type="disclosure"][open="true"] {
   list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
 }
+
+/* ::::: xhtml buttons ::::: */
+
+button::-moz-focus-inner {
+  padding: 0px;
+  border: 0px none;
+}