add fs_x-small and fs_xx-small and ajust css em settings

This commit is contained in:
Harald Bamberger
2025-11-19 13:01:47 +01:00
parent 1cc77c8eba
commit bab15bc5b2
3 changed files with 51 additions and 3 deletions
@@ -87,6 +87,8 @@ class Config extends FHCAPI_Controller
"label" => $this->p->t('stv', 'settings_fontsize'),
"value" => $data['stv_font_size'] ?? "fs_normal",
"options" => [
"fs_xx-small" => $this->p->t('stv', 'settings_fontsize_xx-small'),
"fs_x-small" => $this->p->t('stv', 'settings_fontsize_x-small'),
"fs_small" => $this->p->t('stv', 'settings_fontsize_small'),
"fs_normal" => $this->p->t('stv', 'settings_fontsize_normal'),
"fs_big" => $this->p->t('stv', 'settings_fontsize_big'),
@@ -118,7 +120,7 @@ class Config extends FHCAPI_Controller
$this->form_validation->set_rules(
'font_size',
$this->p->t('stv', 'settings_fontsize'),
'required|in_list[fs_small,fs_normal,fs_big,fs_huge]'
'required|in_list[fs_xx-small,fs_x-small,fs_small,fs_normal,fs_big,fs_huge]'
);
Events::trigger('stv_config_validation', $this->form_validation);
+8 -2
View File
@@ -11,8 +11,14 @@
html {
font-size: .875em;
}
html.fs_xx-small {
font-size: .5em;
}
html.fs_x-small {
font-size: .625em;
}
html.fs_small {
font-size: .5em;
font-size: .75em;
}
html.fs_normal {
font-size: .875em;
@@ -21,7 +27,7 @@ html.fs_big {
font-size: 1em;
}
html.fs_huge {
font-size: 1.4em;
font-size: 1.125em;
}
#appMenu {
+40
View File
@@ -38960,6 +38960,46 @@ array(
)
)
),
array(
'app' => 'core',
'category' => 'stv',
'phrase' => 'settings_fontsize_xx-small',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Sehr Klein',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Very Small',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'stv',
'phrase' => 'settings_fontsize_x-small',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Kleiner',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Smaller',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'stv',