home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Complet / thunderbird / chrome / qute.jar / skin / classic / global / menulist.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2002-12-24  |  4.5 KB  |  158 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-1999 Netscape Communications Corporation. All
  18.  * Rights Reserved.
  19.  *
  20.  * Contributor(s):
  21.  *   Joe Hewitt (hewitt@netscape.com)
  22.  */
  23.  
  24. /* ===== menulist.css ===================================================
  25.   == Styles used by the XUL menulist element.
  26.   ======================================================================= */
  27.  
  28. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  29. @namespace html url("http://www.w3.org/1999/xhtml");
  30.  
  31. /* :::::::::: menulist :::::::::: */
  32.  
  33. menulist {
  34.   -moz-appearance: menulist;
  35.   margin: 2px 4px;
  36.   border: 2px solid;
  37.   -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
  38.   -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
  39.   -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
  40.   -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
  41.   background-color: -moz-Field;
  42.   color: -moz-FieldText;
  43. }
  44.  
  45. .menulist-label-box {
  46.   -moz-box-align: center;
  47.   -moz-box-pack: center;
  48.   margin: 1px;
  49. }
  50.  
  51. .menulist-label-box,
  52. menulist[open="true"]:focus > .menulist-label-box {
  53.   border: 1px solid transparent;
  54.   background-color: transparent;
  55.   color: inherit;
  56. }
  57.  
  58. .menulist-label {
  59.   margin: 1px 3px !important;
  60. }
  61.  
  62. /* ..... dropmarker ..... */
  63.  
  64. .menulist-dropmarker {
  65.   -moz-appearance: menulist-button;
  66.   min-width: 17px;
  67.   -moz-box-align: center;
  68.   -moz-box-pack: center;
  69.   border: 2px solid;
  70.   background-color: -moz-Dialog;
  71.   list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
  72. }
  73.  
  74. .menulist-dropmarker,
  75. menulist[disabled="true"]:hover:active > .menulist-dropmarker {
  76.   -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
  77.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  78.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  79.   -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
  80.   padding: 1px;
  81. }
  82.  
  83. menulist[disabled="true"] > .menulist-dropmarker {
  84.   list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
  85. }
  86.  
  87. menulist:hover:active > .menulist-dropmarker {
  88.   -moz-border-top-colors: ThreeDShadow ThreeDFace;
  89.   -moz-border-right-colors: ThreeDShadow ThreeDFace;
  90.   -moz-border-bottom-colors: ThreeDShadow ThreeDFace;
  91.   -moz-border-left-colors: ThreeDShadow ThreeDFace;
  92.   padding: 2px 0px 0px 2px;
  93. }
  94.  
  95. /* ..... focused state ..... */
  96.  
  97. menulist:focus > .menulist-label-box {
  98.   border: 1px dotted #F5DB95;
  99.   background-color: Highlight;
  100.   color: HighlightText;  
  101. }
  102.  
  103. /* ..... disabled state ..... */
  104.  
  105. menulist[disabled="true"] {
  106.   background-color: -moz-Dialog;
  107.   color: GrayText;
  108. }
  109.  
  110. /* ::::: editable menulists ::::: */
  111.  
  112. .menulist-editable-box {
  113.   padding: 3px 0px 3px 2px;
  114. }
  115.  
  116. html|*.menulist-editable-input {
  117.   margin: 0px !important;
  118.   border: none !important;
  119.   padding: 0px !important;
  120.   background: inherit;
  121.   font: inherit;
  122. }
  123.  
  124. /* ::::: compact menulists ::::: */
  125.  
  126. .menulist-compact {
  127.   -moz-box-align: center;
  128.   -moz-box-pack: center;
  129.   margin: 0;
  130.   -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
  131.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  132.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  133.   -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
  134.   background-color: -moz-Dialog;
  135.   color: -moz-DialogText;
  136. }
  137.  
  138. .menulist-compact > .menulist-label {
  139.   margin: 0 3px !important;
  140.   text-align: right;
  141. }  
  142.  
  143. .menulist-compact > .menulist-dropmarker {
  144.   margin-left: 2px;
  145.   border: none;
  146.   padding: 0 !important;
  147.   background: transparent;
  148. }
  149.  
  150. .menulist-compact[open="true"] {
  151.   -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow;
  152.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  153.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  154.   -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
  155.   background-color: ThreeDShadow;
  156.   color: ThreeDHighlight;
  157. }
  158.