home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / Chip_2004-04_cd1.bin / tema / mozilla / skin / ieskin-0.0.3-IE5.5-skinVersion1.5.xpi / ieskin.jar / global / scrollbars.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2004-01-05  |  3.4 KB  |  116 lines

  1. /*
  2.  * The contents of this file are subject to the Netscape Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/NPL/
  6.  *
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  *
  12.  * The Original Code is Mozilla Communicator client code, released
  13.  * March 31, 1998.
  14.  *
  15.  * The Initial Developer of the Original Code is Netscape
  16.  * Communications Corporation. Portions created by Netscape are
  17.  * Copyright (C) 1998-2001 Netscape Communications Corporation. All
  18.  * Rights Reserved.
  19.  *
  20.  * Contributor(s):
  21.  *   Joe Hewitt (hewitt@netscape.com)
  22.  */
  23.  
  24. /* ===== scrollbars.css =================================================
  25.   == Styles used by XUL scrollbar-related elements.
  26.   ======================================================================= */
  27.  
  28. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  29.  
  30. /* ::::: scrollbar ::::: */
  31.  
  32. scrollbar {
  33.   -moz-appearance: scrollbartrack-horizontal;
  34.   -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
  35.   cursor: default;
  36.   background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
  37. }
  38.  
  39. scrollbar[orient="vertical"] 
  40. {
  41.    -moz-appearance: scrollbartrack-vertical;
  42. }
  43.  
  44. /* ::::: borders for thumb and buttons ::::: */
  45.  
  46. thumb,
  47. scrollbarbutton {
  48.   border: 2px solid;
  49.   -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
  50.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  51.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  52.   -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
  53.   background-color: -moz-Dialog;
  54. }
  55.  
  56. /* ::::: thumb (horizontal) ::::: */
  57.  
  58. thumb {
  59.   -moz-appearance: scrollbarthumb-vertical;
  60.   min-height: 8px;
  61. }
  62.  
  63. thumb[orient="horizontal"] {
  64.   -moz-appearance: scrollbarthumb-horizontal;
  65.   min-width: 8px;
  66. }
  67.  
  68. thumb > gripper {
  69.   -moz-appearance: scrollbargripper-vertical;
  70. }
  71.  
  72. thumb[orient="horizontal"] > gripper {
  73.   -moz-appearance: scrollbargripper-horizontal;
  74. }
  75.  
  76. /* ::::: scrollbar button ::::: */
  77.  
  78. scrollbarbutton {
  79.   background: -moz-Dialog no-repeat 0px 1px;
  80.   min-width: 16px;
  81.   min-height: 16px;
  82. }
  83.  
  84. scrollbarbutton:hover:active {
  85.   -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  86.   -moz-border-right-colors: ThreeDShadow -moz-Dialog;
  87.   -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
  88.   -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  89.   background-position: 1px 2px;
  90. }
  91.  
  92. /* ..... increment .... */
  93.  
  94. scrollbarbutton[type="increment"] {
  95.   -moz-appearance: scrollbarbutton-right;
  96.   background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
  97. }
  98.  
  99. scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
  100.   -moz-appearance: scrollbarbutton-down;
  101.   background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
  102. }
  103.  
  104. /* ..... decrement .... */
  105.  
  106. scrollbarbutton[type="decrement"] {
  107.   -moz-appearance: scrollbarbutton-left;
  108.    background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
  109. }
  110.  
  111. scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
  112.   -moz-appearance: scrollbarbutton-up;
  113.    background-image: url("chrome://global/skin/arrow/arrow-up.gif")
  114. }
  115.  
  116.