mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Sort out pixelegg/preference font-size
This commit is contained in:
parent
25b343be7c
commit
9d0a7f556b
@ -42,10 +42,7 @@ export default [sl_css, css`
|
||||
:root,
|
||||
:host,
|
||||
.sl-theme-light {
|
||||
--sl-font-size-medium: ${typeof egw != "undefined" && egw.preference && egw.preference('textsize', 'common') != '12' ? parseInt(egw.preference('textsize', 'common')) : 12}px;
|
||||
--sl-input-height-small: 24px;
|
||||
--sl-input-height-medium: 32px;
|
||||
--sl-button-font-size-medium: ${typeof egw != "undefined" && egw.preference && egw.preference('textsize', 'common') != '12' ? parseInt(egw.preference('textsize', 'common')) : 12}px;
|
||||
--sl-button-font-size-medium: var(--sl-font-size-medium);
|
||||
--sl-input-help-text-font-size-medium: var(--sl-font-size-medium);
|
||||
--sl-spacing-small: 0.1rem;
|
||||
--sl-spacing-medium: 0.5rem;
|
||||
|
@ -120,7 +120,12 @@ class pixelegg_framework extends Api\Framework\Ajax
|
||||
background-image: url($header);
|
||||
}
|
||||
";
|
||||
$textsize = $GLOBALS['egw_info']['user']['preferences']['common']['textsize'];
|
||||
$textsize = $GLOBALS['egw_info']['user']['preferences']['common']['textsize'] ?? '12';
|
||||
$ret['app_css'] .= "
|
||||
:root, :host, body {
|
||||
font-size: {$textsize}px;
|
||||
}
|
||||
";
|
||||
if (!empty($textsize) && is_numeric($textsize) && $textsize != '12')
|
||||
{
|
||||
$iconSize = $textsize+2;
|
||||
|
Loading…
Reference in New Issue
Block a user