зеркало из https://github.com/mozilla/gecko-dev.git
now moved to xulscrollbars.css r=sdagley/sr=beard/a=valeski. bug# 121440
This commit is contained in:
Родитель
a76c660801
Коммит
9b6bd3f9f3
|
@ -1,140 +0,0 @@
|
|||
/*
|
||||
* 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-appearance: scrollbar;
|
||||
-moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* ::::: slider ::::: */
|
||||
|
||||
slider {
|
||||
-moz-appearance: scrollbartrack-horizontal;
|
||||
height: 16px;
|
||||
background: url("chrome://global/skin/scrollbar/slider-hrz.gif") #AAAAAA;
|
||||
}
|
||||
|
||||
slider[orient="vertical"] {
|
||||
-moz-appearance: scrollbartrack-vertical;
|
||||
width: 16px;
|
||||
height: none;
|
||||
background-image: url("chrome://global/skin/scrollbar/slider-vrt.gif");
|
||||
}
|
||||
|
||||
/* ::::: borders for thumb and buttons ::::: */
|
||||
|
||||
thumb {
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: #000000 -moz-mac-accentregularhighlight;
|
||||
-moz-border-right-colors: #000000 -moz-mac-accentlightshadow;
|
||||
-moz-border-bottom-colors: #000000 -moz-mac-accentlightshadow;
|
||||
-moz-border-left-colors: #000000 -moz-mac-accentregularhighlight;
|
||||
min-width: 10px;
|
||||
background: url("chrome://global/skin/scrollbar/thumb-hrz.png") -moz-mac-accentface no-repeat 50% 50%;
|
||||
}
|
||||
|
||||
thumb:active {
|
||||
-moz-border-top-colors: #000000 -moz-mac-accentregularhighlight;
|
||||
-moz-border-right-colors: #000000 -moz-mac-accentlightshadow;
|
||||
-moz-border-bottom-colors: #000000 -moz-mac-accentlightshadow;
|
||||
-moz-border-left-colors: #000000 -moz-mac-accentregularhighlight;
|
||||
background-color: -moz-mac-accentlightshadow;
|
||||
background-image: url("chrome://global/skin/scrollbar/thumb-hrz-act.png");
|
||||
}
|
||||
|
||||
thumb[orient="vertical"] {
|
||||
-moz-appearance: scrollbarthumb-vertical;
|
||||
min-width: 0;
|
||||
min-height: 16px;
|
||||
background-image: url("chrome://global/skin/scrollbar/thumb-vrt.png");
|
||||
}
|
||||
|
||||
thumb[orient="vertical"]:active {
|
||||
background-image: url("chrome://global/skin/scrollbar/thumb-vrt-act.png");
|
||||
}
|
||||
|
||||
/* ::::: thumb (horizontal) ::::: */
|
||||
|
||||
thumb {
|
||||
min-height: 16px;
|
||||
}
|
||||
|
||||
thumb[orient="horizontal"] {
|
||||
-moz-appearance: scrollbarthumb-horizontal;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
/* ::::: scrollbar button ::::: */
|
||||
|
||||
scrollbarbutton {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border: 2px solid;
|
||||
-moz-border-top-colors: #000000 #FFFFFF;
|
||||
-moz-border-right-colors: #000000 #BBBBBB;
|
||||
-moz-border-bottom-colors: #000000 #BBBBBB;
|
||||
-moz-border-left-colors: #000000 #FFFFFF;
|
||||
background: #DDDDDD no-repeat 50% 50%;
|
||||
}
|
||||
|
||||
scrollbarbutton:hover:active {
|
||||
-moz-border-top-colors: #000000 #444444;
|
||||
-moz-border-right-colors: #000000 #AAAAAA;
|
||||
-moz-border-bottom-colors: #000000 #AAAAAA;
|
||||
-moz-border-left-colors: #000000 #444444;
|
||||
background-color: #666666;
|
||||
}
|
||||
|
||||
/* ..... increment .... */
|
||||
|
||||
scrollbarbutton[type="increment"] {
|
||||
-moz-appearance: scrollbarbutton-right;
|
||||
background-image: url("chrome://global/skin/scrollbar/btn-rit.gif")
|
||||
}
|
||||
|
||||
scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
|
||||
-moz-appearance: scrollbarbutton-down;
|
||||
background-image: url("chrome://global/skin/scrollbar/btn-dn.gif")
|
||||
}
|
||||
|
||||
/* ..... decrement .... */
|
||||
|
||||
scrollbarbutton[type="decrement"] {
|
||||
-moz-appearance: scrollbarbutton-left;
|
||||
background-image: url("chrome://global/skin/scrollbar/btn-lft.gif")
|
||||
}
|
||||
|
||||
scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
|
||||
-moz-appearance: scrollbarbutton-up;
|
||||
background-image: url("chrome://global/skin/scrollbar/btn-up.gif")
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче