home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 114 / CDRom114.iso / internet / temathun / Charamel.jar / global / textbox.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2004-07-24  |  2.8 KB  |  109 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. /* ===== textbox.css ==================================================
  26.   == Styles used by the XUL textbox element.
  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");
  31.  
  32. /* ::::: textbox ::::: */
  33.  
  34. textbox 
  35. {
  36. cursor: text;
  37. margin: 2px 4px;
  38. border: 1px solid;
  39. -moz-border-top-colors: #E6DED1;
  40. -moz-border-bottom-colors: #D5CDBF;
  41. -moz-border-right-colors: #E6DED1;
  42. border-left-width:2px;
  43. -moz-border-left-colors: #E6DED1 white ;
  44. padding: 1px 2px 1px 2px;
  45. background:url("chrome://global/skin/textbox/textbox-body.png") repeat-x white ;
  46. color: -moz-FieldText;
  47. }
  48.  
  49. /*focus outline*/
  50. textbox:focus{
  51. border: 1px solid;
  52. -moz-border-top-colors: #A9D0DF;
  53. -moz-border-bottom-colors: #A1C7D6;
  54. -moz-border-right-colors: #A9D0DF;
  55. -moz-border-left-colors: #A9D0DF white ;
  56. background:red!important;
  57. }
  58.  
  59. html|*.textbox-input, 
  60. html|*.textbox-textarea {
  61.   margin: 0px !important;
  62.   border: none !important;
  63.   padding: 0px !important;
  64.   background-color: inherit;
  65.   color: inherit;
  66.   font: inherit;
  67. }
  68.  
  69. /* ..... readonly state ..... */
  70.  
  71. textbox[readonly="true"] {
  72.   background:#F3EDE3;
  73.   border:none;
  74. }
  75.  
  76. textbox[readonly="true"][disabled="true"]{
  77. -moz-opacity:1.0!important;
  78. }
  79.  
  80. /* make read-only text-boxes in groupsboxes lighter*/
  81. groupbox textbox[readonly="true"] {
  82.   background:#F4EFE6;
  83.   border:none;
  84. }
  85.  
  86. /* ..... disabled state ..... */
  87.  
  88. textbox[disabled="true"] {
  89. cursor: default;
  90. color: #785130;
  91. -moz-opacity:0.4;
  92.  
  93. /* ::::: plain textbox ::::: */
  94.  
  95. textbox.plain {
  96.   -moz-appearance: none !important;
  97.   padding: 0px !important;
  98.   margin: 0px !important;
  99.   border: none !important;
  100. }
  101.  
  102. /* ::::: textboxes inside toolbarpaletteitems ::::: */
  103.  
  104. toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {
  105.   visibility: hidden;
  106. }
  107.  
  108.