[library-web/new-website-style: 11/55] subtle boxes
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web/new-website-style: 11/55] subtle boxes
- Date: Sat, 19 Mar 2011 18:57:30 +0000 (UTC)
commit ff26e726e2444fba4ae221fe2aa8d6135d51db61
Author: Frédéric Péters <fpeters 0d be>
Date: Sat Dec 4 14:14:20 2010 +0100
subtle boxes
data/skin/lgo2010.css | 4 ++++
data/xslt/indexes.xsl | 18 ++++++++++++------
2 files changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/data/skin/lgo2010.css b/data/skin/lgo2010.css
index 41b61d9..9ea1384 100644
--- a/data/skin/lgo2010.css
+++ b/data/skin/lgo2010.css
@@ -87,3 +87,7 @@ ul.language-list {
column-width: 15em;
column-gap: 2em;
}
+
+div.sidebar div.subtle_box {
+ margin-top: 3em;
+}
diff --git a/data/xslt/indexes.xsl b/data/xslt/indexes.xsl
index 73a7048..5f25cad 100644
--- a/data/xslt/indexes.xsl
+++ b/data/xslt/indexes.xsl
@@ -377,7 +377,7 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd">
</div>
<div class="sidebar">
<xsl:if test="tarballs">
- <div class="downloads">
+ <div class="downloads subtle_box">
<h4>
<xsl:call-template name="gettext"><xsl:with-param name="lang"
select="$lang"/><xsl:with-param name="msgid"
@@ -399,7 +399,7 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd">
</xsl:if>
<xsl:if test="other-languages/lang">
- <div class="other-languages">
+ <div class="other-languages subtle_box">
<script type="text/javascript" src="/js/language.js" />
<script type="text/javascript">display_missing_translation_text()</script>
</div>
@@ -606,9 +606,13 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd">
</xsl:apply-templates>
</div>
</div>
- <div class="sidebar">
+ <div>
+ <xsl:attribute name="class">
+ sidebar
+ <xsl:if test="not(title)"> notitle</xsl:if>
+ </xsl:attribute>
<xsl:if test="@channel = 'users'">
- <div id="usr">
+ <div id="usr" class="subtle_box">
<h2><span>
<xsl:call-template name="gettext"><xsl:with-param name="lang"
select="@lang"/><xsl:with-param name="msgid"
@@ -622,12 +626,14 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd">
</div>
</xsl:if>
<xsl:if test="$filename = 'references'">
+ <div class="subtle_box">
<xsl:apply-templates select="." mode="toc">
<xsl:with-param name="lang" select="@lang"/>
</xsl:apply-templates>
+ </div>
</xsl:if>
<xsl:if test="@channel = 'devel'">
- <div id="dev">
+ <div id="dev" class="subtle_box">
<h2><span>
<xsl:call-template name="gettext"><xsl:with-param name="lang"
select="@lang"/><xsl:with-param name="msgid"
@@ -642,7 +648,7 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd">
</xsl:if>
<xsl:if test="@channel = 'admin'">
- <div id="adm">
+ <div id="adm" class="subtle_box">
<h2><span>
<xsl:call-template name="gettext"><xsl:with-param name="lang"
select="@lang"/><xsl:with-param name="msgid"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]