1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
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
14 * The Original Code is Mozilla Communicator client code, released
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998-1999
20 * the Initial Developer. All Rights Reserved.
23 * Joe Hewitt (hewitt@netscape.com)
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
37 * ***** END LICENSE BLOCK ***** */
39 /* ===== menulist.css ===================================================
40 == Styles used by the XUL menulist element.
41 ======================================================================= */
43 @namespace url
("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
44 @namespace html url
("http://www.w3.org/1999/xhtml");
46 /* :::::::::: menulist :::::::::: */
49 -moz-appearance: menulist
;
52 -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow
;
53 -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow
;
54 -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow
;
55 -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow
;
56 background-color: -moz-Field
;
57 color: -moz-FieldText
;
61 -moz-box-align: center
;
62 -moz-box-pack: center
;
67 menulist
[open
="true"]:focus
> .menulist-label-box
{
68 border: 1px solid transparent
;
69 background-color: transparent
;
71 -moz-box-align: center
;
75 margin: 0px 2px 0px 2px;
79 margin-top: 0 !important
;
80 -moz-margin-end: 0 !important
;
81 margin-bottom: 0 !important
;
82 -moz-margin-start: 1px !important
;
85 .menulist-description {
88 -moz-margin-start: 1ex !important
;
91 /* ..... dropmarker ..... */
93 menulist
[disabled
="true"]:hover:active
> .menulist-dropmarker
{
94 -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight
;
95 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow
;
96 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow
;
97 -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight
;
101 menulist:hover:active
> .menulist-dropmarker
{
102 -moz-border-top-colors: ThreeDShadow ThreeDFace
;
103 -moz-border-right-colors: ThreeDShadow ThreeDFace
;
104 -moz-border-bottom-colors: ThreeDShadow ThreeDFace
;
105 -moz-border-left-colors: ThreeDShadow ThreeDFace
;
108 -moz-padding-start: 2px;
109 -moz-padding-end: 0px;
112 /* ..... focused state ..... */
114 menulist:focus
> .menulist-label-box
{
115 border: 1px dotted
#F5DB95;
116 background-color: Highlight
;
117 color: HighlightText
;
120 /* ..... disabled state ..... */
122 menulist
[disabled
="true"] {
123 background-color: -moz-Dialog
;
127 /* ::::: editable menulists ::::: */
129 .menulist-editable-box {
132 -moz-padding-start: 2px;
133 -moz-padding-end: 0px;
136 html|
*.menulist-editable-input
{
137 margin: 0px !important
;
138 border: none
!important
;
139 padding: 0px !important
;
144 /* ::::: compact menulists ::::: */
147 -moz-appearance: none
;
148 -moz-box-align: center
;
149 -moz-box-pack: center
;
151 -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow
;
152 -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow
;
153 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow
;
154 -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow
;
155 background-color: ThreeDFace
;
157 list-style-image: url
("chrome://global/skin/arrow/arrow-dn.gif");
160 .menulist-compact > .menulist-label-box > .menulist-label {
161 margin: 0 3px !important
;
165 .menulist-compact > .menulist-label-box > .menulist-icon {
166 -moz-margin-start: 2px;
169 .menulist-compact[open="true"] {
170 -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow
;
171 -moz-border-right-colors: ThreeDDarkShadow ThreeDHighlight
;
172 -moz-border-bottom-colors: ThreeDDarkShadow ThreeDHighlight
;
173 -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow
;
176 .menulist-compact[disabled="true"] {
177 list-style-image: url
("chrome://global/skin/arrow/arrow-dn-dis.gif");
180 .menulist-compact:focus > .menulist-label-box {
182 background-color: transparent
;