summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMarco <marcoambrosini@pm.me>2024-07-31 17:20:27 +0200
committerGitHub <noreply@github.com>2024-07-31 17:20:27 +0200
commitb17508adf5f881c47e5c07256b2deee98f240442 (patch)
treeffe99391bcd59c2b2ebc7e0cfef44a85aa05b2c3 /apps
parent019c4fe958053a92314b9cb0b4acbc755d74471e (diff)
parente3fa5fe13638c2c7c1ba1e3f9425433435e0ad8e (diff)
downloadnextcloud-server-b17508adf5f881c47e5c07256b2deee98f240442.tar.gz
nextcloud-server-b17508adf5f881c47e5c07256b2deee98f240442.zip
Merge pull request #46876 from nextcloud/feat/update-line-height
Update line height
Diffstat (limited to 'apps')
-rw-r--r--apps/theming/css/default.css2
-rw-r--r--apps/theming/lib/Themes/DefaultTheme.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/css/default.css b/apps/theming/css/default.css
index 63633da9511..c742f05fba0 100644
--- a/apps/theming/css/default.css
+++ b/apps/theming/css/default.css
@@ -50,7 +50,7 @@
--font-face: system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, Ubuntu, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
--default-font-size: 15px;
/* 1.5 x font-size for accessibility */
- --default-line-height: 24px;
+ --default-line-height: 1.5;
--animation-quick: 100ms;
--animation-slow: 300ms;
/** Border width for input elements such as text fields and selects */
diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php
index 9c093969e76..47f9904207d 100644
--- a/apps/theming/lib/Themes/DefaultTheme.php
+++ b/apps/theming/lib/Themes/DefaultTheme.php
@@ -161,7 +161,7 @@ class DefaultTheme implements ITheme {
'--font-face' => "system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, Ubuntu, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",
'--default-font-size' => '15px',
// 1.5 * font-size for accessibility
- '--default-line-height' => '24px',
+ '--default-line-height' => '1.5',
// TODO: support "(prefers-reduced-motion)"
'--animation-quick' => '100ms',