1
0

Refactor the whole damn zebra striping business.

This commit is contained in:
Matthias Mees
2014-03-01 19:50:53 +01:00
parent 49319139e0
commit a9b8c9dd02
6 changed files with 18 additions and 51 deletions

View File

@@ -148,7 +148,7 @@
{if $view}
<h2>{$CONST.CATEGORIES}</h2>
{if is_array($viewCats)}
<ul id="categories">
<ul id="categories" class="option_list">
{foreach $viewCategories as $category}
{if ! $category@first}
{if $category.depth > $priorDepth}

View File

@@ -181,7 +181,7 @@
<h3>{$CONST.BASE_DIRECTORY}</h3>
<ul id="serendipity_image_folders">
<ul id="serendipity_image_folders" class="option_list">
{foreach $folders as $folder}
{if ! $folder@first}
{if $folder.depth > $priorDepth}

View File

@@ -14,7 +14,7 @@
<h3>Upload</h3> {* i18n *}
<div class="panel">
<div id="uploads">
<div id="uploads" class="zebra_list">
<div id="upload_form_1" class="upload_form">
<div class="form_field clearfix">
<label for="userfile_1" class="uploadform_userfile_label">{$CONST.ENTER_MEDIA_UPLOAD}</label>

View File

@@ -34,7 +34,7 @@
{/if}
</div>
<form class="configure_plugin" method="post" name="serendipityPluginConfigure">
<form class="configure_plugin option_list" method="post" name="serendipityPluginConfigure">
{$formToken}
{$config}
</form>

View File

@@ -1500,7 +1500,7 @@ form > .button_link:first-of-type,
}
.category_info {
margin-left: 2.5em;
margin-left: 1em;
}
#template_select article,
@@ -1641,55 +1641,28 @@ form > .button_link:first-of-type,
}
.zebra_list,
.option_list,
#uploads,
.configure_plugin .odd:first-of-type {
border-top: 1px solid #aaa;
.option_list .odd,
.option_list .even {
border: 1px solid #aaa;
}
.zebra_list > li,
.option_list .odd,
.option_list .even,
.theme_options .odd,
.theme_options .even,
.configure_plugin .odd,
.configure_plugin .even,
.zebra_list .odd,
.zebra_list .even,
.upload_form {
border-bottom: 1px solid #aaa;
}
.zebra_list > li,
.option_list .odd,
.option_list .even,
.theme_options .odd,
.theme_options .even,
#uploads,
.configure_plugin .odd,
.configure_plugin .even {
border-left: 1px solid #aaa;
border-right: 1px solid #aaa;
.zebra_list {
border-bottom: 0 none;
}
#categories .odd,
#categories .even,
#serendipity_image_folders .odd,
#serendipity_image_folders .even {
border: 1px solid #aaa;
.option_list .odd,
.option_list .even {
margin-top: -1px;
}
.theme_options > div:first-of-type {
border-bottom: 1px solid #aaa;
margin-bottom: 0;
padding-bottom: 1.5em;
}
.zebra_list > .odd,
.option_list > .odd,
.theme_options .odd,
.configure_plugin .odd,
#categories .odd,
#serendipity_image_folders .odd,
.zebra_list .odd,
.option_list .odd,
.upload_form:nth-child(odd),
.upload_form:nth-child(odd) input[type="file"] {
background: #eee;
@@ -1729,9 +1702,7 @@ form > .button_link:first-of-type,
.option_list .odd,
.option_list .even,
.configure_plugin .config_optiongroup .odd,
.configure_plugin .config_optiongroup .even,
.configure_plugin .odd,
.configure_plugin .even {
.configure_plugin .config_optiongroup .even {
padding-left: .4em;
}
@@ -1922,10 +1893,6 @@ form > .button_link:first-of-type,
margin-top: .5em;
}
.config_optiongroup_last {
border-bottom: 1px solid #aaa;
}
.plugin_count {
clear: both;
margin: 0 0 1.5em;

View File

@@ -12,7 +12,7 @@
{if $adminAction == 'configure'}
<span class="msg_success"><span class="icon-ok-circled"></span> {$CONST.DONE}: {$save_time}</span>
{/if}
<form class="theme_options" method="post" action="serendipity_admin.php">
<form class="theme_options option_list" method="post" action="serendipity_admin.php">
<input name="serendipity[adminModule]" type="hidden" value="templates">
<input name="serendipity[adminAction]" type="hidden" value="configure">
{$form_token}