1
0

Do not use .clearfix for layout selectors.

This commit is contained in:
Matthias Mees
2013-06-22 13:31:49 +02:00
parent f0b7d6631b
commit 06f6a164f1
6 changed files with 19 additions and 21 deletions

View File

@ -48,7 +48,7 @@
<form id="serendipity_category" method="POST" name="serendipityCategory"> <form id="serendipity_category" method="POST" name="serendipityCategory">
{$formToken} {$formToken}
<div class="clearfix"> <div class="clearfix inputs">
<div class="form_field"> <div class="form_field">
<label for="category_name">{$CONST.NAME}</label> <label for="category_name">{$CONST.NAME}</label>
<input id="category_name" name="serendipity[cat][name]" type="text" value="{$this_cat.category_name|default:""|escape:"html"}"> <input id="category_name" name="serendipity[cat][name]" type="text" value="{$this_cat.category_name|default:""|escape:"html"}">
@ -71,7 +71,7 @@
</div> </div>
</div> </div>
<div class="clearfix"> <div class="clearfix inputs">
<div class="form_multiselect"> <div class="form_multiselect">
<label for="read_authors">{$CONST.PERM_READ}</label> <label for="read_authors">{$CONST.PERM_READ}</label>
<select id="read_authors" size="6" multiple name="serendipity[cat][read_authors][]"> <select id="read_authors" size="6" multiple name="serendipity[cat][read_authors][]">
@ -93,7 +93,7 @@
</div> </div>
</div> </div>
<div class="clearfix"> <div class="clearfix inputs">
<div class="form_field"> <div class="form_field">
<label for="category_icon">{$CONST.IMAGE}</label> <label for="category_icon">{$CONST.IMAGE}</label>
{* TODO: this should probably become/fallback to input[type=file]; also needs {* TODO: this should probably become/fallback to input[type=file]; also needs
@ -107,10 +107,10 @@
</figure> </figure>
</div> </div>
<fieldset class="clearfix"> <fieldset class="clearfix inputs">
<legend><span>{$CONST.CATEGORY_HIDE_SUB} <span>{$CONST.CATEGORY_HIDE_SUB_DESC}</span></span></legend> <legend><span>{$CONST.CATEGORY_HIDE_SUB} <span>{$CONST.CATEGORY_HIDE_SUB_DESC}</span></span></legend>
<div class="clearfix"> <div class="clearfix grouped">
<div class="form_radio"> <div class="form_radio">
<input id="hide_sub_yes" name="serendipity[cat][hide_sub]" type="radio" value="1"{if $this_cat.hide_sub== 1} checked="checked"{/if}> <input id="hide_sub_yes" name="serendipity[cat][hide_sub]" type="radio" value="1"{if $this_cat.hide_sub== 1} checked="checked"{/if}>
<label for="hide_sub_yes">{$CONST.YES}</label> <label for="hide_sub_yes">{$CONST.YES}</label>

View File

@ -18,7 +18,7 @@
<fieldset id="filter_comments" class="additional_info"> <fieldset id="filter_comments" class="additional_info">
<legend class="visuallyhidden">{$CONST.FILTERS} ({$CONST.FIND_COMMENTS})</legend> <legend class="visuallyhidden">{$CONST.FILTERS} ({$CONST.FIND_COMMENTS})</legend>
<div class="clearfix"> <div class="clearfix inputs">
<div class="form_field"> <div class="form_field">
<label for="filter_author">{$CONST.AUTHOR}</label> <label for="filter_author">{$CONST.AUTHOR}</label>
<input id="filter_author" name="serendipity[filter][author]" type="text" value="{$get.filter.author|escape}"> <input id="filter_author" name="serendipity[filter][author]" type="text" value="{$get.filter.author|escape}">

View File

@ -20,7 +20,7 @@
{if $item.type == 'bool'} {if $item.type == 'bool'}
<fieldset class="clearfix"> <fieldset class="clearfix">
<legend><span>{$item.title} <span>{$item.description}</span></span></legend> <legend><span>{$item.title} <span>{$item.description}</span></span></legend>
<div class="clearfix"> <div class="clearfix grouped">
{$item.guessedInput} {$item.guessedInput}
</div> </div>
</fieldset> </fieldset>

View File

@ -101,7 +101,7 @@
<fieldset id="media_pane_sort" class="additional_info"> <fieldset id="media_pane_sort" class="additional_info">
<legend class="visuallyhidden">{$CONST.SORT_ORDER}</legend> <legend class="visuallyhidden">{$CONST.SORT_ORDER}</legend>
<div class="clearfix"> <div class="clearfix grouped">
<div class="form_select"> <div class="form_select">
<label for="serendipity_sortorder_order">{$CONST.SORT_BY}</label> <label for="serendipity_sortorder_order">{$CONST.SORT_BY}</label>

View File

@ -17,7 +17,7 @@
{elseif $ctype == 'radio'} {elseif $ctype == 'radio'}
<fieldset> <fieldset>
<legend><span>{$cname}{if $cdesc != ''} <span>{$cdesc}</span>{/if}</span></legend> <legend><span>{$cname}{if $cdesc != ''} <span>{$cdesc}</span>{/if}</span></legend>
<div class="clearfix"> <div class="clearfix grouped">
{foreach $radio_button AS $r} {foreach $radio_button AS $r}
<div class="form_radio"> <div class="form_radio">
<input id="serendipity_plugin_{$r['id']}" class="direction_{$lang_direction}" name="serendipity[{$postKey}][{$config_item}]" type="radio" value="{$r['value']}" {(!empty($r['checked'])) ? 'checked="checked"' : ''} title="{$r['index']|escape}"> <input id="serendipity_plugin_{$r['id']}" class="direction_{$lang_direction}" name="serendipity[{$postKey}][{$config_item}]" type="radio" value="{$r['value']}" {(!empty($r['checked'])) ? 'checked="checked"' : ''} title="{$r['index']|escape}">

View File

@ -892,7 +892,8 @@ input[type=checkbox],
margin-bottom: .75em; margin-bottom: .75em;
} }
.importer_data dd { .importer_data dd,
.form_buttons > input {
margin-bottom: .75em; margin-bottom: .75em;
} }
@ -1311,7 +1312,7 @@ fieldset p,
padding: .25em 0; padding: .25em 0;
} }
.importer_data .clearfix > div { .importer_data dd > div {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
} }
@ -1822,7 +1823,7 @@ input[name="serendipity[filter][fileCategory]"] {
margin: .4375em 0 .875em; margin: .4375em 0 .875em;
} }
#image_directory_edit_form > .clearfix > div { #image_directory_edit_form > div > .form_select {
float: left; float: left;
margin: 0 5% 0 0; margin: 0 5% 0 0;
} }
@ -1849,9 +1850,9 @@ input[name="serendipity[filter][fileCategory]"] {
} }
#template_options fieldset legend, #template_options fieldset legend,
#template_options fieldset > .clearfix, #template_options fieldset > .grouped,
.configure_plugin fieldset legend, .configure_plugin fieldset legend,
.configure_plugin fieldset > .clearfix, .configure_plugin fieldset > .grouped,
.configure_plugin .sequence_container, .configure_plugin .sequence_container,
.configuration_group .form_select label, .configuration_group .form_select label,
.configuration_group .form_multiselect label, .configuration_group .form_multiselect label,
@ -1862,15 +1863,12 @@ input[name="serendipity[filter][fileCategory]"] {
.configuration_group .form_field input, .configuration_group .form_field input,
.configuration_group .form_area textarea, .configuration_group .form_area textarea,
.configuration_group fieldset > fieldset legend, .configuration_group fieldset > fieldset legend,
.configuration_group fieldset > fieldset .clearfix,
#uploadform .form_select label, #uploadform .form_select label,
#uploadform .form_field label, #uploadform .form_field label,
#uploadform .form_select select, #uploadform .form_select select,
#uploadform .form_field input, #uploadform .form_field input,
#serendipity_plugin_config fieldset legend,
#serendipity_plugin_config fieldset > .clearfix,
#serendipity_category fieldset legend, #serendipity_category fieldset legend,
#serendipity_category fieldset > .clearfix { #serendipity_category fieldset > .grouped {
float: left; float: left;
margin-right: 2%; margin-right: 2%;
width: 48%; width: 48%;
@ -1992,14 +1990,14 @@ input[name="serendipity[filter][fileCategory]"] {
} }
#sort_entries .form_select, #sort_entries .form_select,
#filter_comments .clearfix > div, #filter_comments .inputs > div,
#serendipity_category > .clearfix > div, #serendipity_category > .inputs > div,
#serendipity_comment .form_field, #serendipity_comment .form_field,
#media_filter > div, #media_filter > div,
#media_pane_sort > .left, #media_pane_sort > .left,
#media_pane_sort > .center, #media_pane_sort > .center,
#media_pane_sort > .right, #media_pane_sort > .right,
#media_pane_sort > .clearfix > div { #media_pane_sort > .grouped > div {
float: left; float: left;
width: 33% ; width: 33% ;
} }