home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 114 / CDRom114.iso / internet / temathun / Charamel.jar / global / button.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2004-09-11  |  5.3 KB  |  203 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-1999 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. /* ===== button.css =====================================================
  26.   == Styles used by the XUL button element.
  27.   ======================================================================= */
  28.  
  29. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  30.  
  31.  
  32. /*:::::::: Rounded buttons 
  33. :::::::::: A Charamel original style
  34. :::::::::: Developed by Alex W. <lucx@shaw.ca>
  35. ::::::::::*/
  36.  
  37. /*Startcap*/
  38. button {
  39.   -moz-appearance: none;
  40.   margin: 0px 3px;
  41.   min-width: 6.3em;
  42.   border:0px;
  43.   background: url("chrome://global/skin/button/startcap.png") no-repeat top left transparent;
  44.   color: #785130;
  45.   font-family:arial, sans-serif;
  46.   font-size:8pt;
  47.   font-weight:bold;
  48.   height:26px;
  49.   padding-left:14px;
  50.   list-style-position:inside;
  51. }
  52.  
  53. /* Right Endcap and body*/
  54. .button-box {
  55.   border:0px;
  56.   padding:0px;
  57.   background: url("chrome://global/skin/button/endcap.png") no-repeat top right transparent;
  58.   padding-right:14px;
  59. }
  60.  
  61. /*Button Body*/
  62. .button-text {
  63. text-align: center;
  64. /*get rid of extra margin from labels; make compatible with default theme*/
  65. margin:0px!important;
  66. }
  67.  
  68.  
  69. /* :::::::::: focused state ::::::::::  */
  70.  
  71. /*startcap:focus*/
  72. button:focus {
  73. background: url("chrome://global/skin/button/startcap-focus.png") no-repeat top left transparent;
  74. }
  75.  
  76. /*right endcap:focus*/
  77. button:focus > .button-box {
  78. background: url("chrome://global/skin/button/endcap-focus.png") no-repeat top right transparent;
  79. }
  80.  
  81.  
  82. /*:::::::: Rounded buttons 
  83. :::::::::: A Charamel original style
  84. :::::::::: Developed by Alex W. <lucx@shaw.ca>
  85. ::::::::::*/
  86.  
  87.  
  88. /* :::::::::: default state ::::::::::  */
  89.  
  90. /* startcap:default */
  91. button[default="true"] {
  92. background: url("chrome://global/skin/button/startcap-focus.png") no-repeat top left transparent;
  93. color:#348ABE;
  94. }
  95.  
  96. /*right endcap:default*/
  97. button[default="true"] > .button-box{
  98. background: url("chrome://global/skin/button/endcap-focus.png") no-repeat top right transparent;
  99. }
  100.  
  101.  
  102. /* :::::::::: active state :::::::::: */
  103.  
  104. /*left endcap:active */
  105. button:active{
  106. background: url("chrome://global/skin/button/startcap-active.png") no-repeat top left transparent;
  107. }
  108.  
  109. /*right endcap:active*/
  110. button:active> .button-box{
  111. background: url("chrome://global/skin/button/endcap-active.png") no-repeat top right transparent;
  112. }
  113.  
  114.  
  115. /* :::::::::: disabled state :::::::::: */
  116.  
  117. /*left endcap:disabled */
  118. button[disabled="true"] {
  119. color: #B2997F;
  120. background: url("chrome://global/skin/button/startcap-disabled.png") no-repeat top left transparent;
  121. }
  122.  
  123. /*right endcap*/
  124. button[disabled="true"]  .button-box{
  125. background: url("chrome://global/skin/button/endcap-disabled.png") no-repeat top right transparent;
  126. }
  127.  
  128. /*:::::::: Rounded buttons 
  129. :::::::::: A Charamel original style
  130. :::::::::: Developed by Alex W. <lucx@shaw.ca>
  131. ::::::::::*/
  132.  
  133.  
  134.  
  135.  
  136.  
  137. /* ::::: menu/menu-button buttons ::::: */
  138.  
  139. button[type="menu-button"] {
  140.   -moz-box-align: center;
  141.   -moz-box-pack: center;
  142.   margin: 0;
  143.   border: none;
  144. }
  145.  
  146. .button-menu-dropmarker,
  147. .button-menubutton-dropmarker {
  148.   margin: 1px;
  149.   background-image: url("chrome://global/skin/arrow/arrow-dn.gif");
  150.   min-width:11px;
  151.   min-height:11px;
  152. }
  153.   
  154. .button-menu-dropmarker[disabled="true"],
  155. .button-menubutton-dropmarker[disabled="true"] {
  156.   background-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
  157. }
  158.  
  159. .button-menubutton-dropmarker[open="true"] {
  160.   margin: 2px 0px 0px 2px;
  161. }
  162.  
  163. /* ::::: plain buttons ::::: */
  164.  
  165. button.plain {
  166.   border: 0px !important;
  167.   margin: 0px !important;
  168.   padding: 0px !important;
  169. }
  170.  
  171. button[type="disclosure"] {
  172.   border: 0px !important;
  173.   margin: 0px !important;
  174.   padding: 0px !important;
  175.   -moz-appearance: none;
  176.   list-style-image: url("chrome://global/skin/button/twisty.png");
  177.   min-width: 0px !important;
  178.   background-color: transparent;
  179.   background:none;
  180. }
  181.  
  182. /*remove discolure right endcap*/
  183. button[type="disclosure"] .button-box {
  184.   background:none;
  185.   padding:0px;
  186. }
  187.  
  188. button[type="disclosure"][open="true"] {
  189.   list-style-image: url("chrome://global/skin/button/twisty-open.png"); 
  190. }
  191.  
  192. /*if button has has an icon and text, add padding to icon; fixes conflict with extra margins on buttons without labels*/
  193. /*button[label] .button-icon{
  194. margin-right:4px!important;
  195. border:1px solid red;
  196. }*/
  197.  
  198. /*extra space around button labels; if button has an icon, the label won't butt up against it by default*/
  199. button .button-text{
  200. margin-left:2px!important;
  201. margin-right:2px!important;
  202. }
  203.