home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / modern.jar / skin / modern / global / textbox.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2001-06-28  |  3.5 KB  |  136 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"); /* namespace for HTML elements */
  32.  
  33. /* ::::: textbox ::::: */
  34.  
  35. textbox {
  36.   cursor: text;
  37.   margin: 2px 4px;
  38.   background-color: #ffffff;
  39.   color: #000000;
  40.   font: inherit;
  41. }
  42.  
  43. textbox,
  44. textbox[readonly="true"][focused="true"] {
  45.   border-top: 1px solid #BEC3D3;
  46.   border-right: 1px solid #F8FAFE;
  47.   border-bottom: 1px solid #F8FAFE;
  48.   border-left: 1px solid #BEC3D3;
  49. }
  50.  
  51. .textbox-internal-box, 
  52. .textarea-internal-box {
  53.   padding: 1px 0px 1px 2px;
  54. }
  55.  
  56. .textbox-internal-box,
  57. .textarea-internal-box,
  58. textbox[readonly="true"][focused="true"] > .textbox-internal-box,
  59. textbox[readonly="true"][focused="true"] > .textarea-internal-box {
  60.   border: 1px solid #5D616E;
  61. }
  62.     
  63. html|*.textbox-input, 
  64. html|*.textbox-textarea {
  65.   margin: 0px !important;
  66.   border: none !important;
  67.   padding: 0px !important;
  68.   background-color: inherit;
  69.   color: inherit;
  70.   font: inherit;
  71. }
  72.  
  73. /* ..... focused state ..... */
  74.   
  75. textbox[focused="true"] {
  76.   border: 1px solid #98A5B2;
  77. }
  78.     
  79. textbox[focused="true"] > .textbox-internal-box,
  80. textbox[focused="true"] > .textarea-internal-box {
  81.   border-color: #000000;
  82. }
  83.     
  84. /* ..... disabled state ..... */
  85.  
  86. textbox[disabled="true"] {
  87.   background-color: #C7D0D9;
  88.   color: #999999;
  89.   cursor: default !important;
  90.     
  91. /* ..... readonly state ..... */
  92.  
  93. textbox[readonly="true"] > .textbox-internal-box,
  94. textbox[readonly="true"] > .textarea-internal-box {
  95.   background-color: #C7D0D9;
  96. }
  97.  
  98. /* ::::: plain textbox ::::: */
  99.  
  100. textbox.plain, 
  101. textbox.plain > .textbox-internal-box, 
  102. textbox.plain > .textarea-internal-box {
  103.   margin: 0px !important;
  104.   border: none !important;
  105.   padding: 0px !important;
  106. }
  107.  
  108. /* ::::: scrollable textbox ::::: */
  109.  
  110. .scrollfield {
  111.   border: none !important;
  112.   margin: 0px;
  113.   margin-top: 1px;      
  114.   padding: 0px !important;
  115.   background: inherit;
  116. }    
  117.     
  118. .scrollfield > .textbox-internal-box {
  119.   border: none !important;
  120.   margin: 0px !important;
  121.   padding: 0px !important;
  122. }
  123.  
  124. /* ::::: inline-edit textbox ::::: */
  125.     
  126. .textbox-inline-edit {
  127.   margin: 0px !important;
  128.   border: 1px solid #000000 !important;
  129. }
  130.  
  131. .textbox-inline-edit > .textbox-internal-box {
  132.   border: none !important;
  133.   padding: 1px !important;
  134. }
  135.