refactor: update font size handling in DefaultPageLayout.php and default-base.css to utilize CSS variables for improved customization

This commit is contained in:
Zack Spear
2025-04-04 20:09:31 -07:00
parent ae52bda45a
commit 35fec239b2
2 changed files with 4 additions and 4 deletions
@@ -64,10 +64,10 @@ function annotate($text) {echo "\n<!--\n",str_repeat("#",strlen($text)),"\n$text
<?if ($backgnd):?>
--customer-header-background-color: #<?=$backgnd?>;
<?endif;?>
<?if ($display['font']):?>
--custom-font-size: <?=$display['font']?>%;
<?endif;?>
}
<?if ($display['font']):?>
html{font-size:<?=$display['font']?>%}
<?endif;?>
<?
$nchan = ['webGui/nchan/notify_poller','webGui/nchan/session_check'];
@@ -1,6 +1,6 @@
html {
font-family: clear-sans, sans-serif;
font-size: 62.5%;
font-size: var(--custom-font-size, 62.5%);
height: 100%;
}
body {