improve mail header positioning, style net error buttons
[themes.git] / LCARStrek / global / button.css
index f88589202079f5c7c4996d19e793abd00fa88df5..801281e151b4de5479677dfce75654a1da3a7ed6 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 {
@@ -50,12 +48,16 @@ button {
   border: none;
   background-color: #000000;
   color: #FFCF00;
+  text-shadow: none;
 }
 
 .button-box {
   -moz-border-radius: 3px;
   border: 1px solid transparent;
-  padding: 1px 4px 2px 3px;
+  padding-top: 1px;
+  padding-bottom: 2px;
+  -moz-padding-start: 3px;
+  -moz-padding-end: 4px;
 }
 
 .button-icon {
@@ -70,10 +72,7 @@ button {
 
 /* .......... focused state .......... */
 
-button:focus {
-}
-
-button:focus > .button-box {
+button:-moz-focusring > .button-box {
   border: 1px dotted #008484;
 }
 
@@ -104,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;
 }
@@ -124,7 +123,10 @@ button[checked="true"] {
 button:hover:active > .button-box,
 button[open="true"] > .button-box,
 button[checked="true"] > .button-box {
-  padding: 2px 3px 1px 4px;
+  padding-top: 2px;
+  padding-bottom: 1px;
+  -moz-padding-start: 4px;
+  -moz-padding-end: 3px;
 }
 
 /* .......... disabled state .......... */
@@ -137,7 +139,10 @@ button[disabled="true"]:hover:active {
 }
 
 button[disabled="true"] > .button-box {
-  padding: 1px 4px 2px 3px !important;
+  padding-top: 1px !important;
+  padding-bottom: 2px !important;
+  -moz-padding-start: 3px !important;
+  -moz-padding-end: 4px !important;
 }
 
 /* ::::: menu/menu-button buttons ::::: */
@@ -153,8 +158,8 @@ button[type="menu-button"] {
 .button-menubutton-dropmarker {
   -moz-border-radius: 3px;
   margin: 1px;
-  min-width: 11px;
-  min-height: 11px;
+  width: 11px;
+  height: 11px;
 }
 
 /* ::::: plain buttons ::::: */
@@ -177,3 +182,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;
+}