Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
Don't indent toplevel facet item children
Browse files Browse the repository at this point in the history
  • Loading branch information
nidico committed Mar 9, 2013
1 parent 82523b8 commit ab3da79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/adhocracy/static/stylesheets/screen/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -1592,11 +1592,10 @@ body.logged_in .only-anon {
margin-bottom: 5px;
}
.facet ul ul {
list-style: none;
margin-left: 18px;
}
.facet li {
padding-right: 16px;
.facet ul ul.noindent {
margin-left: 0px;
}
.facet li a.expand_arrow {
width: 11px;
Expand All @@ -1619,9 +1618,9 @@ body.logged_in .only-anon {
}
.facet input {
margin-top: 2px;
margin-right: 5px;
}
.facet .facet_item_text {
margin-left: 5px;
font-weight: bold;
}

Expand Down
6 changes: 3 additions & 3 deletions src/adhocracy/templates/pager.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ <h4>
<br />
</%def>

<%def name="facet_items(items)">
<ul>
<%def name="facet_items(items, indent=True)">
<ul${'' if indent else ' class="noindent"' | n}>
%for item in items:
<li class="facet-item-level-${item['level']}${' expanded' if item['open'] else ''}">
%if item['visible']:
Expand Down Expand Up @@ -146,7 +146,7 @@ <h4>

%if item["children"]:
<a class="expand_arrow"></a>
${facet_items(item["children"])}
${facet_items(item["children"], indent=not item['hide_checkbox'])}
%endif
%endif

Expand Down

0 comments on commit ab3da79

Please sign in to comment.