start 2.41 cycle (yes, leaving out 2.39 and 2.40)
[themes.git] / LCARStrek / global / button.css
index 2884ff78844c79c699078dcee626cfe9f0a72457..e18b9da66ef25f83314f0dc745d332252bbffdce 100644 (file)
@@ -9,22 +9,22 @@
 /* :::::::::: button :::::::::: */
 
 button {
-  border-radius: 3px;
+  border-radius: 300px;
   margin: 1px 2px;
   min-width: 6.3em;
   border: none;
-  background-color: #000000;
-  color: #FFCF00;
+  background-color: #C09070;
+  color: #000000;
   text-shadow: none;
 }
 
 .button-box {
-  border-radius: 3px;
+  border-radius: 300px;
   border: 1px solid transparent;
   padding-top: 1px;
   padding-bottom: 2px;
-  -moz-padding-start: 3px;
-  -moz-padding-end: 4px;
+  -moz-padding-start: .5em;
+  -moz-padding-end: calc(.5em + 1px);
 }
 
 .button-icon {
@@ -45,25 +45,12 @@ button:-moz-focusring > .button-box {
 
 /* .......... default state .......... */
 
-button[default="true"] > .button-box {
-  font-weight: bold;
-  list-style-image: url("chrome://global/skin/icons/return.gif");
-  -moz-box-direction: reverse;
-}
-
-button[default="true"] > .button-box > .button-icon {
-  -moz-margin-end: 0px;
-  -moz-margin-start: 2px;
-}
-
-button[default="true"]:hover > .button-box,
-button[default="true"]:hover:active > .button-box {
-  list-style-image: url("chrome://global/skin/icons/return-hover.gif");
+button[default="true"] {
+  background-color: #A06060;
 }
 
-button[default="true"][disabled="true"] > .button-box {
+button[default="true"] > .button-box {
   font-weight: bold;
-  list-style-image: url("chrome://global/skin/icons/return-disabled.gif") !important;
 }
 
 /* .......... active/open/checked state .......... */
@@ -92,8 +79,8 @@ button[open="true"] > .button-box,
 button[checked="true"] > .button-box {
   padding-top: 2px;
   padding-bottom: 1px;
-  -moz-padding-start: 4px;
-  -moz-padding-end: 3px;
+  -moz-padding-start: calc(.5em + 1px);
+  -moz-padding-end: .5em;
 }
 
 /* .......... disabled state .......... */
@@ -101,15 +88,15 @@ button[checked="true"] > .button-box {
 button[disabled="true"],
 button[disabled="true"]:hover:active {
   border: none;
-  background-color: #000000 !important;
-  color: #8050B0 !important;
+  background-color: #402858 !important;
+  color: #000000 !important;
 }
 
 button[disabled="true"] > .button-box {
   padding-top: 1px !important;
   padding-bottom: 2px !important;
-  -moz-padding-start: 3px !important;
-  -moz-padding-end: 4px !important;
+  -moz-padding-start: .5em !important;
+  -moz-padding-end: calc(.5em + 1px) !important;
 }
 
 /* ::::: menu/menu-button buttons ::::: */
@@ -127,8 +114,8 @@ button[type="menu-button"]:hover:active > .button-menubutton-button > .button-bo
 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;
+  -moz-padding-start: calc(.5em + 1px);
+  -moz-padding-end: .5em;
 }
 
 button[type="menu-button"]:hover > .button-menubutton-button,
@@ -140,16 +127,18 @@ button[type="menu-button"][open="true"] > .button-menubutton-button {
 .button-menu-dropmarker,
 .button-menubutton-dropmarker {
   margin: 2px;
+  -moz-margin-end: 5px;
   width: 11px;
   height: 11px;
   background-color: transparent;
   border: none;
+  list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
 }
 
+.button-menu-dropmarker,
 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 ::::: */
@@ -179,3 +168,37 @@ button::-moz-focus-inner {
   padding: 0px;
   border: 0px none;
 }
+
+/* ::::: toolbar buttons (sync look with toolbarbutton) ::::: */
+
+/* The #throbber-box rules are only needed for the SeaMonkey editor,
+ * the toolbaritem ones for buttons in customizable toolbars. */
+toolbaritem > button,
+#throbber-box > button {
+  border-radius: 3px;
+  background-color: #000000;
+  color: #FFCF00;
+}
+
+toolbaritem > button > .button-box,
+#throbber-box > button > .button-box {
+  border-radius: 3px;
+  -moz-padding-start: 0;
+  -moz-padding-end: 1px;
+}
+
+toolbaritem > button > button:hover:active > .button-box,
+toolbaritem > button > button[open="true"] > .button-box,
+toolbaritem > button > button[checked="true"] > .button-box,
+#throbber-box > button:hover:active > .button-box,
+#throbber-box > button > button[open="true"] > .button-box,
+#throbber-box > button > button[checked="true"] > .button-box {
+  -moz-padding-start: 1px;
+  -moz-padding-end: 0;
+}
+
+toolbaritem > button > button[disabled="true"] > .button-box,
+#throbber-box > button[disabled="true"] > .button-box {
+  -moz-padding-start: 0 !important;
+  -moz-padding-end: 1px !important;
+}