Commit 2f0a59bb authored by Matthieu Gautier's avatar Matthieu Gautier
Browse files

Le menu des pages utilises le style des articles.

parent 0950753a
......@@ -13,6 +13,14 @@
text-decoration: none;
}
#menu .content {
margin: 1em;
padding: 2em;
text-align: center;
background: #3c6eb4;
color: white;
}
/* -- Responsive Styles (Media Queries) ------------------------------------- */
/*
......
......@@ -25,17 +25,17 @@
}
.fedora_22 .content {
background: #db3279;
background: #db3279 !important;
}
.linux_41 .content {
background: #e59728;
background: #e59728 !important;
}
.xmpp .content {
background: #a07cbc;
background: #a07cbc !important;
}
.redhat .content {
background: #79db32;
background: #79db32 !important;
}
......@@ -24,7 +24,10 @@
<!--%
mpages = [p for p in pages if "menu-position" in p]
mpages.sort(key=lambda p: int(p["menu-position"]))
entry = '''<li class="pure-menu-item %(style)s"><a href="%(url)s">%(title)s</a></li>'''
entry = '''<li class="pure-menu-item %(style)s %(display-style)s">
<div class="content">
<a href="%(url)s">%(title)s</a>
</div></li>'''
for p in mpages:
style = "pure-menu-selected" if p["title"] == page["title"] else ""
print(entry % dict(list(p.items()) +[('style', style)]))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment