ae05dad4acfb
Adjust listing styles.
author | Steve Losh <steve@stevelosh.com> |
---|---|
date | Wed, 23 Dec 2009 18:39:34 -0500 |
parents | e030519b448d |
children | 62daa229e3e8 |
branches/tags | (none) |
files | layout/skeleton/_innerlisting.html layout/skeleton/_listing.html media/css/base.css |
Changes
--- a/layout/skeleton/_innerlisting.html Wed Dec 23 18:29:35 2009 -0500 +++ b/layout/skeleton/_innerlisting.html Wed Dec 23 18:39:34 2009 -0500 @@ -2,20 +2,20 @@ {% block all %} {%spaceless%} -<ol> - {% for list_page in node.pages %} - {% ifnotequal list_page node.listing_page %} - {% if not list_page.exclude %} - <li> - <a href="{{ list_page.url }}"> - {% with list_page.name_without_extension|remove_date_prefix|unslugify as default_title %} - {{ list_page.title|default_if_none:default_title }} - {%endwith%} - </a> - </li> - {%endif%} - {% endifnotequal %} - {% endfor %} -</ol> + +{% for list_page in node.pages %} + {% ifnotequal list_page node.listing_page %} + {% if not list_page.exclude %} + <li> + <a href="{{ list_page.url }}"> + {% with list_page.name_without_extension|remove_date_prefix|unslugify as default_title %} + {{ list_page.title|default_if_none:default_title }} + {%endwith%} + </a> + </li> + {%endif%} + {% endifnotequal %} +{% endfor %} + {%endspaceless%} {% endblock %} \ No newline at end of file
--- a/layout/skeleton/_listing.html Wed Dec 23 18:29:35 2009 -0500 +++ b/layout/skeleton/_listing.html Wed Dec 23 18:39:34 2009 -0500 @@ -2,8 +2,10 @@ {% block content %} <div id="section-listing"> - {% for node in page.node.walk %} - {% include "skeleton/_innerlisting.html" %} - {% endfor %} + <ol> + {% for node in page.node.walk %} + {% include "skeleton/_innerlisting.html" %} + {% endfor %} + </ol> </div> {% endblock %} \ No newline at end of file
--- a/media/css/base.css Wed Dec 23 18:29:35 2009 -0500 +++ b/media/css/base.css Wed Dec 23 18:39:34 2009 -0500 @@ -86,11 +86,27 @@ width: 42em; } -ul#archives { +div#section-listing { + font-size: 1.5em; + line-height: 2em; + color: #888; +} +div#section-listing ol { list-style: none; } -ul#archives li { - font-size: 1.5em; +div#section-listing ol li { + border-bottom: 1px solid #eee; +} +div#section-listing ol a { + color: #111; + font-weight: bold; +} +div#section-listing ol a:hover { + color: #e50053; + text-decoration: none; +} +div#section-listing ol li:last-child { + border-bottom: none; } div.article {