summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-10-03 13:52:39 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-10-03 13:52:39 (GMT)
commit3bddbc9e7a84c2e6712b63bd0fe881a4a3e6261c (patch)
treed0a970fc5116c0449c751008fc260eaf434849f6 /web
parent837aa10de4e4bad3d5994731fac81cd19c4cceea (diff)
downloadsite-3bddbc9e7a84c2e6712b63bd0fe881a4a3e6261c.tar.gz
CSS cosmetics: span.current -> span#current
"current" is just one element, not a class of elements.
Diffstat (limited to 'web')
-rw-r--r--web/content/media/plugins.css2
-rw-r--r--web/macros.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/web/content/media/plugins.css b/web/content/media/plugins.css
index 42d9a73..0e104b9 100644
--- a/web/content/media/plugins.css
+++ b/web/content/media/plugins.css
@@ -62,7 +62,7 @@ div#menu span {
62 padding: 0.6em; 62 padding: 0.6em;
63} 63}
64 64
65div#menu span.current { 65div#menu span#current {
66 color: #fff; 66 color: #fff;
67 background-color: #5a95c7; 67 background-color: #5a95c7;
68} 68}
diff --git a/web/macros.py b/web/macros.py
index 43a46e0..715d353 100644
--- a/web/macros.py
+++ b/web/macros.py
@@ -13,7 +13,7 @@ def menu():
13 menu_pages.sort(key=lambda p: int(p['menu-position'])) 13 menu_pages.sort(key=lambda p: int(p['menu-position']))
14 for p in menu_pages: 14 for p in menu_pages:
15 if p.title == page.title: 15 if p.title == page.title:
16 print('<span class="current">%s</span>' % hx(p.title)) 16 print('<span id="current">%s</span>' % hx(p.title))
17 else: 17 else:
18 print('<span><a href="%s">%s</a></span>' % (p.url, hx(p.title))) 18 print('<span><a href="%s">%s</a></span>' % (p.url, hx(p.title)))
19 19