Changed menubar to use floats instead of tables.
Fixed broken header links in subpages. Removed exec from menubar (menubar was too long).
This commit is contained in:
parent
62e890bc5c
commit
57af8298f1
24
default.css
24
default.css
|
@ -152,28 +152,25 @@ div.webtitle div.webtitle-inner {
|
|||
padding: 0 10px;
|
||||
}
|
||||
|
||||
div.menuspace {
|
||||
background: white;
|
||||
}
|
||||
|
||||
div.menuspace table.menubar {
|
||||
background-color: transparent;
|
||||
padding: 0;
|
||||
div.menubar {
|
||||
background-color: white;
|
||||
padding-top: 12px;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
height: 90px;
|
||||
height: 75px;
|
||||
vertical-align: middle;
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
div.menuspace td.menuitem {
|
||||
div.menuitem {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
float: left;
|
||||
}
|
||||
|
||||
div.menuspace td.menuitem a {
|
||||
div.menuitem a {
|
||||
display: block;
|
||||
text-align: center;
|
||||
padding: 5px;
|
||||
|
@ -183,18 +180,13 @@ div.menuspace td.menuitem a {
|
|||
font-family: 'Lucida Grande', Sans, Sans-serif;
|
||||
}
|
||||
|
||||
div.menuspace td.menuitem a:hover {
|
||||
div.menuitem a:hover {
|
||||
font-weight: 700;
|
||||
color: black;
|
||||
background-color: #eee;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
div.menuspace div.menuitem a:hover img {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
a.diritem, a.diritem:link, a.diritem:visited, a.diritem:active {
|
||||
font-family: 'Lucida Grande', Sans, Sans-serif;
|
||||
border-left: 4px solid #ccc;
|
||||
|
|
2
menu.xml
2
menu.xml
|
@ -5,7 +5,7 @@
|
|||
<menuitem title="Docs" icon="docs" href="docs/"/>
|
||||
<!-- <menuitem title="Gallery" icon="gallery" href="/gallery/"/>-->
|
||||
<menuitem title="Office" icon="office" href="office/"/>
|
||||
<menuitem title="Exec" icon="csc" href="about/exec.html"/>
|
||||
<!-- <menuitem title="Exec" icon="csc" href="about/exec.html"/> -->
|
||||
<menuitem title="Users" icon="users" href="users/"/>
|
||||
<menuitem title="Clubs" icon="clubs" href="clubs/"/>
|
||||
<!--<menuitem title="Stats" icon="stats" href="/stats/"/>-->
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
<tr>
|
||||
<td colspan="2">
|
||||
<xsl:apply-templates
|
||||
select="document('../directory.xml')/directory" />
|
||||
select="document(concat($pwd, '/directory.xml'))/directory"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -77,10 +77,10 @@
|
|||
<p>This page was generated on <xsl:value-of select="$date" /> at
|
||||
<xsl:value-of select="$time" />.</p>
|
||||
<p class="infobox">
|
||||
The overall layout is designed specially for Mozilla-based browsers.
|
||||
It is also printer-friendly. Please report any difficulty you may find,
|
||||
including the version of your browser and your operating system.
|
||||
to the <a href="mailto:www@csclub.uwaterloo.ca">Webmaster</a>.
|
||||
The overall layout is designed specially for modern browsers. If you
|
||||
experience any problems, please report them, along with the version of
|
||||
your browser and operating system, to the
|
||||
<a href="mailto:www@csclub.uwaterloo.ca">Webmaster</a>.
|
||||
</p>
|
||||
<p>
|
||||
<a href="http://validator.w3.org/check?uri=referer">
|
||||
|
|
|
@ -5,19 +5,22 @@
|
|||
extension-element-prefixes="csc">
|
||||
|
||||
<xsl:template match="directory">
|
||||
<xsl:if test="@href = ''">
|
||||
<a class="headdir diritem" href="index.html">
|
||||
<xsl:variable name="href">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@href"><xsl:value-of select="@href"/></xsl:when>
|
||||
<xsl:otherwise>index.html</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<a class="diritem headdir" href="{$href}">
|
||||
<xsl:value-of select="@title" />
|
||||
</a>
|
||||
</xsl:if>
|
||||
<xsl:if test="@href != ''">
|
||||
<a href="{@href}"><xsl:value-of select="@title" /></a>
|
||||
</xsl:if>
|
||||
<xsl:apply-templates match="diritem" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="diritem">
|
||||
<a class="diritem" href="{@href}"><xsl:value-of select="@title" /></a>
|
||||
<a class="diritem" href="{@href}">
|
||||
<xsl:value-of select="@title" />
|
||||
</a>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
10
xsl/menu.xsl
10
xsl/menu.xsl
|
@ -13,19 +13,15 @@
|
|||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<td class="menuitem">
|
||||
<div class="menuitem">
|
||||
<a href="{$pre2}{@href}"><img src="{$pre}buttons/{@icon}.png" width="40"
|
||||
height="40" alt="{@title}" /><br /><xsl:value-of select="@title" /></a>
|
||||
</td>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="menudefs">
|
||||
<div class="menuspace">
|
||||
<table cellspacing="0" cellpadding="0" border="0" class="menubar">
|
||||
<tr>
|
||||
<div class="menubar">
|
||||
<xsl:apply-templates select="menuitem" />
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue