pjs/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 ::::: */
2000-05-02 03:36:58 +04:00
scrollbar {
-moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
cursor: default;
2000-05-02 03:36:58 +04:00
}
/* ::::: 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) ::::: */
2000-05-02 03:36:58 +04:00
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;
2000-05-02 03:36:58 +04:00
}
thumb:active > .thumb-horz-box-middle {
background: url("chrome://global/skin/scrollbar/thumb-hrz-mid-act.gif") repeat-x;
2000-05-02 03:36:58 +04:00
}
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");
2000-05-02 03:36:58 +04:00
}
.thumb-vert-spacer-top {
background: url("chrome://global/skin/scrollbar/thumb-vrt-top.gif") no-repeat;
height: 3px;
width: 14px;
}
2000-05-02 03:36:58 +04:00
.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;
}
2000-05-02 03:36:58 +04:00
.thumb-vert-grippy {
margin-top: 1px;
height: 10px;
background: url("chrome://global/skin/scrollbar/thumb-vrt-grip.gif") no-repeat;
2000-05-02 03:36:58 +04:00
}
/* ..... 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;
}
2000-05-02 03:36:58 +04:00
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;
2001-08-02 04:09:27 +04:00
-moz-box-align: end;
2000-05-02 03:36:58 +04:00
}
/* ..... increment .... */
2000-05-02 03:36:58 +04:00
scrollbarbutton[type="increment"] {
list-style-image: url("chrome://global/skin/scrollbar/btn-rit.gif")
2000-05-02 03:36:58 +04:00
}
scrollbarbutton[type="increment"]:hover:active {
list-style-image: url("chrome://global/skin/scrollbar/btn-rit-act.gif")
}
2000-05-02 03:36:58 +04:00
scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
list-style-image: url("chrome://global/skin/scrollbar/btn-dn.gif")
2000-05-02 03:36:58 +04:00
}
scrollbar[orient="vertical"] > scrollbarbutton[type="increment"]:hover:active {
list-style-image: url("chrome://global/skin/scrollbar/btn-dn-act.gif")
2000-05-02 03:36:58 +04:00
}
/* ..... decrement .... */
2000-05-02 03:36:58 +04:00
scrollbarbutton[type="decrement"] {
list-style-image: url("chrome://global/skin/scrollbar/btn-lft.gif")
2000-05-02 03:36:58 +04:00
}
scrollbarbutton[type="decrement"]:hover:active {
list-style-image: url("chrome://global/skin/scrollbar/btn-lft-act.gif")
2000-05-02 03:36:58 +04:00
}
scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
list-style-image: url("chrome://global/skin/scrollbar/btn-up.gif")
2000-05-02 03:36:58 +04:00
}
scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"]:hover:active {
list-style-image: url("chrome://global/skin/scrollbar/btn-up-act.gif")
2000-05-02 03:36:58 +04:00
}