Commit ccbdbf20 authored by myk%mozilla.org's avatar myk%mozilla.org

Fix for bug 278125: converts Bugzilla header to structural HTML and stylistic…

Fix for bug 278125: converts Bugzilla header to structural HTML and stylistic CSS; Patch by Svetlana Harisova; r,a=myk
parent acbf5833
...@@ -64,6 +64,111 @@ body ...@@ -64,6 +64,111 @@ body
} }
/* banner (end) */ /* banner (end) */
/* header (begin) */
#header
{
width: 100%;
}
#header *
{
margin: 0;
padding: 0;
}
/* hide from MSIE and NN4 */
[id]#header
{
display: table;
}
/* IE hack for float content*/
* html #header
{
height: 1%;
}
/* hide from NN4 */
div#header h1
{
float: left;
}
#header h1
{
font-family: serif;
font-weight: bold;
font-size: 110%;
white-space: nowrap;
padding: 0.2em 1em 0.1em 0.2em;
}
/* hide from MSIE and NN4 */
[id]#header h1
{
float: none;
display: table-cell;
vertical-align: top;
}
/* hide from NN4 */
div#header h2
{
float: left;
width: 70%;
text-align: center;
padding: 0.2em 1em 0.1em 0.1em;
}
#header h2
{
font-family: serif;
font-weight: normal;
font-size: 100%;
}
/* hide from MSIE and NN4 */
[id]#header h2
{
float: none;
width: auto;
text-align: left;
vertical-align: top;
}
#header h3
{
font-family: serif;
font-weight: normal;
font-size: 100%;
padding: 0.2em 0.2em 0.1em 0.1em;
float: right;
}
/* hide from MSIE and NN4 */
[id]#header h3
{
display: table-cell;
float: none;
text-align: right;
vertical-align: top;
}
#message
{
border: 1px solid red;
padding: 0.3em;
color: green;
}
/* header (end) */
/* footer (begin) */ /* footer (begin) */
#footer #footer
{ {
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
# #
# Contributor(s): Gervase Markham <gerv@gerv.net> # Contributor(s): Gervase Markham <gerv@gerv.net>
# Vaskin Kissoyan <vkissoyan@yahoo.com> # Vaskin Kissoyan <vkissoyan@yahoo.com>
# Vitaly Harisov <vitaly@rathedg.com>
# Svetlana Harisova <light@rathedg.com>
#%] #%]
[%# INTERFACE: [%# INTERFACE:
...@@ -114,29 +116,20 @@ ...@@ -114,29 +116,20 @@
[% INCLUDE global/banner.html.tmpl %] [% INCLUDE global/banner.html.tmpl %]
[% IF h1 || h2 %] <div id="header">
<table border="0" cellspacing="0" width="100%"> [% IF h1 %]
<tr> <h1>[% h1 %]</h1>
<td valign="top" align="left"> [% END %]
<table border="0" cellpadding="0" cellspacing="2">
<tr> [% IF h2 %]
<td valign="top" align="left" nowrap="nowrap"> <h2>[% h2 %]</h2>
<font size="+1"><b>[% h1 %]</b></font> [% END %]
</td>
</tr>
</table>
</td>
<td valign="middle" align="left">&nbsp;</td>
<td valign="middle" align="left">[% h2 %]</td>
[% IF h3 %] [% IF h3 %]
<td valign="middle" align="right">[% h3 %]</td> <h3>[% h3 %]</h3>
[% END %] [% END %]
</tr> </div>
</table>
[% END %]
[% IF message %] [% IF message %]
<table width="100%" cellspacing="0" cellpadding="5" border="1"><tr><td> <div id="message">[% message %]</div>
<font color="green">[% message %]</font>
</td></tr></table>
[% END %] [% END %]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment