home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / 01_03.iso / software / ghostzilla_hit / files / ghostzilla-1.0-plus-install.exe / res / forms.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2002-05-02  |  9.5 KB  |  426 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.  * Alternatively, the contents of this file may be used under the terms of
  24.  * either the GNU General Public License Version 2 or later (the "GPL"), or 
  25.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  26.  * in which case the provisions of the GPL or the LGPL are applicable instead
  27.  * of those above. If you wish to allow use of your version of this file only
  28.  * under the terms of either the GPL or the LGPL, and not to allow others to
  29.  * use your version of this file under the terms of the NPL, indicate your
  30.  * decision by deleting the provisions above and replace them with the notice
  31.  * and other provisions required by the GPL or the LGPL. If you do not delete
  32.  * the provisions above, a recipient may use your version of this file under
  33.  * the terms of any one of the NPL, the GPL or the LGPL.
  34.  *
  35.  * ***** END LICENSE BLOCK ***** */
  36.  
  37. /** 
  38.   Styles for old GFX form widgets
  39.  **/ 
  40.  
  41.  
  42. @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
  43. @namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
  44.  
  45. *|*:-moz-fieldset-content {
  46.   display: block;
  47. }
  48.  
  49. form {
  50.   display: block;
  51.   margin: 0 0 1em 0;
  52. }
  53.  
  54. /* miscellaneous form elements */
  55.  
  56. legend {
  57.   padding-left: 2px;
  58.   padding-right: 2px;
  59.   border: none;
  60. }
  61.  
  62. fieldset {
  63.   display: block;
  64.   margin-left: 2px;
  65.   margin-right: 2px;
  66.   padding: 0.75em 0.625em;
  67.   border: 2px groove ThreeDFace;
  68. }
  69.  
  70. label {
  71.   /* our <label> support is badly broken. 
  72.      does not support display types other than inline(b=100801) 
  73.    */
  74.   display: inline !important;
  75. }
  76.  
  77.  
  78. /* default inputs, text inputs, and selects */
  79. input {
  80.   padding: 1px 0 1px 0;
  81.   border: 2px inset ThreeDFace;
  82.   background-color: -moz-Field;
  83.   color: -moz-FieldText;
  84.   font: -moz-field;
  85.   text-align: start;
  86.   vertical-align: text-bottom;
  87.   cursor: text;
  88.   -moz-box-sizing: border-box;
  89.   -moz-user-focus: normal;
  90.   -moz-binding: url("resource:///res/builtin/platformHTMLBindings.xml#inputFields");
  91. }
  92.  
  93. textarea {
  94.   margin: 1px 0 1px 0;
  95.   border: 2px inset ThreeDFace;
  96.   background-color: -moz-Field;
  97.   color: -moz-FieldText;
  98.   font: medium -moz-fixed;
  99.   text-align: start;
  100.   vertical-align: text-bottom;
  101.   cursor: text;
  102.   -moz-box-sizing: border-box;
  103.   -moz-user-focus: normal;
  104.   -moz-binding: url("resource:///res/builtin/platformHTMLBindings.xml#textAreas");
  105. }
  106.  
  107. textarea > scrollbar {
  108.   cursor: default;
  109. }
  110.  
  111. *|*:-moz-singleline-textcontrol-frame {
  112.   overflow: hidden;
  113.   white-space: nowrap;
  114.   background-color: inherit;
  115.   text-align: inherit;
  116. }
  117.  
  118. select {
  119.   margin: 0;
  120.   border-color: ThreeDFace;
  121.   background-color: -moz-Field;
  122.   color: -moz-FieldText;
  123.   font: -moz-list;
  124.   white-space: nowrap;
  125.   text-align: start; 
  126.   vertical-align: text-bottom;
  127.   cursor: default;
  128.   -moz-box-sizing: border-box;
  129.   -moz-user-select: none;
  130.   -moz-user-focus: normal;
  131.  
  132.   border-width: 2px !important;
  133.   border-style: inset !important;
  134.   -moz-border-radius: 0 !important;
  135. }
  136.  
  137. select[size] {
  138.   padding: 1px 0 1px 0;
  139. }
  140. select[size="1"] {
  141.   padding: 0;
  142. }
  143.  
  144. select > input[type="button"] {
  145.   width: 12px;
  146.   height: 12px;
  147.   white-space: nowrap;
  148.   -moz-user-focus: none;
  149.  
  150.   position: static !important;
  151.   background-image: url("arrow.gif") !important;
  152.   background-repeat: no-repeat !important;
  153.   background-position: center !important;
  154. }
  155.  
  156. select > input[type="button"]:active {
  157.   background-image: url("arrowd.gif") !important;
  158. }
  159.  
  160. select[size], :-moz-select-scrolled-content {
  161.   overflow: -moz-scrollbars-vertical;
  162. }
  163.  
  164. select:-moz-dummy-option { 
  165.   visibility: hidden; 
  166.   content: "XX"; /* demo 8, edge case test 1 */
  167. }
  168.  
  169. *|*:-moz-display-comboboxcontrol-frame {
  170.   overflow: hidden;
  171.   padding: 1px 0 1px 4px;
  172.   background-color: inherit;
  173.   color: inherit;
  174.   white-space: nowrap;
  175.   text-align: inherit;
  176.   -moz-user-select: none;
  177. }
  178.  
  179. option {
  180.   display: block;
  181.   min-height: 1em;
  182.   -moz-user-select: none;
  183.   -moz-user-focus: none;
  184. }
  185.  
  186. select > option {
  187.   padding: 0 5px 0 3px;
  188. }
  189.  
  190. option:checked {
  191.   background-color: Highlight ! important;
  192.   color: HighlightText ! important;
  193. }
  194.  
  195. optgroup {
  196.   display: block;
  197.   font: -moz-list;
  198.   font-style: italic;
  199.   font-weight: bold;
  200.   -moz-user-select: none;
  201.   -moz-user-focus: none;
  202. }
  203.  
  204. optgroup > option {
  205.   padding-left: 20px;
  206.   font-style: normal;
  207.   font-weight: normal;
  208. }
  209.  
  210. optgroup:before {
  211.   display: block;
  212.   content: attr(label);
  213. }
  214.  
  215. *|*:-moz-dropdown-list {
  216.   z-index: 2147483647;
  217.   background-color: inherit;
  218.   -moz-user-select: none;
  219.  
  220.   border: 1px outset black !important; 
  221.  
  222. input[disabled],
  223. textarea[disabled],
  224. option[disabled],
  225. optgroup[disabled],
  226. select[disabled],
  227. select[disabled]:-moz-display-comboboxcontrol-frame {
  228.   color: GrayText;
  229.   cursor: default;
  230. }
  231.  
  232. /* hidden inputs */
  233. input[type="hidden"] {
  234.   display: none;
  235.   -moz-binding: none;
  236. }
  237.  
  238. /* image buttons */
  239. input[type="image"] {
  240.   padding: 0;
  241.   border: none;
  242.   background-color: transparent;
  243.   font-family: sans-serif;
  244.   font-size: small;
  245.   vertical-align: baseline;
  246.   cursor: pointer;
  247.   -moz-binding: none;
  248. }
  249.  
  250. input[type="image"][disabled] {
  251.   cursor: default;
  252. }
  253.  
  254. input[type="image"]:focus {
  255.   -moz-outline: 1px dotted -moz-FieldText;
  256. }
  257.  
  258. /* file selector */
  259. input[type="file"] {
  260.   white-space: nowrap;
  261.   cursor: default;
  262.   -moz-binding: none;
  263.  
  264.   padding: 0 !important;
  265.   border-style: none !important;
  266. }
  267.  
  268. input[type="file"] > input[type="text"] {
  269.   border-color: inherit;
  270.   background-color: inherit;
  271.   color: inherit;
  272. }
  273.  
  274. /* button part of file selector */
  275. input[type="file"] > input[type="button"] {
  276.   height: inherit;
  277. }
  278.  
  279. input[type="file"] > input[type="button"]:-moz-focus-inner
  280.  {
  281.   padding: 0px 2px 0px 2px;
  282.   border: 1px dotted transparent;
  283. }
  284.  
  285. /* radio buttons */
  286. input[type="radio"] {
  287.   width: 12px;
  288.   height: 12px;
  289.   margin: 3px 3px 0px 5px;
  290.   padding: 0;
  291.   vertical-align: baseline;
  292.   cursor: default;
  293.   -moz-binding: none;
  294.  
  295.   border-width: 2px !important;
  296.   border-style: inset !important;
  297.   -moz-border-radius: 100% !important;
  298. }
  299.  
  300. /* check boxes */
  301. input[type="checkbox"] {
  302.   width: 13px;
  303.   height: 13px;
  304.   margin: 3px 3px 3px 4px;
  305.   padding: 0;
  306.   vertical-align: text-bottom;
  307.   cursor: default;
  308.   -moz-binding: none;
  309.  
  310.   border-width: 2px !important;
  311.   border-style: inset !important;
  312.   -moz-border-radius: 0 !important;
  313. }
  314.  
  315. /* common features of radio buttons and check boxes */
  316. input[type="radio"][disabled],
  317. input[type="radio"][disabled]:active,
  318. input[type="radio"][disabled]:hover,
  319. input[type="radio"][disabled]:hover:active,
  320. input[type="checkbox"][disabled],
  321. input[type="checkbox"][disabled]:active,
  322. input[type="checkbox"][disabled]:hover,
  323. input[type="checkbox"][disabled]:hover:active {
  324.   padding: 1px;
  325.   border-color: ThreeDShadow;
  326.   background-color: GrayText;
  327.  
  328.   border-width: 1px !important;
  329.   border-style: inset !important;
  330. }
  331.  
  332. input[type="checkbox"]:focus,
  333. input[type="radio"]:focus {
  334.   border-style: groove !important;
  335. }
  336.  
  337. input[type="checkbox"]:hover:active,
  338. input[type="radio"]:hover:active {
  339.   background-color: ThreeDFace;
  340.  
  341.   border-style: inset !important;
  342. }
  343.  
  344. *|*:-moz-radio {
  345.   width: 4px;
  346.   height: 4px;
  347.   left: 6px;
  348.   top: 6px;
  349.   background-color: -moz-FieldText;
  350.   -moz-border-radius: 3px;
  351. }
  352.  
  353. /* buttons */
  354. button, 
  355. input[type="reset"],
  356. input[type="button"],
  357. input[type="submit"] { 
  358.   padding: 2px 0 2px 0;
  359.   border: 2px outset ButtonFace;
  360.   background-color: ButtonFace;
  361.   color: ButtonText; 
  362.   font: -moz-button;
  363.   white-space: pre;
  364.   cursor: default;
  365.   -moz-box-sizing: border-box;
  366.   -moz-user-select: none;
  367.   -moz-user-focus: normal;
  368.   -moz-binding: none;
  369. }
  370.  
  371. *|*:-moz-button-content {
  372.   display: block;
  373.   text-align: center;
  374. }
  375.  
  376. button:active:hover,
  377. input[type="reset"]:active:hover,
  378. input[type="button"]:active:hover,
  379. input[type="submit"]:active:hover {
  380.   padding: 3px 0 1px 0;
  381.   border-style: inset;
  382. }
  383.  
  384. button:-moz-focus-inner,
  385. input[type="reset"]:-moz-focus-inner,
  386. input[type="button"]:-moz-focus-inner,
  387. input[type="submit"]:-moz-focus-inner {
  388.   padding: 1px 2px 1px 2px;
  389.   border: 1px dotted transparent;
  390. }
  391.  
  392. button:focus:-moz-focus-inner,
  393. input[type="reset"]:focus:-moz-focus-inner,
  394. input[type="button"]:focus:-moz-focus-inner,
  395. input[type="submit"]:focus:-moz-focus-inner,
  396. input[type="file"] > input[type="button"]:focus:-moz-focus-inner {
  397.   border-color: ButtonText;
  398. }
  399.  
  400. button[disabled]:active, button[disabled],
  401. input[type="reset"][disabled]:active,
  402. input[type="reset"][disabled],
  403. input[type="button"][disabled]:active,
  404. input[type="button"][disabled],
  405. input[type="file"][disabled] > input[type="button"],
  406. input[type="file"][disabled] > input[type="button"]:active,
  407. select[disabled] > input[type="button"],
  408. select[disabled] > input[type="button"]:active,
  409. input[type="submit"][disabled]:active,
  410. input[type="submit"][disabled] {
  411.   padding: 3px 1px 3px 1px;
  412.   border: 1px outset ButtonShadow;
  413.   color: GrayText;
  414. }
  415.  
  416. @media print {
  417.   input, textarea, select, button {
  418.     -moz-user-focus: none !important;
  419.     -moz-user-input: none !important;
  420.   }
  421.  
  422.   input[type="file"] { height: 2em; }
  423. }
  424.  
  425.