implemented highlighted menu - swerc - anselm's simpler werc fork | |
git clone git://git.suckless.org/swerc | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit 99f728efdacf7eb37082ae1275820bc0805df3fd | |
parent 118c2fd871c365b43929995a57c643804b66f98c | |
Author: [email protected] <unknown> | |
Date: Sun, 18 Mar 2012 08:20:32 +0100 | |
implemented highlighted menu | |
Diffstat: | |
M pub/style.css | 16 ++++++++++------ | |
M tpl/master.tpl | 37 +++++++++++++++++++++++++++++… | |
2 files changed, 46 insertions(+), 7 deletions(-) | |
--- | |
diff --git a/pub/style.css b/pub/style.css | |
@@ -1,6 +1,6 @@ | |
body { | |
background-color: #eee; | |
- color: #333; | |
+ color: #111; | |
font-family: Helvetica, Verdana, Arial, 'Liberation Sans', FreeSans, s… | |
padding: 0; | |
margin: 0; | |
@@ -17,19 +17,23 @@ a:hover { | |
#menu { | |
clear: both; | |
- color: #ccc; | |
- background-color: #ddd; | |
+ color: #069; | |
+ background-color: #17a; | |
padding: 0.7ex; | |
font-size: 94%; | |
} | |
#menu a { | |
padding: 0.5ex 1ex 0.5ex 1ex; | |
- color: #069; | |
+ color: #fff; | |
} | |
#menu a:hover { | |
- background-color: #eee; | |
+ background-color: #069; | |
+} | |
+ | |
+#menu a.thisSite { | |
+ font-weight: bold; | |
} | |
#header { | |
@@ -66,7 +70,7 @@ h4 { | |
} | |
#headerSubTitle { | |
- font-size: 0.8em; | |
+ font-size: 0.75em; | |
font-style: italic; | |
margin-left: 1em; | |
} | |
diff --git a/tpl/master.tpl b/tpl/master.tpl | |
@@ -11,16 +11,51 @@ | |
</div> | |
<div id="menu"> | |
+% if(~ $site 'suckless.org') { | |
+ <a class="thisSite" href="http://suckless.org">home</a> | | |
+% } | |
+% if not { | |
<a href="http://suckless.org">home</a> | | |
+% } | |
+% if(~ $site 'dwm.suckless.org') { | |
+ <a class="thisSite" href="http://dwm.suckless.org">dwm</a> | | |
+% } | |
+% if not { | |
<a href="http://dwm.suckless.org">dwm</a> | | |
+% } | |
+% if(~ $site 'st.suckless.org') { | |
+ <a class="thisSite" href="http://st.suckless.org">st</a> | | |
+% } | |
+% if not { | |
<a href="http://st.suckless.org">st</a> | | |
+% } | |
+% if(~ $site 'sta.li') { | |
+ <a class="thisSite" href="http://sta.li">stali</a> | | |
+% } | |
+% if not { | |
<a href="http://sta.li">stali</a> | | |
+% } | |
+% if(~ $site 'surf.suckless.org') { | |
+ <a class="thisSite" href="http://surf.suckless.org">surf</a> | | |
+% } | |
+% if not { | |
<a href="http://surf.suckless.org">surf</a> | | |
+% } | |
+% if(~ $site 'tools.suckless.org') { | |
+ <a class="thisSite" href="http://tools.suckless.org">tools</a>… | |
+% } | |
+% if not { | |
<a href="http://tools.suckless.org">tools</a> | | |
+% } | |
+% if(~ $site 'man.suckless.org') { | |
+ <a class="thisSite" href="http://man.suckless.org">man</a> | |
+% } | |
+% if not { | |
<a href="http://man.suckless.org">man</a> | |
+% } | |
<div class="right"> | |
<a href="http://dl.suckless.org">download</a> | | |
- <a href="http://hg.suckless.org">code</a> | |
+ <a href="http://hg.suckless.org">source</a> | |
</div> | |
</div> | |