gecko-dev/themes/modern/global/scrollbars.css

186 строки
5.2 KiB
CSS

/*
* 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/content/bindings/scrollbar.xml#scrollbar");
cursor: default;
}
/* ::::: slider ::::: */
slider {
height: 14px;
background: url("chrome://global/skin/scrollbar/slider-hrz-mid.gif") repeat-x;
}
slider[orient="vertical"] {
border-top: 0px;
border-bottom: 0px;
width: 14px;
background: url("chrome://global/skin/scrollbar/slider-vrt-mid.gif") repeat-y;
}
/* ::::: thumb (horizontal) ::::: */
thumb {
-moz-binding: url("chrome://global/skin/globalBindings.xml#thumb-horizontal");
height: 14px;
}
.thumb-horz-spacer-left {
width: 3px;
background: url("chrome://global/skin/scrollbar/thumb-hrz-lft.gif") no-repeat;
}
.thumb-horz-box-middle {
background: url("chrome://global/skin/scrollbar/thumb-hrz-mid.gif") repeat-x;
}
.thumb-horz-spacer-right {
width: 3px;
background: url("chrome://global/skin/scrollbar/thumb-hrz-rit.gif") no-repeat;
}
.thumb-horz-grippy {
margin-left: 1px;
width: 10px;
background: url("chrome://global/skin/scrollbar/thumb-hrz-grip.gif") no-repeat;
}
/* ..... active state ..... */
thumb:active > .thumb-horz-spacer-left {
background: url("chrome://global/skin/scrollbar/thumb-hrz-act-lft-act.gif") no-repeat;
}
thumb:active > .thumb-horz-box-middle {
background: url("chrome://global/skin/scrollbar/thumb-hrz-mid-act.gif") repeat-x;
}
thumb:active > .thumb-horz-spacer-right {
background: url("chrome://global/skin/scrollbar/thumb-hrz-rit-act.gif") no-repeat;
}
thumb:active > .thumb-horz-box-middle > .thumb-horz-grippy {
background-image: url("chrome://global/skin/scrollbar/thumb-hrz-grip-act.gif");
}
/* ::::: thumb (vertical) ::::: */
thumb[orient="vertical"] {
-moz-binding: url("chrome://global/skin/globalBindings.xml#thumb-vertical");
}
.thumb-vert-spacer-top {
background: url("chrome://global/skin/scrollbar/thumb-vrt-top.gif") no-repeat;
height: 3px;
width: 14px;
}
.thumb-vert-box-middle {
background: url("chrome://global/skin/scrollbar/thumb-vrt-mid.gif") repeat-y;
width: 14px;
}
.thumb-vert-spacer-bottom {
background: url("chrome://global/skin/scrollbar/thumb-vrt-btm.gif") no-repeat;
height: 3px;
width: 14px;
}
.thumb-vert-grippy {
margin-top: 1px;
height: 10px;
background: url("chrome://global/skin/scrollbar/thumb-vrt-grip.gif") no-repeat;
}
/* ..... active state ..... */
thumb:active > .thumb-vert-spacer-top {
background: url("chrome://global/skin/scrollbar/thumb-vrt-top-act.gif") no-repeat;
}
thumb:active > .thumb-vert-box-middle {
background: url("chrome://global/skin/scrollbar/thumb-vrt-mid-act.gif") repeat-y;
}
thumb:active > .thumb-vert-spacer-bottom {
background: url("chrome://global/skin/scrollbar/thumb-vrt-btm-act.gif") no-repeat;
}
thumb:active > .thumb-vert-box-middle > .thumb-vert-grippy {
background-image: url("chrome://global/skin/scrollbar/thumb-vrt-grip-act.gif");
}
/* ::::: scrollbar button ::::: */
scrollbarbutton {
-moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbarbutton");
cursor: default;
-moz-box-align: end;
}
/* ..... 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[orient="vertical"] > scrollbarbutton[type="increment"] {
list-style-image: url("chrome://global/skin/scrollbar/btn-dn.gif")
}
scrollbar[orient="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[orient="vertical"] > scrollbarbutton[type="decrement"] {
list-style-image: url("chrome://global/skin/scrollbar/btn-up.gif")
}
scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"]:hover:active {
list-style-image: url("chrome://global/skin/scrollbar/btn-up-act.gif")
}