mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-14 03:30:17 +01:00
268 lines
8.7 KiB
CSS
268 lines
8.7 KiB
CSS
|
/* ***** BEGIN LICENSE BLOCK *****
|
||
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||
|
*
|
||
|
* The contents of this file are subject to the Mozilla 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/MPL/
|
||
|
*
|
||
|
* 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 the Initial Developer are Copyright (C) 1998-2001
|
||
|
* the Initial Developer. All Rights Reserved.
|
||
|
*
|
||
|
* Contributor(s):
|
||
|
* Joe Hewitt (hewitt@netscape.com)
|
||
|
*
|
||
|
* Alternatively, the contents of this file may be used under the terms of
|
||
|
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
||
|
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
||
|
* of those above. If you wish to allow use of your version of this file only
|
||
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
||
|
* use your version of this file under the terms of the MPL, indicate your
|
||
|
* decision by deleting the provisions above and replace them with the notice
|
||
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
||
|
* the provisions above, a recipient may use your version of this file under
|
||
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
||
|
*
|
||
|
* ***** END LICENSE BLOCK ***** */
|
||
|
|
||
|
/* ===== 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 {
|
||
|
-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;
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
/* ::::: square at the corner of two scrollbars ::::: */
|
||
|
|
||
|
scrollcorner {
|
||
|
-moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
|
||
|
cursor: default;
|
||
|
background-color: -moz-Dialog;
|
||
|
}
|
||
|
|
||
|
/* ..... 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")
|
||
|
}
|
||
|
|
||
|
/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
|
||
|
/* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
|
||
|
/* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
|
||
|
@media print {
|
||
|
html|div slider {
|
||
|
-moz-appearance: scrollbartrack-horizontal;
|
||
|
height: 16px;
|
||
|
background: url("chrome://global/skin/scrollbar/slider-hrz.gif") #AAAAAA;
|
||
|
}
|
||
|
|
||
|
html|div slider[orient="vertical"] {
|
||
|
-moz-appearance: scrollbartrack-vertical;
|
||
|
width: 16px;
|
||
|
background-image: url("chrome://global/skin/scrollbar/slider-vrt.gif");
|
||
|
}
|
||
|
|
||
|
/* ::::: borders for thumb and buttons ::::: */
|
||
|
|
||
|
html|div 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%;
|
||
|
}
|
||
|
|
||
|
html|div 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");
|
||
|
}
|
||
|
|
||
|
html|div thumb[orient="vertical"] {
|
||
|
-moz-appearance: scrollbarthumb-vertical;
|
||
|
min-width: 0;
|
||
|
min-height: 16px;
|
||
|
background-image: url("chrome://global/skin/scrollbar/thumb-vrt.png");
|
||
|
}
|
||
|
|
||
|
html|div thumb[orient="vertical"]:active {
|
||
|
background-image: url("chrome://global/skin/scrollbar/thumb-vrt-act.png");
|
||
|
}
|
||
|
|
||
|
/* ::::: thumb (horizontal) ::::: */
|
||
|
|
||
|
html|div thumb {
|
||
|
min-height: 16px;
|
||
|
}
|
||
|
|
||
|
html|div thumb[orient="horizontal"] {
|
||
|
-moz-appearance: scrollbarthumb-horizontal;
|
||
|
min-width: 16px;
|
||
|
}
|
||
|
|
||
|
/* ::::: scrollbar button ::::: */
|
||
|
|
||
|
html|div 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%;
|
||
|
}
|
||
|
|
||
|
html|div 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 .... */
|
||
|
|
||
|
html|div scrollbarbutton[type="increment"] {
|
||
|
-moz-appearance: scrollbarbutton-right;
|
||
|
background-image: url("chrome://global/skin/scrollbar/btn-rit.gif")
|
||
|
}
|
||
|
|
||
|
html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
|
||
|
-moz-appearance: scrollbarbutton-down;
|
||
|
background-image: url("chrome://global/skin/scrollbar/btn-dn.gif")
|
||
|
}
|
||
|
|
||
|
/* ..... decrement .... */
|
||
|
|
||
|
html|div scrollbarbutton[type="decrement"] {
|
||
|
-moz-appearance: scrollbarbutton-left;
|
||
|
background-image: url("chrome://global/skin/scrollbar/btn-lft.gif")
|
||
|
}
|
||
|
|
||
|
html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
|
||
|
-moz-appearance: scrollbarbutton-up;
|
||
|
background-image: url("chrome://global/skin/scrollbar/btn-up.gif")
|
||
|
}
|
||
|
}
|