home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Complet / thunderbird / chrome / qute.jar / skin / classic / global / textbox.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2002-09-27  |  2.5 KB  |  88 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. /* ===== textbox.css ==================================================
  25.   == Styles used by the XUL textbox element.
  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");
  30.  
  31. /* ::::: textbox ::::: */
  32.  
  33. textbox 
  34. {
  35.   -moz-appearance: textfield;
  36.   cursor: text;
  37.   margin: 2px 4px;
  38.   border: 2px solid;
  39.   -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
  40.   -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
  41.   -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
  42.   -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
  43.   padding: 1px 0px 1px 2px;
  44.   background-color: -moz-Field;
  45.   color: -moz-FieldText;
  46. }
  47.     
  48. html|*.textbox-input, 
  49. html|*.textbox-textarea {
  50.   margin: 0px !important;
  51.   border: none !important;
  52.   padding: 0px !important;
  53.   background-color: inherit;
  54.   color: inherit;
  55.   font: inherit;
  56. }
  57.  
  58. /* ..... readonly state ..... */
  59.  
  60. textbox[readonly="true"] {
  61.   background-color: -moz-Dialog;
  62.   color: -moz-DialogText;
  63. }
  64.  
  65. /* ..... disabled state ..... */
  66.  
  67. textbox[disabled="true"] {
  68.   cursor: default;
  69.   background-color: -moz-Dialog;
  70.   color: GrayText;
  71.  
  72. /* ::::: plain textbox ::::: */
  73.  
  74. textbox.plain {
  75.   -moz-appearance: none !important;
  76.   padding: 0px !important;
  77.   margin: 0px !important;
  78.   border: none !important;
  79. }
  80.  
  81. /* ::::: textboxes inside toolbarpaletteitems ::::: */
  82.  
  83. toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {
  84.   visibility: hidden;
  85. }
  86.  
  87.