RetroZilla/themes/modern/global/menulist.css
2015-10-20 23:03:22 -04:00

221 lines
6.3 KiB
CSS

/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Joe Hewitt <hewitt@netscape.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/* ===== menulist.css ===================================================
== Styles used by the XUL menulist element.
======================================================================= */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
/* :::::::::: menulist :::::::::: */
menulist {
margin: 1px 4px;
border: 2px solid transparent;
min-height: 19px;
color: #000000;
font: message-box;
}
.menulist-label {
margin: 0 2px 0 0 !important;
}
.menulist-description {
font-style: italic;
color: #5D616E;
margin-left: 1em !important;
}
.menulist-icon {
padding-right: 2px;
}
.menulist-label-box {
-moz-box-align: center;
-moz-box-pack: center;
border-top: 3px solid;
border-bottom: 3px solid;
border-left: 3px solid;
-moz-border-top-colors: #000000 #BBC4D1 #B3BBC9;
-moz-border-bottom-colors: #000000 #99A7B7 #9EACBB;
-moz-border-left-colors: #000000 #BBC4D1 #B3BBC9;
-moz-border-radius-topleft: 2px;
-moz-border-radius-bottomleft: 2px;
background-color: #A6B3C0;
padding-left: 8px;
}
.menulist-dropmarker {
-moz-box-align: center;
-moz-box-pack: center;
border-top: 3px solid;
border-right: 3px solid;
border-bottom: 3px solid;
border-left: 2px solid;
-moz-border-top-colors: #000000 #BBC4D1 #B3BBC9;
-moz-border-bottom-colors: #000000 #99A7B7 #9EACBB;
-moz-border-right-colors: #000000 #99A7B7 #9EACBB;
-moz-border-left-colors: #6D7C8F #C1CBD9;
-moz-border-radius-topright: 2px;
-moz-border-radius-bottomright: 2px;
background-color: #A6B3C0;
list-style-image: url("chrome://global/skin/menulist/mlist-arrow.gif");
}
.dropmarker-icon {
margin: 1px 2px 0px 2px;
}
/* ..... focused state ..... */
menulist:focus {
border-color: #98A5B2;
-moz-border-radius: 7px;
background-color: #98A5B2;
}
/* ..... active state ..... */
menulist[open="true"] {
color: #FFFFFF;
}
menulist[open="true"] > .menulist-label-box {
-moz-border-top-colors: #313948 #8393A7 #8C9DAF;
-moz-border-bottom-colors: #313948 #8393A7 #8C9DAF;
-moz-border-left-colors: #313948 #8393A7 #8C9DAF;
background-color: #91A2B4;
}
menulist[open="true"] > .menulist-dropmarker {
list-style-image: url("chrome://global/skin/menulist/mlist-act-arrow.gif");
}
/* ..... disabled state ..... */
menulist[disabled="true"] {
color: #8C99AB !important;
}
menulist[disabled="true"] > .menulist-label-box,
menulist[disabled="true"] > .menulist-dropmarker {
-moz-border-top-colors: #727D8E #D0D6DF #BDC6D2 !important;
-moz-border-bottom-colors: #727D8E #AAB5C2 #B3BBC8 !important;
background-color: #B7BFCB !important;
}
menulist[disabled="true"] > .menulist-label-box {
-moz-border-left-colors: #727D8E #C9D0D9 #BDC6D2 !important;
}
menulist[disabled="true"] > .menulist-dropmarker {
-moz-border-right-colors: #727D8E #AAB5C2 #B3BBC8 !important;
-moz-border-left-colors: #95A1AD #C7D0DC !important;
list-style-image: url("chrome://global/skin/menulist/mlist-dis-arrow.gif") !important;
}
/* ::::: editable menulists ::::: */
.menulist-editable-box {
border: 1px solid #000000;
border-right: none;
background-color: #FFFFFF;
padding: 2px 0px 2px 2px;
}
html|*.menulist-editable-input {
margin: 0px !important;
border: none !important;
padding: 0px !important;
background: inherit;
font: inherit;
}
menulist[focused="true"] {
border-color: #98A5B2;
-moz-border-radius-topright: 7px;
-moz-border-radius-bottomright: 7px;
background-color: #98A5B2;
}
/* ::::: compact menulists ::::: */
.menulist-compact {
-moz-box-align: center;
-moz-box-pack: center;
margin: 0;
border: 2px solid;
-moz-border-top-colors: #CED5DD #A6B3C0;
-moz-border-right-colors: #5D616E #99A9BA;
-moz-border-bottom-colors: #5D616E #99A9BA;
-moz-border-left-colors: #CED5DD #A6B3C0;
-moz-border-radius: 0;
padding: 1px;
min-height: 0px;
background-color: #A6B3C0;
color: #000000;
}
.menulist-compact > .menulist-label {
margin: 0 3px 0 0 !important;
text-align: right;
}
.menulist-compact > .menulist-dropmarker {
border: none;
background: transparent;
}
.menulist-compact > .menulist-dropmarker,
.menulist-compact[open="true"] > .menulist-dropmarker {
list-style-image: url("chrome://global/skin/menulist/mlist-compact-arrow.gif");
}
.menulist-compact:focus {
-moz-border-radius: 0;
}
.menulist-compact[open="true"] {
-moz-border-top-colors: #788797 #91A2B4;
-moz-border-right-colors: #5D616E #788797;
-moz-border-bottom-colors: #5D616E #788797;
-moz-border-left-colors: #788797 #91A2B4;
background-color: #91A2B4;
}