aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-05-06 19:56:37 +0000
committerMario <mario@mariovavti.com>2020-05-06 19:56:37 +0000
commitff3ff2478dabc642def14193a01649a384f3a88a (patch)
treecd30ebcb8b0eae95c66ec27b227ddc5c82cc524a /view/theme
parent06d1cf83d2b1acfef5529fe388d2502bea381881 (diff)
downloadvolse-hubzilla-ff3ff2478dabc642def14193a01649a384f3a88a.tar.gz
volse-hubzilla-ff3ff2478dabc642def14193a01649a384f3a88a.tar.bz2
volse-hubzilla-ff3ff2478dabc642def14193a01649a384f3a88a.zip
allow to set different values for left and right aside width in $theme.php
Diffstat (limited to 'view/theme')
-rw-r--r--view/theme/redbasic/css/style.css21
-rw-r--r--view/theme/redbasic/php/style.php9
2 files changed, 17 insertions, 13 deletions
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css
index 1ababecfc..a51bf4e24 100644
--- a/view/theme/redbasic/css/style.css
+++ b/view/theme/redbasic/css/style.css
@@ -22,18 +22,21 @@ body {
margin: 0px;
}
-aside {
- width: $aside_widthpx;
- min-width: $aside_widthpx;
- max-width: $aside_widthpx;
+aside#region_1 {
+ border-right: 1px solid transparent;
+ width: $left_aside_widthpx;
+ min-width: $left_aside_widthpx;
+ max-width: $left_aside_widthpx;
}
-aside #region_1 {
+aside#region_3 {
border-right: 1px solid transparent;
+ width: $right_aside_widthpx;
+ max-width: $right_aside_widthpx;
}
-aside #left_aside_wrapper,
-aside #right_aside_wrapper {
+aside#left_aside_wrapper,
+aside#right_aside_wrapper {
margin-bottom: 10px;
}
@@ -1516,8 +1519,8 @@ blockquote {
}
main {
- left: -$aside_widthpx;
- width: calc( 100% + $aside_widthpx );
+ left: -$left_aside_widthpx;
+ width: calc( 100% + $left_aside_widthpx );
}
main.region_1-on {
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php
index 91cc0b85b..d278aa309 100644
--- a/view/theme/redbasic/php/style.php
+++ b/view/theme/redbasic/php/style.php
@@ -120,10 +120,10 @@ if(file_exists('view/theme/redbasic/css/style.css')) {
$x .= $schemecss;
}
- $aside_width = 288;
+ $left_aside_width = 288;
+ $right_aside_width = 288;
- // left aside and right aside are 285px + converse width
- $main_width = (($aside_width * 2) + intval($converse_width));
+ $main_width = $left_aside_width + $right_aside_width + intval($converse_width);
// prevent main_width smaller than 768px
$main_width = (($main_width < 768) ? 768 : $main_width);
@@ -150,7 +150,8 @@ if(file_exists('view/theme/redbasic/css/style.css')) {
'$pmenu_top' => $pmenu_top,
'$pmenu_reply' => $pmenu_reply,
'$main_width' => $main_width,
- '$aside_width' => $aside_width
+ '$left_aside_width' => $left_aside_width,
+ '$right_aside_width' => $right_aside_width
);
echo str_replace(array_keys($options), array_values($options), $x);