update to suite default status of 2009-01-30: bug 474807 - replace 4-piece margin...
[themes.git] / LCARStrek / global / scrollbars.css
index 530f0dfc4b58fd238b1e2df015d24e69c9ebeed0..68307942ab60921a8f350f5545e1a4c618f69d65 100644 (file)
  *
  * ***** END LICENSE BLOCK ***** */
 
-@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
-@namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
-
 /* ===== scrollbars.css =================================================
   == Styles used by XUL scrollbar-related elements.
   ======================================================================= */
 
+@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
+@namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
+
 /* ::::: scrollbar ::::: */
 
 scrollbar {
@@ -105,21 +105,35 @@ thumb[orient="horizontal"][disabled="true"] {
 scrollbarbutton {
 }
 
-scrollbarbutton:hover:active {
-  padding: 2px 0px 0px 2px;
-}   
+scrollbarbutton:hover:active,
+scrollbarbutton[active="true"] {
+  padding-top: 2px;
+  padding-bottom: 0px;
+  -moz-padding-start: 2px;
+  -moz-padding-end: 0px;
+}
+
+/* XXX - scrollbar.xml always grabs the OS settings and we don't want that */
+scrollbarbutton[sbattr="scrollbar-up-bottom"],
+scrollbarbutton[sbattr="scrollbar-down-top"] {
+  display: none;
+}
 
 /* ::::: square at the corner of two scrollbars ::::: */
 
 scrollcorner {
+  -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
+  cursor: default;
   background-color: #000000;
+  width: 13px;
 }
 
 /* ..... increment .... */
 
 scrollbarbutton[type="increment"] {
   background-image: url("chrome://global/skin/scrollbar/button-right.gif");
-  margin: 0px 0px 0px 3px;
+  margin: 0px;
+  -moz-margin-start: 3px;
 }
 
 scrollbarbutton[type="increment"]:hover {
@@ -132,7 +146,7 @@ scrollbarbutton[type="increment"][disabled="true"] {
 
 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
   background-image: url("chrome://global/skin/scrollbar/button-down.gif");
-  margin: 3px 0px 0px 0px;
+  margin: 3px 0px 0px;
 }
 
 scrollbar[orient="vertical"] > scrollbarbutton[type="increment"]:hover {
@@ -147,7 +161,8 @@ scrollbar[orient="vertical"] > scrollbarbutton[type="increment"][disabled="true"
 
 scrollbarbutton[type="decrement"] {
   background-image: url("chrome://global/skin/scrollbar/button-left.gif");
-  margin: 0px 3px 0px 0px;
+  margin: 0px;
+  -moz-margin-end: 3px;
 }
 
 scrollbarbutton[type="decrement"]:hover {
@@ -160,7 +175,7 @@ scrollbarbutton[type="decrement"][disabled="true"] {
 
 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
   background-image: url("chrome://global/skin/scrollbar/button-up.gif");
-  margin: 0px 0px 3px 0px;
+  margin: 0px 0px 3px;
 }
 
 scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"]:hover {
@@ -184,7 +199,7 @@ scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"
     background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
   }
 
-  html|div scrollbar[orient="vertical"] 
+  html|div scrollbar[orient="vertical"]
   {
      -moz-appearance: scrollbartrack-vertical;
   }
@@ -213,28 +228,21 @@ scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"][disabled="true"
     min-width: 8px;
   }
 
-  html|div thumb > gripper {
-    -moz-appearance: scrollbargripper-vertical;
-  }
-
-  html|div thumb[orient="horizontal"] > gripper {
-    -moz-appearance: scrollbargripper-horizontal;
-  }
-
   /* ::::: scrollbar button ::::: */
 
   html|div scrollbarbutton {
-    background: -moz-Dialog no-repeat 0px 1px;
+    background: -moz-Dialog no-repeat 50% 50%;
     min-width: 16px;
     min-height: 16px;
   }
 
-  html|div scrollbarbutton:hover:active {
+  html|div scrollbarbutton:hover:active,
+  html|div scrollbarbutton[active="true"] {
     -moz-border-top-colors: ThreeDShadow -moz-Dialog;
     -moz-border-right-colors: ThreeDShadow -moz-Dialog;
     -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
     -moz-border-left-colors: ThreeDShadow -moz-Dialog;
-    background-position: 1px 2px;
+    background-position: 60% 60%;
   }
 
   /* ..... increment .... */