home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / 01_03.iso / software / ghostzilla_hit / files / ghostzilla-1.0-plus-install.exe / res / builtin / xbl-forms.css < prev   
Encoding:
Cascading Style Sheet File  |  2002-04-09  |  4.4 KB  |  142 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: NPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Netscape Public License
  5.  * Version 1.1 (the "License"); you may not use this file except in
  6.  * compliance with the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/NPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is mozilla.org code.
  15.  *
  16.  * The Initial Developer of the Original Code is 
  17.  * Netscape Communications Corporation.
  18.  * Portions created by the Initial Developer are Copyright (C) 1998
  19.  * the Initial Developer. All Rights Reserved.
  20.  *
  21.  * Contributor(s):
  22.  *
  23.  *
  24.  * Alternatively, the contents of this file may be used under the terms of
  25.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  26.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.  * in which case the provisions of the GPL or the LGPL are applicable instead
  28.  * of those above. If you wish to allow use of your version of this file only
  29.  * under the terms of either the GPL or the LGPL, and not to allow others to
  30.  * use your version of this file under the terms of the NPL, indicate your
  31.  * decision by deleting the provisions above and replace them with the notice
  32.  * and other provisions required by the GPL or the LGPL. If you do not delete
  33.  * the provisions above, a recipient may use your version of this file under
  34.  * the terms of any one of the NPL, the GPL or the LGPL.
  35.  *
  36.  * ***** END LICENSE BLOCK ***** */
  37. @import url(resource:/res/builtin/textfields.css);
  38. @import url(resource:/res/builtin/buttons.css);
  39. @import url(resource:/res/builtin/select.css);
  40. @import url(resource:/res/builtin/checkbox.css);
  41.  
  42. @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
  43.  
  44. /** 
  45.   Styles for Windows form widgets implemented in XBL
  46.  **/ 
  47.  
  48. /* widgets will be removed from this as their XBL counterparts are implemented */ 
  49. input[type="image"], 
  50. input[type="radio"]
  51. {
  52.   display                 : none; 
  53. }
  54.  
  55. input, input[type="text"], input[type="password"]
  56.   {
  57.     cursor                : text;
  58.     text-align            : start;
  59.     vertical-align        : bottom;
  60.     -moz-box-sizing       : border-box;
  61.     -moz-user-focus       : normal;
  62.     -moz-binding          : url("resource:///res/builtin/platformHTMLBindings.xml#inputFields");
  63.   }
  64.  
  65. .input-inner
  66.   {
  67.     -moz-binding          : none;
  68.   }
  69.  
  70. button
  71.   {
  72.     -moz-binding          : url("resource:///res/builtin/platformButtonBindings.xml#button");
  73.   }
  74.  
  75. input[type="button"],input[type="submit"],input[type="reset"] {
  76.   -moz-binding            : url("resource:///res/builtin/platformButtonBindings.xml#inputButton");
  77.   cursor                  : default;
  78. }
  79.  
  80. /**
  81.  <select/> Widget
  82.  **/
  83.  
  84. select[size]
  85.   {
  86.     -moz-binding          : url("resource:///res/builtin/platformSelectBindings.xml#select-size");
  87.   }
  88.   
  89. select, select[size="1"]
  90.   {
  91.     -moz-user-focus       : normal;
  92.     -moz-user-select      : none;
  93.     -moz-binding          : url("resource:///res/builtin/platformSelectBindings.xml#select");
  94.     display               : inline;
  95.     vertical-align        : bottom;
  96.   }
  97.   
  98.  /* <select size=">1"/> */
  99.   
  100. select[size] > optgroup,
  101. select[size] > option,
  102. select[size] optgroup[open="true"] > option,
  103. select[size] optgroup[open="true"] > optgroup
  104.   {
  105.     display               : block !important;
  106.   }  
  107.   
  108. select[size] optgroup
  109.   {
  110.     -moz-binding          : url("resource:///res/builtin/platformSelectBindings.xml#optgroup-size");
  111.   }  
  112.   
  113. select[size] option
  114.   {
  115.     -moz-binding          : url("resource:///res/builtin/platformSelectBindings.xml#option-size");
  116.   }   
  117.   
  118. select optgroup, select[size="1"] optgroup
  119.   {
  120.     -moz-binding          : url("resource:///res/builtin/platformSelectBindings.xml#optgroup");
  121.   }  
  122.   
  123. select option, select[size="1"] option
  124.   {
  125.     -moz-binding          : url("resource:///res/builtin/platformSelectBindings.xml#option");
  126.   }   
  127.   
  128. input[type="checkbox"]
  129.   {
  130.     -moz-binding          : url("resource:///res/builtin/platformCheckboxBindings.xml#checkbox");
  131.   }   
  132.   
  133. legend
  134.   {
  135.     -moz-binding          : url("resource:///res/builtin/platformFieldsetBindings.xml#legend");
  136.   }
  137.   
  138. fieldset 
  139.   {
  140.     -moz-binding          : url("resource:///res/builtin/platformFieldsetBindings.xml#fieldset");
  141.   }
  142.