mirror of
https://github.com/unraid/webgui.git
synced 2026-05-03 16:29:45 -05:00
refactor: update font size handling in DefaultPageLayout.php and default-base.css to utilize CSS variables for improved customization
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user