commit c29b110e53662136d885b3d1634e1c7d2250db55
parent 36f71f8286299baa8c21712253c7981cf397d88a
Author: garbeam@gmail.com <unknown>
Date: Sat, 4 Feb 2012 18:25:39 +0100
cleansed my werc stuff, removed crap, created a theme that will work well for suckless.org
Diffstat:
13 files changed, 134 insertions(+), 693 deletions(-)
diff --git a/apps/blagh/app.rc b/apps/blagh/app.rc
@@ -1,139 +0,0 @@
-fn conf_enable_blog {
- blagh_uri=$conf_wd
- blagh_dirs=$*
- if(~ $#blagh_dirs 0)
- blagh_dirs=( . )
- conf_enable_app blagh
-
- if(~ $"conf_blog_editors '')
- conf_blog_editors=blog-editors
-
- if(~ $"conf_max_posts_per_page '')
- conf_max_posts_per_page=32
-}
-
-fn blagh_init {
- if(~ $#blagh_dirs 0 && ~ $req_path */[bB]log/*) {
- blagh_uri=`{echo $req_path | sed 's,(/[bB]log/).*,\1,'}
- blagh_dirs=( . )
- }
-
- # Should not match sub-dirs!
- if(! ~ $#blagh_dirs 0) {
- # && test -d / `{echo '-a -d '^$blagh_root^$blagh_dirs}
- blagh_url=$base_url^$blagh_uri
- blagh_root=$sitedir^$blagh_uri
- if(check_user $conf_blog_editors) {
- editor_mode=on
- if(~ $"post_arg_date '')
- post_date=`{/bin/date +%F|sed 's,-,/,g'}
- if not
- post_date=$post_arg_date
- ll_add handlers_bar_left echo '<a href="'$blagh_uri'new_post">Make a new post</a>'
- }
-
- if(~ $req_path $blagh_uri) {
- handler_body_main=blagh_body
- u=$blagh_uri'index'
- extraHeaders=$"extraHeaders ^ \
-'<link rel="alternate" type="application/atom+xml" title="ATOM" href="'$"u'.atom" />
-<link rel="alternate" type="application/rss+xml" title="RSS" href="'$"u'.rss" />'
- }
- if not if(~ $req_path $blagh_uri^index.atom)
- blagh_setup_feed_handlers atom.tpl 'application/atom+xml'
-
- if not if(~ $req_path $blagh_uri^index.rss)
- blagh_setup_feed_handlers rss20.tpl 'text/xml; charset=utf-8'
-
- if not if(~ $req_path $blagh_uri^new_post && ! ~ $#editor_mode 0) {
- handler_body_main=( tpl_handler `{get_lib_file blagh/new_post.tpl apps/blagh/new_post.tpl} )
- if(~ $REQUEST_METHOD POST) {
- if(mkbpost $"post_arg_body $"post_date $"post_arg_title $post_arg_id)
- post_redirect $blagh_uri
- if not
- notify_errors=$status
- }
- }
-
- }
-}
-
-fn blagh_setup_feed_handlers {
- handler_body_main=NOT_USED_by_blagh_feeds
- res_tail=()
- http_content_type=$2
- headers=()
- master_template=apps/blagh/$1 # Should we allow tempalte override?
-}
-
-fn blagh_body {
- if (! ~ $"blogTitle '')
- echo '<h1>'$"blogTitle'</h1>'
-
- # Direct links to feeds are disabled because they are not very useful, add clutter and might waste pagerank.
- # An user can add this on their own using handlers_body_head anyway.
- #echo '<div style="text-align:right">(<a href="index.rss">RSS Feed</a>|<a href="index.atom">Atom Feed</a>)</div>'
-
- { # XXX Not sure why this fixes issues with blog setup, probably bug in fltr_cache!
- for(p in `{get_post_list $blagh_root^$blagh_dirs}) {
- l=`{echo -n $p|sed 's!'$sitedir^'/?(.*)([0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9])(/[^/]+/)!\2 /\1\2\3!'}
- sed '1s!.*![&]('^$l(2)^') ('^$l(1)^')!' < $p/index.md
- echo # Needed extra \n so markdown doesn't mess up the formatting, probably can be done in sed.
- }
- # XXX BUG! Markdown [references] break because multiple markdown documents are merged. Should format each blog post independently.
- # TODO: use fltr_cache directly, that can fix the previous bug plus provide a perf boost by caching title generation.
- } | $formatter
-}
-
-fn get_post_list {
- # /./->/|/ done to sort -t| and order by date
- # Note: $paths in blagh_dirs should not contain '/./' or '|'
- ls -F $*^/./[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]/ >[2]/dev/null | sed -n '/'^$forbidden_uri_chars^'/d; s,/\./,/|/,; /\/$/p' | sort -r '-t|' +1 | sed -e 's,/+\|/+,/,' -e $conf_max_posts_per_page^'q'
-}
-
-fn mkbpost {
- bptext=$1
- bpdate=$2
- bptitle=$3
- bpid=$4
- _status=()
- if(~ $"bptext '')
- _status=($_status 'You need to provide a post body.')
- if(! ~ $"bpdate [0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9])
- _status=($_status 'Invalid date: '''^$"bpdate^'''') # XXX Should make semantic check.
-
- if(~ $#_status 0) {
- umask 002 # Let group write
- if(! ~ $"bpid '')
- bpid=`{echo -n '-'^$bpid | sed 's/'$forbidden_uri_chars'+/_/g; 1q'}
-
- ddir=$blagh_root^$bpdate^'/'
- n=`{ls $ddir >[2]/dev/null |wc -l}
-
- mkdir -p $ddir/$"n^$"bpid/
- {
- if(! ~ $"bptitle '') {
- echo $bptitle
- echo '========================================='
- }
- # TODO: Enable metadata
- #echo '* Posted:' `{date}
- #if(! ~ $#logged_user 0)
- # echo '* Author: '$logged_user
- echo
- echo $bptext
- }> $ddir/$"n^$"bpid/index.md
-
- # Experimental support for http://pubsubhubbub.googlecode.com/
- if(! ~ $"conf_blog_pubsubdub_hub '') {
- ifs='' { p=`{echo $req_url|sed 's/new_post$/index.atom/'|url_encode } }
- dprint hget -p 'hub.mode=publish&hub.url='^$"p $conf_blog_pubsubdub_hub
- hget -d -h -p 'hub.mode=publish&hub.url='^$"p $conf_blog_pubsubdub_hub >[1=2] &
- }
- }
- status=$_status
-}
-
-fn strip_title_from_md_file {
- sed '1N; /^.*\n===*$/N; /.*\n===*\n$/d'
-}
diff --git a/apps/blagh/atom.tpl b/apps/blagh/atom.tpl
@@ -1,139 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-%{
-# See for more info:http://www.tbray.org/ongoing/When/200x/2005/07/27/Atomic-RSS
-fn statpost {
- f = $1
-
- updated = `{/bin/date --rfc-3339'=seconds' -r $f |tr ' ' 'T'}
- post_uri=$base_url^`{cleanname `{echo $f | sed -e 's!^'$sitedir'!!'}}^'/'
- title=`{read $f/index.md}
- # Not used: date=`{/bin/date -Rd `{basename $f |sed 's/(^[0-9\-]*).*/\1/; s/-[0-9]$//'}}
- # TODO: use mtime(1) and ls(1) instead of lunix's stat(1)
- stat=`{stat -c '%Y %U' $f}
- #mdate=`{/bin/date -Rd `{mtime $f|awk '{print $1}' }} # Not used because it is unreliable
- by=$stat(2)
- #ifs=() { summary=`{cat $f/index.md | crop_text 1024 ... | $formatter } }
- ifs=() { summary=`{cat $f/index.md | strip_title_from_md_file | ifs=$difs {$formatter} } }
-}
-updated = `{/bin/date --rfc-3339'=seconds' |sed 's/ /T/'}
-%}
-
-<feed xmlns="http://www.w3.org/2005/Atom"
- xmlns:thr="http://purl.org/syndication/thread/1.0">
-
-% if(! ~ $"conf_blog_pubsubdub_hub '') {
-% echo '<link rel="hub" href="'$conf_blog_pubsubdub_hub'" />'
-% }
-
- <link rel="self" href="%($base_url^$req_path%)"/>
- <id>%($base_url^$req_path%)</id>
- <icon>/favicon.ico</icon>
-
- <title>%($siteTitle%)</title>
- <subtitle>%($siteSubTitle%)</subtitle>
-
-% # <updated>2008-09-24T12:47:00-04:00</updated>
- <updated>%($updated%)</updated>
- <link href="."/>
-
-% for(f in `{get_post_list $blagh_root$blagh_dirs}) {
-% statpost $f
-
- <entry>
-% # Maybe we should be smarter, see: http://diveintomark.org/archives/2004/05/28/howto-atom-id, example: <id>tag:intertwingly.net,2004:2899</id>
- <id>%($post_uri%)</id>
- <link href="%($post_uri%)"/>
- <title>%($title%)</title>
-% # <link rel="replies" href="2899.atom" thr:count="0"/>
- <author><name>%($by%)</name></author>
-
-
- <content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
- %($summary%)
- </div></content>
-
- <updated>%($updated%)</updated>
- </entry>
-
-% }
-
-</feed>
-
-% exit
-
-<feed xmlns="http://www.w3.org/2005/Atom"
- xmlns:thr="http://purl.org/syndication/thread/1.0">
- <link rel="self" href="http://intertwingly.net/blog/index.atom"/>
- <id>http://intertwingly.net/blog/index.atom</id>
- <icon>../favicon.ico</icon>
-
- <title>Sam Ruby</title>
- <subtitle>It’s just data</subtitle>
- <author>
- <name>Sam Ruby</name>
- <email>rubys@intertwingly.net</email>
- <uri>/blog/</uri>
- </author>
- <updated>2008-09-24T12:47:00-04:00</updated>
- <link href="/blog/"/>
- <link rel="license" href="http://creativecommons.org/licenses/BSD/"/>
-
- <entry>
- <id>tag:intertwingly.net,2004:2899</id>
- <link href="/blog/2008/09/11/RubyConf-2008"/>
- <link rel="replies" href="2899.atom" thr:count="0"/>
- <title>RubyConf 2008</title>
- <content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
-
-<p>My <a href="http://www.rubyconf.org/talks/14">proposal</a> has been accepted for <a href="http://www.rubyconf.org/talks">RubyConf 2008</a>. Because of the presence of Ruby implementers, this is going to be a bit challenging as it will likely turn into two talks at once. One sharing experiences with fellow developers concerning things they may need to watch out for, and another with language designers about the impact of their changes. It also is likely to be true, as it was at <a href="http://intertwingly.net/blog/2008/07/24/Ruby-1-9-What-to-Expect">OSCON</a>, that there will be members of the audience who know way more about this subject than I do.</p>
-<p>I had originally requested a slot on Saturday. My current slot requires me to shave a day off of <a href="http://us.apachecon.com/c/acus2008/">ApacheCon</a>. I’ve again asked that the slot be changed, but even if it doesn’t move, I can manage this. At least we are only talking about a short hop from New Orleans to Orlando.</p>
-
- </div></content>
- <updated>2008-09-11T06:51:36-04:00</updated>
- </entry>
-
- <entry>
- <id>tag:intertwingly.net,2004:2898</id>
- <link href="/blog/2008/09/10/Small-Updates"/>
- <link rel="replies" href="2898.atom" thr:count="8" thr:updated="2008-09-10T15:31:05-04:00"/>
- <title>Small Updates</title>
- <summary type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
-
- <p><a href="http://hublog.hubmed.org/archives/001744.html">Alf Eaton</a>: <em>Aside: if you’re reading a Planet that contains HubLog, those posts will all jump to the top - sorry! (I wish Planets dealt better with small updates so I didn’t have to worry about it).</em></p>
-<p>I don’t know what publishing software you use, but I see you provide an Atom feed, and Planet 2.0 and Venus both implement <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php#element.updated">atom:updated</a> as specified in RFC 4287.</p>
-
- </div></summary>
- <content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
-
-<p><a href="http://hublog.hubmed.org/archives/001744.html"><cite>Alf Eaton</cite></a>: <em>Aside: if you’re reading a Planet that contains HubLog, those posts will all jump to the top - sorry! (I wish Planets dealt better with small updates so I didn’t have to worry about it).</em></p>
-<p>I don’t know what publishing software you use, but I see you provide an Atom feed, and Planet 2.0 and Venus both implement <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php#element.updated">atom:updated</a> as specified in RFC 4287.</p>
-<p>More specifically, if you have a minor update and leave the updated date alone, the posts will not jump to the top. The next release of WordPress, for example, will contain the necessary hooks for a <a href="http://blog.ciarang.com/posts/wp-minor-edit/">plugin</a> to provide a simple checkbox for indicating that the change constitutes a minor edit.</p>
-
- </div></content>
- <updated>2008-09-10T10:18:47-04:00</updated>
- </entry>
-
- <entry>
- <id>tag:intertwingly.net,2004:2897</id>
- <link href="/blog/2008/09/07/SVG-via-CSS"/>
- <link rel="replies" href="2897.atom" thr:count="10" thr:updated="2008-09-12T02:21:21-04:00"/>
- <title>SVG via CSS</title>
- <summary type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
-
- <p>Now that I have my weblog looking reasonably consistent between Gecko and WebKit based browsers, I’ve taken another look at Opera. Opera doesn’t have support for border-radius, but does have support for background images in SVG, which can be <a href="http://dev.opera.com/articles/view/new-development-techniques-using-opera-k/">used to provide the same effect</a>. My Nav Bar on <a href="http://rails.intertwingly.net/blog/">my test site</a> now employs this technique, and it requires two separate images: <a href="http://rails.intertwingly.net/stylesheets/rc-039-CCD.svg">039 on CCD</a> and <a href="http://rails.intertwingly.net/stylesheets/rc-CCD-FFF.svg">CCD on FFF</a>.</p>
-<p>Frankly, my first reaction to this was mixed. The pluses for SVG in CSS is that it doesn’t require either adjusting your markup or JavaScript to achieve these effects, a desirable characteristic that generally the <a href="http://www.cssjuice.com/25-rounded-corners-techniques-with-css/">other techniques</a> don’t share.</p>
-
- </div></summary>
-
- <content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
-
-<p>Now that I have my weblog looking reasonably consistent between Gecko and WebKit based browsers, I’ve taken another look at Opera. Opera doesn’t have support for border-radius, but does have support for background images in SVG, which can be <a href="http://dev.opera.com/articles/view/new-development-techniques-using-opera-k/">used to provide the same effect</a>. My Nav Bar on <a href="http://rails.intertwingly.net/blog/">my test site</a> now employs this technique, and it requires two separate images: <a href="http://rails.intertwingly.net/stylesheets/rc-039-CCD.svg">039 on CCD</a> and <a href="http://rails.intertwingly.net/stylesheets/rc-CCD-FFF.svg">CCD on FFF</a>.</p>
-<p>Meanwhile, Robert O’Callahan has been exploring <a href="http://weblogs.mozillazine.org/roc/archives/2008/06/applying_svg_ef.html">other ways</a> to integrate these technologies.</p>
-
- </div></content>
- <updated>2008-09-07T11:12:29-04:00</updated>
- </entry>
-
-</feed>
-
diff --git a/apps/blagh/convert.rc b/apps/blagh/convert.rc
@@ -1,20 +0,0 @@
-#!/usr/bin/env rc
-
-path=($PLAN9/bin/ $path)
-
-for(p in *.md) {
- echo
- echo '========================='
- echo p $p
- pp=`{echo $p | sed 's/^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])[\-_](.*).md$/\1 \2 \3 \4/' }
- echo pp $pp
-
- d=$pp(1)^'/'^$pp(2)^'/'^$pp(3)^'/'^$pp(4)^'/'
-
- mkdir -p $d
- echo $pp(4) | sed -e 's/^[0-9]_//; s/_/ /g;' > $d/index.md
- echo '=================================' >> $d/index.md
- echo >> $d/index.md
- cat $p >> $d/index.md
-
-}
diff --git a/apps/blagh/new_post.tpl b/apps/blagh/new_post.tpl
@@ -1,11 +0,0 @@
-<div>
-% notices_handler
-<form method="POST"><fieldset>
- <legend>Submit a new blog post</legend>
- <textarea cols="94" rows=16" name="body">%($"post_arg_body%)</textarea><br />
- <label>Title: <input size="64" type="text" name="title" value="%($"post_arg_title%)" /></label>
- <label>Id: <input size="8" type="text" name="id" value="%($"post_arg_id%)" /></label>
- <label>Date: <input size="10" maxlength="10" type="text" name="date" value="%($"post_date%)" /></label>
- <input type="submit" value="Post" />
-</fieldset></form>
-</div>
diff --git a/apps/blagh/rss20.tpl b/apps/blagh/rss20.tpl
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-%{
-fn statpost {
- f = $1
-
- post_uri = `{echo $f | sed 's,^'$sitedir',,'}
- #title=`{basename $f | sed 's/^[0-9\-]*_(.*)\.md$/\1/; s/_/ /g' }
- title=`{read $f/index.md}
- date=`{/bin/date -Rd `{echo $f|sed 's,.*/([0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9])/.*,\1,'}}
- # TODO: use mtime(1) and ls(1) instead of lunix's stat(1)
- stat=`{stat -c '%Y %U' $f}
- #mdate=`{/bin/date -Rd $stat(1)} # Not used because it is unreliable
- post_uri=$base_url^`{cleanname `{echo $f | sed -e 's!^'$sitedir'!!'}}^'/'
- by=$stat(2)
- ifs=() {summary=`{ cat $f/index.md |strip_title_from_md_file| ifs=$difs {$formatter | escape_html} }}
-}
-
-%}
-
-<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
- <channel>
- <atom:link href="%($base_url^$req_path%)" rel="self" type="application/rss+xml" />
- <title>%($siteTitle%)</title>
- <link>%($base_url^$req_path%)</link>
- <description>%($blogDesc%)</description>
- <language>en-us</language>
- <generator>Tom Duff's rc, and Kris Maglione's clever hackery</generator>
-%{
- # <webMaster>uriel99+rss@gmail.com (Uriel)</webMaster>
- for(f in `{get_post_list $blagh_root$blagh_dirs}) {
- statpost $f
- # Hack to aproximate the last build date
- #(use the mdate from last posted item)
- # Commented out for now because maybe a wrong value is worse than no value
- #if(~ $#last_build_date 0) {
- #last_build_date='<lastBuildDate>'^$"mdate'</lastBuildDate>'
- #echo $last_build_date
- #}
-%}
- <item>
- <title>%($title%)</title>
- <author>%($by%)@noreply.cat-v.org (%($by%))</author>
- <link>%($post_uri%)</link>
- <guid isPermaLink="true">%($post_uri%)</guid>
- <pubDate>%($date%)</pubDate>
- <description>%($summary%)</description>
- </item>
-% }
-
- </channel>
-</rss>
diff --git a/bin/corehandlers.rc b/bin/corehandlers.rc
@@ -1,10 +1,12 @@
# Werc builtin handlers
fn nav_tree {
+ if(! ~ $#sideBarNavTitle 0)
+ echo '<p class="sideBarTitle">'$"sideBarNavTitle':</p>'
echo '<ul>'
if(~ $"req_paths_list /)
- echo '<li><a href="/" class="current">Home</a></li>'
+ echo '<li><a href="/" class="thisPage">Home</a></li>'
if not
echo '<li><a href="/">Home</a></li>'
# Ignore stderr, last path element might be a file that doesn't exist (eg., foo for foo.md)
@@ -15,15 +17,15 @@ fn nav_tree {
if(! ~ $#synth_paths 0) echo $synth_paths | tr ' ' $NEW_LINE
} | sort -u | awk -F/ '
function p(x, y, s) { for(i=0; i < x-y; i+=1) print s }
- BEGIN { lNF=2; }
+ BEGIN { lNF=2; print "<ul>" }
{
d = ""
if(match($0, "/$"))
d = "/"
sub("/$", "") # Strip trailing / for dirs so NF is consistent
- print "<li>";
- p(NF, lNF, " ")
+ p(NF, lNF, "<li><ul>")
+ p(lNF, NF, "</ul></li>")
lNF = NF
bname = $NF d
@@ -35,13 +37,11 @@ fn nav_tree {
gsub(/[^\/]$/, "&/", pa)
if(index(ENVIRON["req_path"] "/", pa) == 1)
- print "<a href=\"" path "\" class=\"current\">" bname "</a>"
+ print "<li><a href=\"" path "\" class=\"thisPage\"> " bname "</a></li>"
else
- print "<a href=\"" path "\">" bname "</a>"
-
- print "</li>"
+ print "<li><a href=\"" path "\">" bname "</a></li>"
}
- END { print "</ul>" }'
+ END { p(lNF, 2, "</ul></li>"); print "</ul>" }'
}
fn link_bar {
diff --git a/etc/users/GROUP_AND_USER_ACCOUNTS b/etc/users/GROUP_AND_USER_ACCOUNTS
@@ -1 +0,0 @@
-This is just a dummy file to force hg to preserve this directory that is used to store user and group account information.
diff --git a/lib/default_master-full.tpl b/lib/default_master-full.tpl
@@ -1,45 +0,0 @@
-<!--
- <div id="offsite">
- <a class="current" href="http://garbe.us">Home</a>
- <a href="http://blog.garbe.us">Blog</a>
- </div>
--->
-
- <div id="innerbody">
-
- <div id="header">
- <a href="/">%($"siteTitle%) <span id="headerSubTitle">%($"siteSubTitle%)</span></a>
- </div>
-
- <div id="content">
-% if(! ~ $#handlers_bar_left 0) {
- <div id="nav">
-% for(h in $handlers_bar_left) {
-% run_handler $$h
-% }
- </div>
-% }
-
- <div id="main">
-
-% run_handlers $handlers_body_head
-
-% run_handler $handler_body_main
-
-% run_handlers $handlers_body_foot
-
- </div>
- </div>
-
- <div id="footer">
- <div class="left">
- <a href="http://werc.cat-v.org/">Powered by werc</a>
- </div>
- <div class="right">
- © 2011 Anselm R Garbe
- </div>
- </div>
-
- </div>
-</body>
-</html>
diff --git a/lib/default_master.tpl b/lib/default_master.tpl
@@ -27,6 +27,6 @@
<a href="http://werc.cat-v.org/">Powered by werc</a>
</div>
<div class="right">
- © 2011 Anselm R Garbe
+ © 2012 Anselm R Garbe
</div>
</div>
diff --git a/lib/headers.tpl b/lib/headers.tpl
@@ -3,6 +3,6 @@
<head>
<title>%($pageTitle%)</title>
<link href='http://fonts.googleapis.com/css?family=Cantarell' rel='stylesheet' type='text/css'>
- <link rel="stylesheet" href="/pub/style/style.css" type="text/css">
+ <link rel="stylesheet" href="/pub/style.css" type="text/css">
<meta charset="utf-8">
</head>
diff --git a/pub/style.css b/pub/style.css
@@ -0,0 +1,123 @@
+body {
+ background-color: #eee;
+ color: #333;
+ font-family: Cantarell, Helvetica, Verdana, Arial, 'Liberation Sans', FreeSans, sans-serif;
+ text-align: justify;
+ padding: 0;
+ margin: 0;
+}
+
+a {
+ color: #36c;
+ text-decoration: none;
+}
+
+a:hover {
+ color: #666;
+}
+
+#header {
+ clear: both;
+ color: #666;
+ text-shadow: 1px 1px #fff;
+ font-size: 1.7em;
+ padding: 0.7ex;
+}
+
+#header a {
+ color: #666;
+}
+
+h1 {
+ margin: 1em 1ex 0.5ex 0;
+ font-size: 1.4em;
+}
+
+h2 {
+ margin: 1em 1ex 0.5ex 0;
+ font-size: 1.3em;
+}
+
+h3 {
+ margin: 1em 1ex 0.5ex 0;
+ font-size: 1.2em;
+}
+
+h4 {
+ margin: 1em 1ex 0.5ex 0;
+ font-size: 1.1em;
+}
+
+#content {
+ clear: both;
+ margin: 0;
+ padding: 0;
+ background-color: #fff;
+ overflow: hidden;
+ border-top: 1px solid #ccc;
+ border-bottom: 1px solid #ccc;
+}
+
+#nav {
+ background-color: #fff;
+ float: left;
+ margin: 0 1px 0 0;
+ padding: 0;
+ border-right: 1px solid #ccc;
+ width: 200px;
+}
+
+#nav ul {
+ margin: 0;
+ padding: 0;
+}
+
+#nav li {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+}
+
+#nav li ul {
+ padding-left: 0.6em !important;
+}
+
+#nav li a {
+ color: #36c;
+ display: block;
+ margin: 0;
+ padding: 0.8ex 2em 0.8ex 1em;
+}
+
+#nav li a:hover {
+ background: #eee;
+}
+
+#nav li a.thisPage {
+ color: #333;
+ font-weight: bold;
+ font-style: italic;
+}
+
+#main {
+ margin: 0 0 0 200px;
+ padding: 1.5em 1em 1.5em 2em;
+ max-width: 50em;
+ border-left: 1px solid #ccc;
+}
+
+#footer {
+ clear: both;
+ color: #666;
+ font-size: 84%;
+ padding: 1em;
+ margin: 0 0 1.5em 0;
+}
+
+.left {
+ float: left;
+}
+
+.right {
+ float: right;
+}
diff --git a/pub/style/style.css b/pub/style/style.css
@@ -1,123 +0,0 @@
-body {
- background-color: #eee;
- color: #333;
- font-family: Cantarell, Helvetica, Verdana, Arial, 'Liberation Sans', FreeSans, sans-serif;
- text-align: justify;
- padding: 1em;
- margin: 0 auto 0 auto;
- max-width: 50em;
-}
-
-a {
- color: #36c;
- text-decoration: none;
-}
-
-a:hover {
- color: #666;
-}
-
-#header {
- clear: both;
- color: #666;
- text-shadow: 1px 1px #fff;
- font-size: 1.7em;
- padding: 0.7ex;
-}
-
-#header a {
- color: #666;
-}
-
-h1 {
- margin: 1em 1ex 0.5ex 0;
- font-size: 1.4em;
-}
-
-h2 {
- margin: 1em 1ex 0.5ex 0;
- font-size: 1.3em;
-}
-
-h3 {
- margin: 1em 1ex 0.5ex 0;
- font-size: 1.2em;
-}
-
-h4 {
- margin: 1em 1ex 0.5ex 0;
- font-size: 1.1em;
-}
-
-#content {
- padding: 0;
- margin: 1ex 0 0 0;
- border: 1px solid #ccc;
- /*
- -moz-box-shadow: 0 0 0.7ex #999;
- -webkit-box-shadow: 0 0 0.7ex #999;
- box-shadow: 0 0 0.7ex #999;
- */
-}
-
-#nav {
- background-color: #ddd;
- float: right;
- margin: 0 0 2em 2em;
- padding: 0;
-}
-
-#nav ul {
- margin: 0;
- padding: 0;
-}
-
-#nav li {
- list-style: none;
- padding: 0;
- margin: 0;
- width: 100%;
-}
-
-#nav li a {
- color: #36c;
- display: block;
- margin: 0;
- padding: 0.8ex 2em 0.8ex 1em;
-}
-
-#nav li a:hover {
- background: #eee;
-}
-
-#nav li a.current {
- background-color: #fff;
- color: #333;
- /*
- -moz-box-shadow: 0.4ex 0.2ex 0.4ex #999;
- -webkit-box-shadow: 0.4ex 0.2ex 0.4ex #999;
- box-shadow: 0.4ex 0.2ex 0.4ex #999;
- */
-}
-
-#main {
- align: left;
- background-color: #fff;
- padding: 5ex;
-}
-
-#footer {
- clear: both;
- color: #666;
- font-size: 84%;
- padding: 1ex;
- margin: 0 0 1em 0;
-}
-
-.left {
- float: left;
-}
-
-.right {
- float: right;
-}
diff --git a/pub/style/style_full.css b/pub/style/style_full.css
@@ -1,152 +0,0 @@
-body {
- background-color: #eee;
- color: #333;
- font-family: Cantarell, Helvetica, Verdana, Arial, 'Liberation Sans', FreeSans, sans-serif;
- text-align: justify;
- padding: 0;
- margin: 0;
-}
-
-a {
- color: #36c;
- text-decoration: none;
-}
-
-a:hover {
- color: #039;
-}
-
-#innerbody {
- padding: 1em;
- margin: 0 auto 0 auto;
- max-width: 50em;
-}
-
-#offsite {
- background-color: #ccc;
- padding: 0.5ex 0 0.5ex 0;
- margin: 0;
- -moz-box-shadow: 0 0 1ex #666;
- -webkit-box-shadow: 0 0 1ex #666;
- box-shadow: 0 0 1ex #666;
- text-align: center;
- font-size: 84%;
-}
-
-#offsite a {
- margin: 0;
- padding: 0.5ex 1em 0.5ex 1em;
-}
-
-#offsite a:hover {
- color: #36c;
- background-color: #ddd;
-}
-
-#offsite a.current {
- background-color: #eee;
- color: #333;
- -moz-box-shadow: 0 0 0.5ex #fff;
- -webkit-box-shadow: 0 0 0.5ex #fff;
- box-shadow: 0 0 0.5ex #fff;
-}
-
-#header {
- clear: both;
- color: #666;
- text-shadow: 1px 1px #fff;
- font-size: 1.7em;
- padding: 0.7ex;
-}
-
-#header a, a:hover {
- color: #666;
-}
-
-h1 {
- margin: 1em 1ex 0.5ex 0;
- font-size: 1.4em;
-}
-
-h2 {
- margin: 1em 1ex 0.5ex 0;
- font-size: 1.3em;
-}
-
-h3 {
- margin: 1em 1ex 0.5ex 0;
- font-size: 1.2em;
-}
-
-h4 {
- margin: 1em 1ex 0.5ex 0;
- font-size: 1.1em;
-}
-
-#content {
- padding: 0;
- margin: 1ex 0 0 0;
- -moz-box-shadow: 0 0 0.7ex #999;
- -webkit-box-shadow: 0 0 0.7ex #999;
- box-shadow: 0 0 0.7ex #999;
-}
-
-#nav {
- background-color: #ddd;
- float: right;
- margin: 0 0 2em 2em;
- padding: 0;
-}
-
-#nav ul {
- margin: 0 0 1ex 0;
- padding: 0;
-}
-
-#nav li {
- list-style: none;
- padding: 0;
- margin: 0;
- width: 100%;
-}
-
-#nav li a {
- color: #36c;
- display: block;
- margin: 0;
- padding: 0.8ex 2em 0.8ex 1em;
-}
-
-#nav li a:hover {
- background: #eee;
-}
-
-#nav li a.current {
- background-color: #fff;
- color: #333;
- -moz-box-shadow: 0.3ex 0.3ex 0.3ex #999;
- -webkit-box-shadow: 0.3ex 0.3ex 0.3ex #999;
- box-shadow: 0.3ex 0.3ex 0.3ex #999;
-}
-
-#main {
- align: left;
- background-color: #fff;
- padding: 5ex;
-}
-
-#footer {
- clear: both;
- color: #666;
- font-size: 84%;
- padding: 1ex;
- margin: 0 0 1em 0;
-}
-
-.left {
- float: left;
-}
-
-.right {
- float: right;
-}