Prepare staticpages for 2.x backend changes

This commit is contained in:
Matthias Mees 2016-10-21 20:05:25 +02:00
parent 83ef4330bc
commit e4ee83df09
3 changed files with 152 additions and 135 deletions

View file

@ -27,8 +27,9 @@
<input type="submit" name="serendipity[SAVECONF]" value="{$CONST.SAVE}">
</div>
<section class="staticpage_structure">
<div class="staticpage_section equal_heights">
<div class="staticpage_container">
<section class="staticpage_section staticpage_structure">
<div class="equal_heights">
<h4>{$CONST.STATICPAGE_SECTION_STRUCT}</h4>
<div class="form_field">
@ -63,8 +64,8 @@
</div>
</section>
<section class="staticpage_access">
<div class="staticpage_section equal_heights">
<section class="staticpage_section staticpage_access">
<div class="equal_heights">
<h4>{$CONST.STATICPAGE_SECTION_ACCESS}</h4>
<div class="form_field">
@ -99,8 +100,8 @@
</div>
</section>
<section class="staticpage_meta">
<div class="staticpage_section equal_heights">
<section class="staticpage_section staticpage_meta">
<div class="equal_heights">
<h4>{$CONST.STATICPAGE_SECTION_META}</h4>
<div class="form_field">
@ -130,8 +131,8 @@
</div>
</section>
<section class="staticpage_options">
<div class="staticpage_section equal_heights">
<section class="staticpage_section staticpage_options">
<div class="equal_heights">
<h4>{$CONST.STATICPAGE_SECTION_OPT}</h4>
<fieldset class="clearfix">
@ -155,11 +156,12 @@
</fieldset>
</div>
</section>
</div>
{* EXAMPLE FOR CUSTOM STATICPAGE PROPERTIES
<section class="staticpage_custom">
<div class="staticpage_section equal_heights">
<section class="staticpage_section staticpage_custom">
<div class="equal_heights">
<h4>Custom</h4>
<div class="form_select">

View file

@ -91,7 +91,7 @@ class serendipity_event_staticpage extends serendipity_event
$propbag->add('page_configuration', $this->config);
$propbag->add('type_configuration', $this->config_types);
$propbag->add('author', 'Marco Rinck, Garvin Hicking, David Rolston, Falk Doering, Stephan Manske, Pascal Uhlmann, Ian, Don Chambers');
$propbag->add('version', '4.11');
$propbag->add('version', '4.12');
$propbag->add('requirements', array(
'serendipity' => '2.0',
'smarty' => '2.6.7',

View file

@ -189,26 +189,41 @@
max-width: 30em;
}
.staticpage_structure,
.staticpage_access,
.staticpage_meta,
.staticpage_options {
.no-flexbox .staticpage_structure,
.no-flexbox .staticpage_access,
.no-flexbox .staticpage_meta,
.no-flexbox .staticpage_options {
box-sizing: border-box;
float: left;
width: 50%;
}
.staticpage_structure,
.staticpage_meta {
.no-flexbox .staticpage_structure,
.no-flexbox .staticpage_meta {
padding-right: .5em;
}
.staticpage_access,
.staticpage_options {
.no-flexbox .staticpage_access,
.no-flexbox .staticpage_options {
padding-left: .5em;
}
.staticpage_save {
.no-flexbox .staticpage_save {
clear: both;
}
.staticpage_container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.staticpage_section {
flex: 0 0 48%;
margin: 0 2% 1em 0;
}
.staticpage_section:nth-of-type(even) {
margin: 0 0 1em 2%;
}
}