home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 114 / CDRom114.iso / internet / temathun / Charamel.jar / global / scrollbars.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2004-08-09  |  6.3 KB  |  227 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.  *   Alex W. (Charamel) <lucx@shaw.ca>
  23.  */
  24.  
  25. /* ===== scrollbars.css =================================================
  26.   == Styles used by XUL scrollbar-related elements.
  27.   ======================================================================= */
  28.  
  29. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  30. @namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
  31.  
  32.  
  33. /*:::::::: Rounded scrollbars 
  34. :::::::::: A Charamel original style
  35. :::::::::: Developed by Alex W. <lucx@shaw.ca>
  36. ::::::::::*/
  37.  
  38. scrollbar {
  39.   -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
  40.   cursor: default;
  41. }
  42.  
  43. scrollbar[orient="vertical"] 
  44. {
  45.   background: url("chrome://global/skin/scrollbar/track-vertical.png") repeat-y #F0E9DD;
  46.   width:12px;
  47. }
  48.  
  49.  
  50. scrollbar[orient="horizontal"] 
  51. {
  52.   background: url("chrome://global/skin/scrollbar/track-horizontal.png") repeat-x #F0E9DD;
  53.   height:12px;
  54. }
  55.  
  56.  
  57. /*:::::::: Rounded scrollbars 
  58. :::::::::: A Charamel original style
  59. :::::::::: Developed by Alex W. <lucx@shaw.ca>
  60. ::::::::::*/
  61.  
  62. /* ::::: thumb (horizontal) ::::: */
  63. /*topcap*/
  64. thumb[orient="vertical"]{
  65. min-height: 24px;
  66. background:url("chrome://global/skin/scrollbar/thumb-topcap.png") no-repeat top left;
  67. }
  68.  
  69. /*bottom cap*/
  70.  
  71. gripper{
  72. -moz-box-flex: 1;    
  73. }
  74.  
  75. thumb[orient="vertical"] > gripper {
  76. width:12px;
  77. background:url("chrome://global/skin/scrollbar/thumb-bottomcap.png") no-repeat bottom left;    
  78. }
  79.  
  80.  
  81. /*startcap*/
  82. thumb[orient="horizontal"] {
  83.   min-width: 24px;
  84.   background:url("chrome://global/skin/scrollbar/thumb-startcap.png") no-repeat top left;
  85. }
  86.  
  87. /*endcap*/
  88. thumb[orient="horizontal"] > gripper {
  89. height:12px;
  90. background:url("chrome://global/skin/scrollbar/thumb-endcap.png") no-repeat top right;    
  91. }
  92.  
  93. /*:::::::: Rounded scrollbars 
  94. :::::::::: A Charamel original style
  95. :::::::::: Developed by Alex W. <lucx@shaw.ca>
  96. ::::::::::*/
  97.  
  98.  
  99.  
  100.  
  101.  
  102. /* ::::: square at the corner of two scrollbars ::::: */
  103.  
  104. scrollcorner { 
  105.   background:url("chrome://global/skin/scrollbar/corner.png") no-repeat;
  106. }
  107.  
  108. /* ::::: scrollbar button ::::: */
  109.  
  110. scrollbarbutton {
  111.   min-width: 12px;
  112.   min-height: 12px;
  113.   background-repeat:no-repeat;
  114. }
  115.  
  116. /*right Arrow*/
  117. scrollbarbutton[type="increment"] {
  118.   background-image: url("chrome://global/skin/scrollbar/arrow-right.png")
  119. }
  120.  
  121. /*down Arrow*/
  122. scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
  123.   background-image: url("chrome://global/skin/scrollbar/arrow-down.png")
  124. }
  125.  
  126. /*left Arrow*/
  127. scrollbarbutton[type="decrement"] {
  128.    background-image: url("chrome://global/skin/scrollbar/arrow-left.png")
  129. }
  130.  
  131. /*up Arrow*/
  132. scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
  133.    background-image: url("chrome://global/skin/scrollbar/arrow-up.png")
  134. }
  135.  
  136. /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
  137. /* ::::::::::::::::::::: MEDIA PRINT :::::::::::::::::::::: */
  138. /* :::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
  139. @media print {
  140.   /* ::::: scrollbar ::::: */
  141.  
  142.   html|div scrollbar {
  143.     -moz-appearance: scrollbartrack-horizontal;
  144.     -moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar");
  145.     cursor: default;
  146.     background: url("chrome://global/skin/scrollbar/slider.gif") scrollbar;
  147.   }
  148.  
  149.   html|div scrollbar[orient="vertical"] 
  150.   {
  151.      -moz-appearance: scrollbartrack-vertical;
  152.   }
  153.  
  154.   /* ::::: borders for thumb and buttons ::::: */
  155.  
  156.   html|div thumb,
  157.   html|div scrollbarbutton {
  158.     border: 2px solid;
  159.     -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
  160.     -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  161.     -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  162.     -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
  163.     background-color: -moz-Dialog;
  164.   }
  165.  
  166.   /* ::::: thumb (horizontal) ::::: */
  167.  
  168.   html|div thumb {
  169.     -moz-appearance: scrollbarthumb-vertical;
  170.     min-height: 8px;
  171.   }
  172.  
  173.   html|div thumb[orient="horizontal"] {
  174.     -moz-appearance: scrollbarthumb-horizontal;
  175.     min-width: 8px;
  176.   }
  177.  
  178.   html|div thumb > gripper {
  179.     -moz-appearance: scrollbargripper-vertical;
  180.   }
  181.  
  182.   html|div thumb[orient="horizontal"] > gripper {
  183.     -moz-appearance: scrollbargripper-horizontal;
  184.   }
  185.  
  186.   /* ::::: scrollbar button ::::: */
  187.  
  188.   html|div scrollbarbutton {
  189.     background: -moz-Dialog no-repeat 0px 1px;
  190.     min-width: 16px;
  191.     min-height: 16px;
  192.   }
  193.  
  194.   html|div scrollbarbutton:hover:active {
  195.     -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  196.     -moz-border-right-colors: ThreeDShadow -moz-Dialog;
  197.     -moz-border-bottom-colors: ThreeDShadow -moz-Dialog;
  198.     -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  199.     background-position: 1px 2px;
  200.   }
  201.  
  202.   /* ..... increment .... */
  203.  
  204.   html|div scrollbarbutton[type="increment"] {
  205.     -moz-appearance: scrollbarbutton-right;
  206.     background-image: url("chrome://global/skin/arrow/arrow-rit.gif")
  207.   }
  208.  
  209.   html|div scrollbar[orient="vertical"] > scrollbarbutton[type="increment"] {
  210.     -moz-appearance: scrollbarbutton-down;
  211.     background-image: url("chrome://global/skin/arrow/arrow-dn.gif")
  212.   }
  213.  
  214.   /* ..... decrement .... */
  215.  
  216.   html|div scrollbarbutton[type="decrement"] {
  217.     -moz-appearance: scrollbarbutton-left;
  218.      background-image: url("chrome://global/skin/arrow/arrow-lft.gif")
  219.   }
  220.  
  221.   html|div scrollbar[orient="vertical"] > scrollbarbutton[type="decrement"] {
  222.     -moz-appearance: scrollbarbutton-up;
  223.      background-image: url("chrome://global/skin/arrow/arrow-up.gif")
  224.   }
  225.  
  226. }
  227.