home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 March / PCWorld_2005-03_cd.bin / komunikace / kmeleon / kmeleon09.exe / classic.jar / skin / classic / global / textbox.css < prev    next >
Cascading Style Sheet File  |  2002-03-28  |  2KB  |  84 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. @import url("chrome://global/content/autocomplete.css");
  29.   
  30. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  31. @namespace html url("http://www.w3.org/1999/xhtml");
  32.  
  33. /* ::::: textbox ::::: */
  34.  
  35. textbox 
  36. {
  37.   -moz-appearance: textfield;
  38.   cursor: text;
  39.   margin: 2px 4px;
  40.   border: 2px solid;
  41.   -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
  42.   -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
  43.   -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
  44.   -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
  45.   padding: 1px 0px 1px 2px;
  46.   background-color: -moz-Field;
  47.   color: -moz-FieldText;
  48. }
  49.     
  50. html|*.textbox-input, 
  51. html|*.textbox-textarea {
  52.   margin: 0px !important;
  53.   border: none !important;
  54.   padding: 0px !important;
  55.   background-color: inherit;
  56.   color: inherit;
  57.   font: inherit;
  58. }
  59.  
  60. /* ..... readonly state ..... */
  61.  
  62. textbox[readonly="true"] {
  63.   background-color: -moz-Dialog;
  64.   color: -moz-DialogText;
  65. }
  66.  
  67. /* ..... disabled state ..... */
  68.  
  69. textbox[disabled="true"] {
  70.   cursor: default;
  71.   background-color: -moz-Dialog;
  72.   color: GrayText;
  73.  
  74. /* ::::: plain textbox ::::: */
  75.  
  76. textbox.plain {
  77.   -moz-appearance: none !important;
  78.   padding: 0px !important;
  79.   margin: 0px !important;
  80.   border: none !important;
  81. }
  82.  
  83.