/*
 * The contents of this file are subject to the Netscape Public
 * License Version 1.1 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy of
 * the License at http://www.mozilla.org/NPL/
 *
 * Software distributed under the License is distributed on an "AS
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 * implied. See the License for the specific language governing
 * rights and limitations under the License.
 *
 * The Original Code is Mozilla Communicator client code, released
 * March 31, 1998.
 *
 * The Initial Developer of the Original Code is Netscape
 * Communications Corporation. Portions created by Netscape are
 * Copyright (C) 1998-2001 Netscape Communications Corporation. All
 * Rights Reserved.
 *
 * Contributor(s):
 *   Joe Hewitt (hewitt@netscape.com)
 */

/* ===== scrollbars.css =================================================
  == Styles used by XUL scrollbar-related elements.
  ======================================================================= */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* ::::: scrollbar ::::: */

scrollbar {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#scrollbar");
  -moz-user-focus: ignore;
}

/* ::::: slider ::::: */

slider {
  -moz-user-focus: ignore;
  -moz-user-select: none;
  height: 15px;
  background: url("chrome://global/skin/scrollbar/bar-hrz-mid.gif") repeat-x;
}

slider[align="vertical"] {
  -moz-user-focus: ignore;
  -moz-user-select: none;
  border: none;
  width: 14px;
  background: url("chrome://global/skin/scrollbar/bar-vrt-mid.gif") repeat-y;
}

/* ::::: thumb (horizontal) ::::: */

thumb {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#thumb-horizontal");
  -moz-user-focus: ignore;
  -moz-user-select: none;
}

.thumb-horz-spring-left {
  width: 3px;
  height: 14px;
  background: url("chrome://global/skin/scrollbar/thumb-hrz-lft.gif") no-repeat;
}

.thumb-horz-box-middle {
  height: 14px;
  background: url("chrome://global/skin/scrollbar/thumb-hrz-mid.gif") repeat-x;
}

.thumb-horz-spring-right {
  width: 3px;
  height: 14px;
  background: url("chrome://global/skin/scrollbar/thumb-hrz-rit.gif") no-repeat;
}

.thumb-horz-grippy {
  list-style-image: url("chrome://global/skin/scrollbar/thumb-hrz-grip.gif");
}

/* ..... active state ..... */

thumb:active > .thumb-horz-spring-left {
  background: url("chrome://global/skin/scrollbar/thumb-hrz-act-lft.gif") no-repeat;
}

thumb:active > .thumb-horz-box-middle {
  background: url("chrome://global/skin/scrollbar/thumb-hrz-act-mid.gif") repeat-x;
}

thumb:active > .thumb-horz-spring-right {
  background: url("chrome://global/skin/scrollbar/thumb-hrz-act-rit.gif") no-repeat;
}

thumb:active > .thumb-horz-box-middle > .thumb-horz-grippy {
  list-style-image: url("chrome://global/skin/scrollbar/thumb-hrz-act-grip.gif");
}

/* ::::: thumb (vertical) ::::: */

thumb[align="vertical"] {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#thumb-vertical");
  -moz-user-focus: ignore;
  -moz-user-select: none;
}

.thumb-vert-spring-top {
  width: 14px;
  height: 3px;
  background: url("chrome://global/skin/scrollbar/thumb-vrt-top.gif") no-repeat;
}

.thumb-vert-box-middle {
  width: 14px;
  background: url("chrome://global/skin/scrollbar/thumb-vrt-mid.gif") repeat-y;
}

.thumb-vert-spring-bottom {
  width: 14px;
  height: 3px;
  background: url("chrome://global/skin/scrollbar/thumb-vrt-btm.gif") no-repeat;
}

.thumb-vert-grippy {
  list-style-image: url("chrome://global/skin/scrollbar/thumb-vrt-grip.gif");
}

/* ..... active state ..... */

thumb:active > .thumb-vert-spring-top {
  background: url("chrome://global/skin/scrollbar/thumb-vrt-act-top.gif") no-repeat;
}

thumb:active > .thumb-vert-box-middle {
  background: url("chrome://global/skin/scrollbar/thumb-vrt-act-mid.gif") repeat-y;
}

thumb:active > .thumb-vert-spring-bottom {
  background: url("chrome://global/skin/scrollbar/thumb-vrt-act-btm.gif") no-repeat;
}

thumb:active > .thumb-vert-box-middle > .thumb-vert-grippy {
  list-style-image: url("chrome://global/skin/scrollbar/thumb-vrt-act-grip.gif");
}

/* ::::: scrollbar button ::::: */

scrollbarbutton {
  -moz-user-focus: ignore;
  -moz-user-select: none;
  cursor: default;
  vertical-align: bottom;
}

/* ..... increment .... */

scrollbarbutton[type="increment"] {
  list-style-image: url("chrome://global/skin/scrollbar/btn-rit.gif")
}

scrollbarbutton[type="increment"]:hover:active {
  list-style-image: url("chrome://global/skin/scrollbar/btn-rit-act.gif")
}

scrollbar[align="vertical"] > scrollbarbutton[type="increment"] {
  list-style-image: url("chrome://global/skin/scrollbar/btn-dn.gif")
}

scrollbar[align="vertical"] > scrollbarbutton[type="increment"]:hover:active {
  list-style-image: url("chrome://global/skin/scrollbar/btn-dn-act.gif")
}

/* ..... decrement .... */

scrollbarbutton[type="decrement"] {
  list-style-image: url("chrome://global/skin/scrollbar/btn-lft.gif")
}

scrollbarbutton[type="decrement"]:hover:active {
  list-style-image: url("chrome://global/skin/scrollbar/btn-lft-act.gif")
}

scrollbar[align="vertical"] > scrollbarbutton[type="decrement"] {
  list-style-image: url("chrome://global/skin/scrollbar/btn-up.gif")
}

scrollbar[align="vertical"] > scrollbarbutton[type="decrement"]:hover:active {
  list-style-image: url("chrome://global/skin/scrollbar/btn-up-act.gif")
}
