mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
Framework WIP:
- Set preferred font size & system fonts
This commit is contained in:
parent
525bdccd91
commit
ccccf95b39
@ -147,4 +147,26 @@ class kdots_framework extends Api\Framework\Ajax
|
||||
$title .
|
||||
'</sl-menu-item>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Set site-wide CSS like preferred font-size
|
||||
*
|
||||
* @return array
|
||||
* @see Api\Framework::_get_css()
|
||||
*/
|
||||
public function _get_css()
|
||||
{
|
||||
$ret = parent::_get_css();
|
||||
|
||||
$textsize = $GLOBALS['egw_info']['user']['preferences']['common']['textsize'] ?? '12';
|
||||
$ret['app_css'] .= "
|
||||
:root, :host, body, input {
|
||||
font-size: {$textsize}px;
|
||||
font-family: egroupware, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
||||
Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
||||
}
|
||||
";
|
||||
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user