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 / select.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2002-04-30  |  5.8 KB  |  190 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.  
  38. @namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
  39.  
  40. select[size] 
  41.   {
  42.     margin                : 0px;
  43.   }
  44.   
  45. .select-container-treerows 
  46.   {
  47.     border-left           : 1px solid threeddarkshadow;
  48.     border-top            : 1px solid threeddarkshadow;
  49.     border-right          : 1px solid threedface;
  50.     border-bottom         : 1px solid threedface;
  51.   } 
  52.   
  53. option
  54.   {
  55.     font                  : -moz-list;  
  56.     border                : 1px solid transparent;
  57.     color                 : windowtext;
  58.   }  
  59.  
  60. select[size] option[selected]
  61.   {
  62.     background-color      : highlight;
  63.     color                 : highlighttext;
  64.   }  
  65.  
  66. select option[selected],
  67. select[size="1"] option[selected]
  68.   {
  69.     background-color      : transparent;
  70.     color                 : windowtext;
  71.   } 
  72.   
  73. /* menulist based select */
  74.  
  75. select, select[size="1"]
  76.   {
  77.     border-left           : 1px solid threedshadow;
  78.     border-top            : 1px solid threedshadow;
  79.     border-right          : 1px solid threedhighlight;
  80.     border-bottom         : 1px solid threedhighlight;
  81.     background-color      : -moz-field;
  82.     color                 : menutext;
  83.     font                  : -moz-list;
  84.     margin                : 1px 5px 2px 5px;
  85.   }
  86.  
  87. select[disabled]
  88.   {
  89.     background-color      : threedface;
  90.   }
  91.     
  92. /* icon display frame */
  93. .select-menulist-internal-box
  94.   {
  95.     border-left           : 1px solid threeddarkshadow;
  96.     border-top            : 1px solid threeddarkshadow;
  97.     border-right          : 1px solid threedface;
  98.     border-bottom         : 1px solid threedface;
  99.     -moz-user-focus       : ignore;
  100.   }  
  101.  
  102. .select-menulist-display-box,
  103. select[open="true"]:focus > .select-menulist-internal-box > .select-menulist-display-box
  104.   {
  105.     border                : 1px solid transparent;
  106.     margin                : 1px;
  107.     background-color      : -moz-field;
  108.     color                 : menutext;
  109.   }     
  110.     
  111. select:focus > .select-menulist-internal-box > .select-menulist-display-box
  112.   {
  113.     border                : 1px dotted #F5DB95;
  114.     background-color      : highlight;
  115.     color                 : highlighttext;
  116.   }
  117.       
  118. /* text display frame */
  119. .select-menulist-text 
  120.   {
  121.     padding               : 0px 2px 0px 1px;
  122.     margin                : 0px;
  123.   }
  124.     
  125. /* drop marker display frame */
  126. .select-menulist-dropmarker-box-1
  127.   {
  128.     border-top            : 1px solid threedface;
  129.     border-left           : 1px solid threedface;
  130.     border-bottom         : 1px solid threeddarkshadow;
  131.     border-right          : 1px solid threeddarkshadow;
  132.     background-color      : threedface;
  133.   }
  134.   
  135. .select-menulist-dropmarker-box-2
  136.   {
  137.     border-top            : 1px solid threedhighlight;
  138.     border-left           : 1px solid threedhighlight;
  139.     border-bottom         : 1px solid threedshadow;
  140.     border-right          : 1px solid threedshadow;
  141.     padding               : 2px 1px 2px 1px;
  142.   }
  143.  
  144. .select-menulist-dropmarker
  145.   {
  146.     list-style-image      : url("chrome://global/skin/scroll-down.gif");
  147.   }
  148.   
  149. .select-menulist-dropmarker[disabled="true"]
  150.   {
  151.     list-style-image      : url("chrome://global/skin/scroll-down-disabled.gif");
  152.     padding               : 2px;
  153.   }
  154.  
  155. select:hover:active > .select-menulist-internal-box > .select-menulist-dropmarker-box-1[open="true"]
  156.   { 
  157.     border                : 1px solid threedshadow;
  158.   }
  159.     
  160. select:hover:active > .select-menulist-internal-box > .select-menulist-dropmarker-box-1 > .select-menulist-dropmarker-box-2[open="true"]
  161.   {
  162.     border                : 1px solid threedface;
  163.     padding               : 3px 0px 1px 2px;
  164.   }
  165.  
  166. /* rules for popups and separators associated with menulists */
  167. select > .select-menulist-menupopup 
  168.   {
  169.     background-color      : -moz-field;
  170.     border                : 1px solid #000000;
  171.     min-width             : 0px;
  172.   }
  173.  
  174. select > option 
  175.   {
  176.     padding               : 0px 7px !important;
  177.     min-width             : 0px;  /* should be in content*/
  178.     max-width             : none; /* should be in content*/
  179.     border                : 1px solid transparent;
  180.   }
  181.  
  182. select:focus > option[menuactive="true"]
  183.   {
  184.     border                : 1px dotted #F5DB95;
  185.     background-color      : highlight;
  186.     color                 : highlighttext;
  187.   }
  188.  
  189.  
  190.