Display settings: new setting "width"

This commit is contained in:
bergware
2023-11-05 12:32:49 +01:00
parent b01c0b9aff
commit 0669cacb6a

View File

@@ -49,15 +49,9 @@ function annotate($text) {echo "\n<!--\n",str_repeat("#",strlen($text)),"\n$text
<link type="text/css" rel="stylesheet" href="<?autov("/webGui/styles/defaultpagelayout.css")?>">
<style>
<?if (empty($display['width'])):?>
@media (max-width:1280px){#displaybox{min-width:1260px;max-width:1260px;margin:0}}
@media (max-width:1280px){#displaybox{min-width:1260px;margin:0}}
@media (min-width:1281px){#displaybox{min-width:1260px;margin:0 <?=$themes1?'10px':'auto'?>}}
@media (min-width:1921px){#displaybox{min-width:1260px;max-width:1920px;margin:0 auto}}
<?else:?>
@media (max-width:1280px){#displaybox{margin:0}}
@media (min-width:1281px){#displaybox{margin:0 <?=$themes1?'10px':'auto'?>}}
@media (min-width:1921px){#displaybox{margin:0 <?=$themes1?'20px':'auto'?>}
<?endif;?>
@media (min-width:1921px){#displaybox{min-width:1260px;<?=empty($display['width'])?'max-width:1920px;':''?>margin:0 <?=$themes1?'20px':'auto'?>}}
<?if ($display['font']):?>
html{font-size:<?=$display['font']?>%}
<?endif;?>