зеркало из https://github.com/mozilla/gecko-dev.git
bugzilla 63616 r=jelwell, sr=hewitt. Implementing comboxes in mac classic. (editable menulists)
This commit is contained in:
Родитель
b40b88dea7
Коммит
b0ba8649a3
|
@ -232,48 +232,81 @@
|
|||
list-style-image : url("chrome://global/skin/menulist-dis-arrow.gif");
|
||||
}
|
||||
|
||||
/** rules for EDITABLE menulists (aka 'comboboxes').
|
||||
**/
|
||||
|
||||
/* outer frame */
|
||||
menulist[editable="true"]
|
||||
{
|
||||
padding : 0px;
|
||||
}
|
||||
|
||||
/* icon display frame */
|
||||
menulist[editable="true"] > .menu-icon
|
||||
{
|
||||
list-style-image : url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
|
||||
background-color : white;
|
||||
padding : 1px;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Editable menulists (comboboxes)
|
||||
*/
|
||||
|
||||
menulist[editable="true"]
|
||||
{
|
||||
-moz-binding : url("chrome://global/skin/menulistBindings.xml#menulist-editable") !important;
|
||||
padding : 0px;
|
||||
}
|
||||
|
||||
.menulist-editable-text
|
||||
{
|
||||
|
||||
border : none !important;
|
||||
margin : 0px !important;
|
||||
|
||||
|
||||
}
|
||||
|
||||
menulist[editable="true"] > .menulist-internal-box
|
||||
{
|
||||
border-left : 1px inset #CCCCCC;
|
||||
border-top : 1px inset #CCCCCC;
|
||||
border-right : none;
|
||||
border-bottom : 1px inset #CCCCCC;
|
||||
}
|
||||
|
||||
/* text display frame */
|
||||
menulist[editable="true"] > .menu-text
|
||||
{
|
||||
border-left : none;
|
||||
border-top : 1px inset #CCCCCC;
|
||||
border-right : 1px inset #CCCCCC;
|
||||
border-bottom : 1px inset #CCCCCC;
|
||||
margin : 0px 2px 0px 0px;
|
||||
}
|
||||
}
|
||||
|
||||
/* drop marker display frame */
|
||||
menulist[editable="true"] > .menu-dropmarker
|
||||
menulist[editable="true"] > .menulist-internal-box > .menulist-display-box
|
||||
{
|
||||
margin : 0px;
|
||||
}
|
||||
|
||||
menulist[editable="true"]:focus > .menulist-internal-box > .menulist-display-box
|
||||
{
|
||||
border : none !important;
|
||||
}
|
||||
|
||||
menulist[editable="true"] > .menulist-internal-box > .menulist-dropmarker-box-1
|
||||
{
|
||||
border : 1px outset #CCCCCC;
|
||||
min-width : 20px;
|
||||
}
|
||||
|
||||
menulist[editable="true"][open="true"] > .menu-dropmarker
|
||||
menulist[editable="true"][open="true"] > .menulist-internal-box > .menulist-dropmarker-box-1,
|
||||
menulist[editable="true"]:focus > .menulist-internal-box > .menulist-dropmarker-box-1
|
||||
{
|
||||
border : 1px inset #CCCCCC;
|
||||
background-color : #666666;
|
||||
}
|
||||
|
||||
|
||||
menulist[editable="true"] > .menulist-internal-box > .menulist-dropmarker-box-1 > .menulist-dropmarker-box-2 >.menulist-dropmarker
|
||||
{
|
||||
list-style-image : url("chrome://global/skin/menulist-arrow.gif");
|
||||
margin : 0px 4px 0px 6px;
|
||||
}
|
||||
|
||||
|
||||
menulist[editable="true"][open="true"] > .menulist-internal-box > .menulist-dropmarker-box-1 > .menulist-dropmarker-box-2 >.menulist-dropmarker,
|
||||
menulist[editable="true"]:focus > .menulist-internal-box > .menulist-dropmarker-box-1 > .menulist-dropmarker-box-2 >.menulist-dropmarker
|
||||
{
|
||||
list-style-image : url("chrome://global/skin/menulist-active-arrow.gif");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* rules for popups and separators associated with menulists */
|
||||
|
||||
/** -- modern's version --
|
||||
|
|
|
@ -11,31 +11,7 @@
|
|||
REPRESENTATION : <menulist>
|
||||
-->
|
||||
|
||||
<!--
|
||||
<binding id="menulist" extends="chrome://global/content/menulistBindings.xml#menulist">
|
||||
<content includes="menupopup" flex="1">
|
||||
<xul:box class="menulist-internal-box" flex="1">
|
||||
<xul:box class="menulist-display-box" flex="1" valign="middle" autostretch="never">
|
||||
<xul:image class="menulist-icon" inherits="src"/>
|
||||
<xul:text class="menulist-text" inherits="value,accesskey,crop" crop="right"/>
|
||||
</xul:box>
|
||||
<xul:box class="menulist-dropmarker-box-1" valign="middle" inherits="open">
|
||||
<xul:box class="menulist-dropmarker-box-2" flex="1" autostretch="never" valign="middle" inherits="open">
|
||||
<xul:image class="menulist-dropmarker" inherits="disabled"/>
|
||||
</xul:box>
|
||||
</xul:box>
|
||||
</xul:box>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
<binding id="menulistpopup">
|
||||
<content>
|
||||
<xul:box class="menulistpopup-internal-box" orient="vertical" flex="1" style="overflow: auto">
|
||||
<children/>
|
||||
</xul:box>
|
||||
</content>
|
||||
</binding>
|
||||
-->
|
||||
|
||||
<!-- new stretchy menulist -->
|
||||
|
||||
|
@ -82,4 +58,32 @@
|
|||
</binding>
|
||||
|
||||
|
||||
|
||||
<binding id="menulist-editable" extends="chrome://global/content/menulistBindings.xml#menulist-editable">
|
||||
<content includes="menupopup">
|
||||
<xul:box class="menulist-internal-box" flex="1">
|
||||
<xul:box class="menulist-display-box" flex="1" valign="middle" autostretch="never">
|
||||
<xul:image class="menulist-icon" inherits="src"/>
|
||||
<html:input type="text" class="menulist-editable-text" inherits="value,accesskey" flex="1"/>
|
||||
</xul:box>
|
||||
<xul:box class="menulist-dropmarker-box-1" valign="middle" inherits="open">
|
||||
<xul:box class="menulist-dropmarker-box-2" flex="1" autostretch="never" valign="middle" inherits="open">
|
||||
<xul:image class="menulist-dropmarker" inherits="disabled"/>
|
||||
</xul:box>
|
||||
</xul:box>
|
||||
</xul:box>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</bindings>
|
Загрузка…
Ссылка в новой задаче