summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-05-15 15:59:34 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2023-05-16 19:47:10 +0200
commitb30bfb57f3ebc9da2613b81bdda49770405d6990 (patch)
tree232e71230201aad04bac237ab7801bcb64c47b00 /apps
parent8d0fd6fa9dcec39db34c0dd350ac7adc40361787 (diff)
downloadnextcloud-server-b30bfb57f3ebc9da2613b81bdda49770405d6990.tar.gz
nextcloud-server-b30bfb57f3ebc9da2613b81bdda49770405d6990.zip
feat(theming): Add border radius rounded css variable so `body-container-radius` can be used on mobile devices
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/theming/css/default.css1
-rw-r--r--apps/theming/lib/Themes/DefaultTheme.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/theming/css/default.css b/apps/theming/css/default.css
index ac7c67c8408..e97e4e98216 100644
--- a/apps/theming/css/default.css
+++ b/apps/theming/css/default.css
@@ -42,6 +42,7 @@
--animation-slow: 300ms;
--border-radius: 3px;
--border-radius-large: 10px;
+ --border-radius-rounded: 28px;
--border-radius-pill: 100px;
--default-clickable-area: 44px;
--default-line-height: 24px;
diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php
index 0a4ac44afb6..3fcaa7cf58f 100644
--- a/apps/theming/lib/Themes/DefaultTheme.php
+++ b/apps/theming/lib/Themes/DefaultTheme.php
@@ -172,6 +172,7 @@ class DefaultTheme implements ITheme {
// Default variables --------------------------------------------
'--border-radius' => '3px',
'--border-radius-large' => '10px',
+ '--border-radius-rounded' => '28px',
// pill-style button, value is large so big buttons also have correct roundness
'--border-radius-pill' => '100px',