home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 114 / CDRom114.iso / internet / temathun / Apollo.jar / global / menulist.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2003-11-06  |  4.2 KB  |  156 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://messenger/skin/icons/dropmarker.png");
  72.   -moz-image-region: rect(0px 16px 16px 0px);
  73. }
  74.  
  75. .menulist-dropmarker,
  76. menulist[disabled="true"]:hover:active > .menulist-dropmarker {
  77.   -moz-image-region: rect(16px 16px 32px 0px);
  78.   padding: 1px;
  79. }
  80.  
  81. menulist[disabled="true"] > .menulist-dropmarker {
  82.   -moz-image-region: rect(32px 16px 48px 0px);
  83. }
  84.  
  85. menulist:hover:active > .menulist-dropmarker {
  86.   -moz-border-top-colors: ThreeDShadow ThreeDFace;
  87.   -moz-border-right-colors: ThreeDShadow ThreeDFace;
  88.   -moz-border-bottom-colors: ThreeDShadow ThreeDFace;
  89.   -moz-border-left-colors: ThreeDShadow ThreeDFace;
  90.   padding: 2px 0px 0px 2px;
  91. }
  92.  
  93. /* ..... focused state ..... */
  94.  
  95. menulist:focus > .menulist-label-box {
  96.   border: 1px dotted #F5DB95;
  97.   background-color: Highlight;
  98.   color: HighlightText;  
  99. }
  100.  
  101. /* ..... disabled state ..... */
  102.  
  103. menulist[disabled="true"] {
  104.   background-color: -moz-Dialog;
  105.   color: GrayText;
  106. }
  107.  
  108. /* ::::: editable menulists ::::: */
  109.  
  110. .menulist-editable-box {
  111.   padding: 3px 0px 3px 2px;
  112. }
  113.  
  114. html|*.menulist-editable-input {
  115.   margin: 0px !important;
  116.   border: none !important;
  117.   padding: 0px !important;
  118.   background: inherit;
  119.   font: inherit;
  120. }
  121.  
  122. /* ::::: compact menulists ::::: */
  123.  
  124. .menulist-compact {
  125.   -moz-box-align: center;
  126.   -moz-box-pack: center;
  127.   margin: 0;
  128.   -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight;
  129.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  130.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  131.   -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight;
  132.   background-color: -moz-Dialog;
  133.   color: -moz-DialogText;
  134. }
  135.  
  136. .menulist-compact > .menulist-label {
  137.   margin: 0 3px !important;
  138.   text-align: right;
  139. }  
  140.  
  141. .menulist-compact > .menulist-dropmarker {
  142.   margin-left: 2px;
  143.   border: none;
  144.   padding: 0 !important;
  145.   background: transparent;
  146. }
  147.  
  148. .menulist-compact[open="true"] {
  149.   -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow;
  150.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  151.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  152.   -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
  153.   background-color: ThreeDShadow;
  154.   color: ThreeDHighlight;
  155. }
  156.