Making zebra-striped lists reusable.

This commit is contained in:
Matthias Mees 2013-01-15 15:55:22 +01:00
parent 397b5b5635
commit 4619a22b97
2 changed files with 7 additions and 8 deletions

View File

@ -108,7 +108,7 @@
<input name="serendipity[adminModule]" type="hidden" value="entries">
<input name="serendipity[adminAction]" type="hidden" value="multidelete">
<ul id="entries_list" class="plainList">
<ul id="entries_list" class="plainList zebra_list">
{foreach $entries as $entry}
{if ($entry@index > $perPage)}{continue}{/if}
<li class="clearfix {cycle values="odd,even"}"><div class="form_check">

View File

@ -1053,19 +1053,18 @@ fieldset p,
width: 100px;
}
#entries_list { border-top: 1px solid #aaa; }
.zebra_list { border-top: 1px solid #aaa; }
.zebra_list>li { border-bottom: 1px solid #aaa; }
.zebra_list>.odd { background: #eee; }
#entries_list h3 {
font-size: 1em;
line-height: 1.5;
}
#entries_list>li {
border-bottom: 1px solid #aaa;
padding: 0 .4em;
}
#entries_list .odd { background: #eee; }
#entries_list>li { padding: 0 .4em; }
#entries_list .entry_info span { margin: 0 1em .75em 0; }