simplify previous patch

The default 1 rem is fine, but we need to apply the default font size
to the html element instead of the body for the definition of rem to
update.

Fixes #1174
This commit is contained in:
Damien Elmes 2021-05-19 19:06:20 +10:00
parent b20381afad
commit fdd162a7b9
2 changed files with 2 additions and 6 deletions

View file

@ -443,7 +443,8 @@ div[contenteditable="true"]:focus {
lang_dir = "ltr" lang_dir = "ltr"
return f""" return f"""
body {{ zoom: {zoom}; background: {background}; direction: {lang_dir}; {font} }} body {{ zoom: {zoom}; background: {background}; direction: {lang_dir}; }}
html {{ {font} }}
{button_style} {button_style}
:root {{ --window-bg: {background} }} :root {{ --window-bg: {background} }}
:root[class*=night-mode] {{ --window-bg: {background} }} :root[class*=night-mode] {{ --window-bg: {background} }}

View file

@ -48,8 +48,3 @@ html {
code { code {
color: var(--flag1-bg); color: var(--flag1-bg);
} }
// override the default form sizes
input.form-control, select.form-select {
font-size: inherit;
}