mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
remove left_align mode
This commit is contained in:
parent
edc262f5af
commit
030d703a05
5 changed files with 3 additions and 24 deletions
|
@ -1,8 +0,0 @@
|
|||
main {
|
||||
margin-left: 0px;
|
||||
}
|
||||
|
||||
aside#region_3 {
|
||||
width: auto;
|
||||
padding: 0px 0px 0px 0px;
|
||||
}
|
|
@ -52,7 +52,6 @@ class RedbasicConfig {
|
|||
$arr['radius'] = get_pconfig(local_channel(),'redbasic', 'radius' );
|
||||
$arr['shadow'] = get_pconfig(local_channel(),'redbasic', 'photo_shadow' );
|
||||
$arr['converse_width']=get_pconfig(local_channel(),"redbasic","converse_width");
|
||||
$arr['align_left']=get_pconfig(local_channel(),"redbasic","align_left");
|
||||
$arr['top_photo']=get_pconfig(local_channel(),"redbasic","top_photo");
|
||||
$arr['reply_photo']=get_pconfig(local_channel(),"redbasic","reply_photo");
|
||||
return $this->form($arr);
|
||||
|
@ -79,7 +78,6 @@ class RedbasicConfig {
|
|||
set_pconfig(local_channel(), 'redbasic', 'radius', $_POST['redbasic_radius']);
|
||||
set_pconfig(local_channel(), 'redbasic', 'photo_shadow', $_POST['redbasic_shadow']);
|
||||
set_pconfig(local_channel(), 'redbasic', 'converse_width', $_POST['redbasic_converse_width']);
|
||||
set_pconfig(local_channel(), 'redbasic', 'align_left', $_POST['redbasic_align_left']);
|
||||
set_pconfig(local_channel(), 'redbasic', 'top_photo', $_POST['redbasic_top_photo']);
|
||||
set_pconfig(local_channel(), 'redbasic', 'reply_photo', $_POST['redbasic_reply_photo']);
|
||||
}
|
||||
|
@ -112,7 +110,6 @@ class RedbasicConfig {
|
|||
'$radius' => array('redbasic_radius', t('Set radius of corners'), $arr['radius'], t('Example: 4px')),
|
||||
'$shadow' => array('redbasic_shadow', t('Set shadow depth of photos'), $arr['shadow']),
|
||||
'$converse_width' => array('redbasic_converse_width',t('Set maximum width of content region in pixel'),$arr['converse_width'], t('Leave empty for default width')),
|
||||
'$align_left' => array('redbasic_align_left',t('Left align page content'),$arr['align_left'], '', array(t('No'),t('Yes'))),
|
||||
'$top_photo' => array('redbasic_top_photo', t('Set size of conversation author photo'), $arr['top_photo']),
|
||||
'$reply_photo' => array('redbasic_reply_photo', t('Set size of followup author photos'), $arr['reply_photo']),
|
||||
));
|
||||
|
|
|
@ -26,7 +26,6 @@ if(! App::$install) {
|
|||
$radius = get_pconfig($uid, 'redbasic', 'radius');
|
||||
$shadow = get_pconfig($uid,'redbasic','photo_shadow');
|
||||
$converse_width=get_pconfig($uid,'redbasic','converse_width');
|
||||
$align_left=get_pconfig($uid,'redbasic','align_left');
|
||||
$top_photo=get_pconfig($uid,'redbasic','top_photo');
|
||||
$reply_photo=get_pconfig($uid,'redbasic','reply_photo');
|
||||
}
|
||||
|
@ -117,10 +116,6 @@ if(file_exists('view/theme/redbasic/css/style.css')) {
|
|||
$x .= file_get_contents('view/theme/redbasic/css/narrow_navbar.css');
|
||||
}
|
||||
|
||||
if($align_left && file_exists('view/theme/redbasic/css/align_left.css')) {
|
||||
$x .= file_get_contents('view/theme/redbasic/css/align_left.css');
|
||||
}
|
||||
|
||||
if($schemecss) {
|
||||
$x .= $schemecss;
|
||||
}
|
||||
|
@ -128,12 +123,8 @@ if(file_exists('view/theme/redbasic/css/style.css')) {
|
|||
$aside_width = 288;
|
||||
|
||||
// left aside and right aside are 285px + converse width
|
||||
if($align_left) {
|
||||
$main_width = (($aside_width) + intval($converse_width));
|
||||
}
|
||||
else {
|
||||
$main_width = (($aside_width * 2) + intval($converse_width));
|
||||
}
|
||||
$main_width = (($aside_width * 2) + intval($converse_width));
|
||||
|
||||
// prevent main_width smaller than 768px
|
||||
$main_width = (($main_width < 768) ? 768 : $main_width);
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
{{include file="field_checkbox.tpl" field=$align_left}}
|
||||
{{include file="field_checkbox.tpl" field=$narrow_navbar}}
|
||||
{{include file="field_input.tpl" field=$converse_width}}
|
||||
{{include file="field_input.tpl" field=$font_size}}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<style>
|
||||
.notification-content {
|
||||
max-height: 60vh;
|
||||
max-height: 70vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue