mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Added support for fieldset and legend. Not used by default.
a=ben@netscape.com
This commit is contained in:
parent
f3bcc6fe36
commit
b776af02af
30
content/xbl/builtin/fieldsetBindings.xml
Normal file
30
content/xbl/builtin/fieldsetBindings.xml
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<bindings id="fieldsetBindings"
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<binding id="fieldset" extends="xul:titledbox">
|
||||
<content>
|
||||
<xul:box class="fieldset-title" autostretch="never" orient="vertical">
|
||||
<children includes="legend"/>
|
||||
</xul:box>
|
||||
<xul:box flex="1" class="fieldset-body">
|
||||
<xul:html flex="1">
|
||||
<children/>
|
||||
</xul:html>
|
||||
</xul:box>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
<binding id="legend" extends="xul:box">
|
||||
<content>
|
||||
<xul:html flex="1">
|
||||
<children/>
|
||||
</xul:html>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
</bindings>
|
||||
|
||||
|
@ -30,9 +30,11 @@ install:: $(LIBRARY)
|
||||
$(MAKE_INSTALL) buttonBindings.xml $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) selectBindings.xml $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) checkboxBindings.xml $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) fieldsetBindings.xml $(DIST)\bin\res\builtin
|
||||
|
||||
clobber::
|
||||
rm -f $(DIST)\bin\res\builtin\htmlbindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\buttonBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\selectBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\checkboxBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\fieldsetBindings.xml
|
||||
|
46
content/xbl/builtin/win/fieldset.css
Normal file
46
content/xbl/builtin/win/fieldset.css
Normal file
@ -0,0 +1,46 @@
|
||||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* David Hyatt & Ben Goodger
|
||||
*/
|
||||
|
||||
@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
|
||||
|
||||
/* stylesheet for <fieldset> and <legend> elements */
|
||||
|
||||
fieldset
|
||||
{
|
||||
border : 2px groove threedface;
|
||||
padding : 7px !important;
|
||||
margin : 5px;
|
||||
}
|
||||
|
||||
legend
|
||||
{
|
||||
margin : 0px 40px 2px 6px;
|
||||
padding : 0px 3px 0px 3px;
|
||||
background-color : threedface;
|
||||
}
|
||||
|
||||
.fieldset-body
|
||||
{
|
||||
display : block;
|
||||
padding : inherit;
|
||||
}
|
||||
|
@ -28,19 +28,23 @@ install:: $(LIBRARY)
|
||||
$(MAKE_INSTALL) platformButtonBindings.xml $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) platformSelectBindings.xml $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) platformCheckboxBindings.xml $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) platformFieldsetBindings.xml $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) xbl-forms.css $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) buttons.css $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) select.css $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) textfields.css $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) checkbox.css $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) fieldset.css $(DIST)\bin\res\builtin
|
||||
|
||||
clobber::
|
||||
rm -f $(DIST)\bin\res\builtin\platformHTMLBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\platformButtonBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\platformSelectBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\platformCheckboxBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\platformFieldsetBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\xbl-forms.css
|
||||
rm -f $(DIST)\bin\res\builtin\buttons.css
|
||||
rm -f $(DIST)\bin\res\builtin\select.css
|
||||
rm -f $(DIST)\bin\res\builtin\textfields.css
|
||||
rm -f $(DIST)\bin\res\builtin\checkbox.css
|
||||
rm -f $(DIST)\bin\res\builtin\fieldset.css
|
||||
|
13
content/xbl/builtin/win/platformFieldsetBindings.xml
Normal file
13
content/xbl/builtin/win/platformFieldsetBindings.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<bindings id="fieldsetBindings"
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<binding id="fieldset" extends="resource:///res/builtin/fieldsetBindings.xml#fieldset"/>
|
||||
|
||||
<binding id="legend" extends="resource:///res/builtin/fieldsetBindings.xml#legend"/>
|
||||
|
||||
</bindings>
|
||||
|
||||
|
@ -73,7 +73,7 @@
|
||||
<binding id="optgroup" extends="xul:menu">
|
||||
<!-- extends="resource:///res/builtin/selectBindings.xml#optgroup-size"> -->
|
||||
<content includes="*">
|
||||
<xul:text inherits="value=xbl:text,value=label" crop="right"/>
|
||||
<xul:text inherits="value=label" crop="right"/>
|
||||
<xul:menupopup style="overflow:auto; -moz-binding: none;" menugenerated="true">
|
||||
<children/>
|
||||
</xul:menupopup>
|
||||
|
@ -32,8 +32,8 @@
|
||||
|
||||
/* widgets will be removed from this as their XBL counterparts are implemented */
|
||||
input[type="image"],
|
||||
input[type="radio"],
|
||||
fieldset, legend {
|
||||
input[type="radio"]
|
||||
{
|
||||
display : none;
|
||||
}
|
||||
|
||||
@ -77,6 +77,7 @@ select, select[size="1"]
|
||||
-moz-user-select : none;
|
||||
-moz-binding : url("resource:///res/builtin/platformSelectBindings.xml#select");
|
||||
display : inline;
|
||||
vertical-align : bottom;
|
||||
}
|
||||
|
||||
/* <select size=">1"/> */
|
||||
@ -114,4 +115,12 @@ input[type="checkbox"]
|
||||
-moz-binding : url("resource:///res/builtin/platformCheckboxBindings.xml#checkbox");
|
||||
}
|
||||
|
||||
|
||||
legend
|
||||
{
|
||||
-moz-binding : url("resource:///res/builtin/platformFieldsetBindings.xml#legend");
|
||||
}
|
||||
|
||||
fieldset
|
||||
{
|
||||
-moz-binding : url("resource:///res/builtin/platformFieldsetBindings.xml#fieldset");
|
||||
}
|
||||
|
30
layout/xbl/builtin/fieldsetBindings.xml
Normal file
30
layout/xbl/builtin/fieldsetBindings.xml
Normal file
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<bindings id="fieldsetBindings"
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<binding id="fieldset" extends="xul:titledbox">
|
||||
<content>
|
||||
<xul:box class="fieldset-title" autostretch="never" orient="vertical">
|
||||
<children includes="legend"/>
|
||||
</xul:box>
|
||||
<xul:box flex="1" class="fieldset-body">
|
||||
<xul:html flex="1">
|
||||
<children/>
|
||||
</xul:html>
|
||||
</xul:box>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
<binding id="legend" extends="xul:box">
|
||||
<content>
|
||||
<xul:html flex="1">
|
||||
<children/>
|
||||
</xul:html>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
</bindings>
|
||||
|
||||
|
@ -30,9 +30,11 @@ install:: $(LIBRARY)
|
||||
$(MAKE_INSTALL) buttonBindings.xml $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) selectBindings.xml $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) checkboxBindings.xml $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) fieldsetBindings.xml $(DIST)\bin\res\builtin
|
||||
|
||||
clobber::
|
||||
rm -f $(DIST)\bin\res\builtin\htmlbindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\buttonBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\selectBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\checkboxBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\fieldsetBindings.xml
|
||||
|
46
layout/xbl/builtin/win/fieldset.css
Normal file
46
layout/xbl/builtin/win/fieldset.css
Normal file
@ -0,0 +1,46 @@
|
||||
/*
|
||||
* The contents of this file are subject to the Netscape 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/NPL/
|
||||
*
|
||||
* 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 Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
* David Hyatt & Ben Goodger
|
||||
*/
|
||||
|
||||
@namespace url(http://www.w3.org/1999/xhtml); /* set default namespace to HTML */
|
||||
|
||||
/* stylesheet for <fieldset> and <legend> elements */
|
||||
|
||||
fieldset
|
||||
{
|
||||
border : 2px groove threedface;
|
||||
padding : 7px !important;
|
||||
margin : 5px;
|
||||
}
|
||||
|
||||
legend
|
||||
{
|
||||
margin : 0px 40px 2px 6px;
|
||||
padding : 0px 3px 0px 3px;
|
||||
background-color : threedface;
|
||||
}
|
||||
|
||||
.fieldset-body
|
||||
{
|
||||
display : block;
|
||||
padding : inherit;
|
||||
}
|
||||
|
@ -28,19 +28,23 @@ install:: $(LIBRARY)
|
||||
$(MAKE_INSTALL) platformButtonBindings.xml $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) platformSelectBindings.xml $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) platformCheckboxBindings.xml $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) platformFieldsetBindings.xml $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) xbl-forms.css $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) buttons.css $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) select.css $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) textfields.css $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) checkbox.css $(DIST)\bin\res\builtin
|
||||
$(MAKE_INSTALL) fieldset.css $(DIST)\bin\res\builtin
|
||||
|
||||
clobber::
|
||||
rm -f $(DIST)\bin\res\builtin\platformHTMLBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\platformButtonBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\platformSelectBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\platformCheckboxBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\platformFieldsetBindings.xml
|
||||
rm -f $(DIST)\bin\res\builtin\xbl-forms.css
|
||||
rm -f $(DIST)\bin\res\builtin\buttons.css
|
||||
rm -f $(DIST)\bin\res\builtin\select.css
|
||||
rm -f $(DIST)\bin\res\builtin\textfields.css
|
||||
rm -f $(DIST)\bin\res\builtin\checkbox.css
|
||||
rm -f $(DIST)\bin\res\builtin\fieldset.css
|
||||
|
13
layout/xbl/builtin/win/platformFieldsetBindings.xml
Normal file
13
layout/xbl/builtin/win/platformFieldsetBindings.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<bindings id="fieldsetBindings"
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<binding id="fieldset" extends="resource:///res/builtin/fieldsetBindings.xml#fieldset"/>
|
||||
|
||||
<binding id="legend" extends="resource:///res/builtin/fieldsetBindings.xml#legend"/>
|
||||
|
||||
</bindings>
|
||||
|
||||
|
@ -73,7 +73,7 @@
|
||||
<binding id="optgroup" extends="xul:menu">
|
||||
<!-- extends="resource:///res/builtin/selectBindings.xml#optgroup-size"> -->
|
||||
<content includes="*">
|
||||
<xul:text inherits="value=xbl:text,value=label" crop="right"/>
|
||||
<xul:text inherits="value=label" crop="right"/>
|
||||
<xul:menupopup style="overflow:auto; -moz-binding: none;" menugenerated="true">
|
||||
<children/>
|
||||
</xul:menupopup>
|
||||
|
@ -32,8 +32,8 @@
|
||||
|
||||
/* widgets will be removed from this as their XBL counterparts are implemented */
|
||||
input[type="image"],
|
||||
input[type="radio"],
|
||||
fieldset, legend {
|
||||
input[type="radio"]
|
||||
{
|
||||
display : none;
|
||||
}
|
||||
|
||||
@ -77,6 +77,7 @@ select, select[size="1"]
|
||||
-moz-user-select : none;
|
||||
-moz-binding : url("resource:///res/builtin/platformSelectBindings.xml#select");
|
||||
display : inline;
|
||||
vertical-align : bottom;
|
||||
}
|
||||
|
||||
/* <select size=">1"/> */
|
||||
@ -114,4 +115,12 @@ input[type="checkbox"]
|
||||
-moz-binding : url("resource:///res/builtin/platformCheckboxBindings.xml#checkbox");
|
||||
}
|
||||
|
||||
|
||||
legend
|
||||
{
|
||||
-moz-binding : url("resource:///res/builtin/platformFieldsetBindings.xml#legend");
|
||||
}
|
||||
|
||||
fieldset
|
||||
{
|
||||
-moz-binding : url("resource:///res/builtin/platformFieldsetBindings.xml#fieldset");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user