home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / Chip_2004-04_cd1.bin / tema / mozilla / skin / MozCurveBlue-1.4-0.99.jar / global / scrollbars.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2003-12-06  |  6.0 KB  |  208 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. @namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
  30.  
  31. /* ::::: scrollbar ::::: */
  32.  
  33. scrollbar {
  34.   -moz-appearance: scrollbartrack-horizontal;
  35.   -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
  36.   cursor: default;
  37.   background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
  38. }
  39.  
  40. scrollbar[orient="vertical"] 
  41. {
  42.    -moz-appearance: scrollbartrack-vertical;
  43. }
  44.  
  45. /* ::::: borders for thumb and buttons ::::: */
  46.  
  47. thumb,
  48. scrollbarbutton {
  49.   border: 2px solid;
  50.   -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
  51.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  52.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  53.   -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
  54.   background-color: -moz-Dialog;
  55. }
  56.  
  57. /* ::::: thumb (horizontal) ::::: */
  58.  
  59. thumb {
  60.   -moz-appearance: scrollbarthumb-vertical;
  61.   min-height: 8px;
  62. }
  63.  
  64. thumb[orient="horizontal"] {
  65.   -moz-appearance: scrollbarthumb-horizontal;
  66.   min-width: 8px;
  67. }
  68.  
  69. thumb > gripper {
  70.   -moz-appearance: scrollbargripper-vertical;
  71. }
  72.  
  73. thumb[orient="horizontal"] > gripper {
  74.   -moz-appearance: scrollbargripper-horizontal;
  75. }
  76.  
  77. /* ::::: scrollbar button ::::: */
  78.  
  79. scrollbarbutton {
  80.   background: -moz-Dialog no-repeat 0px 1px;
  81.   min-width: 16px;
  82.   min-height: 16px;
  83. }
  84.  
  85. scrollbarbutton:hover:active {
  86.   -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  87.   -moz-border-right-colors: ThreeDShadow -moz-Dialog;
  88.   -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
  89.   -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  90.   background-position: 1px 2px;
  91. }
  92.  
  93. /* ..... increment .... */
  94.  
  95. scrollbarbutton[type="increment"] {
  96.   -moz-appearance: scrollbarbutton-right;
  97.   background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
  98. }
  99.  
  100. scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
  101.   -moz-appearance: scrollbarbutton-down;
  102.   background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
  103. }
  104.  
  105. /* ..... decrement .... */
  106.  
  107. scrollbarbutton[type="decrement"] {
  108.   -moz-appearance: scrollbarbutton-left;
  109.    background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
  110. }
  111.  
  112. scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
  113.   -moz-appearance: scrollbarbutton-up;
  114.    background-image: url("chrome://global/skin/arrow/arrow-up.gif")
  115. }
  116.  
  117. /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
  118. /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
  119. /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
  120. @media print {
  121.   /* ::::: scrollbar ::::: */
  122.  
  123.   html|div scrollbar {
  124.     -moz-appearance: scrollbartrack-horizontal;
  125.     -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
  126.     cursor: default;
  127.     background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
  128.   }
  129.  
  130.   html|div scrollbar[orient="vertical"] 
  131.   {
  132.      -moz-appearance: scrollbartrack-vertical;
  133.   }
  134.  
  135.   /* ::::: borders for thumb and buttons ::::: */
  136.  
  137.   html|div thumb,
  138.   html|div scrollbarbutton {
  139.     border: 2px solid;
  140.     -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
  141.     -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  142.     -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  143.     -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
  144.     background-color: -moz-Dialog;
  145.   }
  146.  
  147.   /* ::::: thumb (horizontal) ::::: */
  148.  
  149.   html|div thumb {
  150.     -moz-appearance: scrollbarthumb-vertical;
  151.     min-height: 8px;
  152.   }
  153.  
  154.   html|div thumb[orient="horizontal"] {
  155.     -moz-appearance: scrollbarthumb-horizontal;
  156.     min-width: 8px;
  157.   }
  158.  
  159.   html|div thumb > gripper {
  160.     -moz-appearance: scrollbargripper-vertical;
  161.   }
  162.  
  163.   html|div thumb[orient="horizontal"] > gripper {
  164.     -moz-appearance: scrollbargripper-horizontal;
  165.   }
  166.  
  167.   /* ::::: scrollbar button ::::: */
  168.  
  169.   html|div scrollbarbutton {
  170.     background: -moz-Dialog no-repeat 0px 1px;
  171.     min-width: 16px;
  172.     min-height: 16px;
  173.   }
  174.  
  175.   html|div scrollbarbutton:hover:active {
  176.     -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  177.     -moz-border-right-colors: ThreeDShadow -moz-Dialog;
  178.     -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
  179.     -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  180.     background-position: 1px 2px;
  181.   }
  182.  
  183.   /* ..... increment .... */
  184.  
  185.   html|div scrollbarbutton[type="increment"] {
  186.     -moz-appearance: scrollbarbutton-right;
  187.     background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
  188.   }
  189.  
  190.   html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
  191.     -moz-appearance: scrollbarbutton-down;
  192.     background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
  193.   }
  194.  
  195.   /* ..... decrement .... */
  196.  
  197.   html|div scrollbarbutton[type="decrement"] {
  198.     -moz-appearance: scrollbarbutton-left;
  199.      background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
  200.   }
  201.  
  202.   html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
  203.     -moz-appearance: scrollbarbutton-up;
  204.      background-image: url("chrome://global/skin/arrow/arrow-up.gif")
  205.   }
  206.  
  207. }
  208.