From f285bac6636f2fee7730e4e10179dac530f1dd9b Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sat, 25 Apr 2009 04:36:34 -0400 Subject: [PATCH] Improve styling of website. * Reduced width * Left-flush titles (I finally decided that centered titles looked horrible) * Increase width on list items in content * Fix news navigation link left/right flush Signed-off-by: Edward Z. Yang --- common.css | 25 +++++++++++++++++++------ news.xhtml | 1 - xhtml-compiler | 2 +- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/common.css b/common.css index 5509a31..faa2040 100644 --- a/common.css +++ b/common.css @@ -96,10 +96,10 @@ body>#logo { /* hidden from IE6 */ clear: left; margin: 2em auto; padding: 0 5%; - max-width: 56em; + max-width: 52em; width: expression(document.body.clientWidth > 85 * parseInt(document.body.currentStyle.fontSize) ? - "54em": "auto"); + "48em": "auto"); } /* Title (usually h1, is inside #main for subpages) */ @@ -107,8 +107,7 @@ body>#logo { /* hidden from IE6 */ font-weight: normal; font-size: 2em; border-bottom: 1px solid #BCC8D8; - margin-top: 1em; - text-align: center; + margin-top: 2em; } /* Content (text of a document, not the main header or sub-navigation) */ @@ -126,6 +125,14 @@ body>#logo { /* hidden from IE6 */ } +#content li { + margin: 0.8em 0; +} + +#toc li { + margin: 0; +} + p { line-height: 1.4em; } @@ -379,8 +386,10 @@ ol.long li { color: #000; } +/* news pages */ + #news-navigation { - margin: 1em 20% 0; + margin: 1em 0; border-top: 1px solid #BCC8D8; padding-top: 3px; } @@ -399,4 +408,8 @@ ol.long li { #news-navigation .next { margin-left: 67%; text-align: right; -} \ No newline at end of file +} + +#news-date { + margin-bottom: 1em; +} diff --git a/news.xhtml b/news.xhtml index febe160..46b1992 100644 --- a/news.xhtml +++ b/news.xhtml @@ -26,7 +26,6 @@

News

-
diff --git a/xhtml-compiler b/xhtml-compiler index 251c012..a9723f6 160000 --- a/xhtml-compiler +++ b/xhtml-compiler @@ -1 +1 @@ -Subproject commit 251c012555464c864670c3d059b8fe4039922965 +Subproject commit a9723f67430a19d0d99b027b8e4e0f84f9f94849 -- 2.11.4.GIT