aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-05-29 15:02:46 +0200
committerGitHub <noreply@github.com>2024-05-29 15:02:46 +0200
commite5d25dcd52c4bb04b14fa7aa9be657e476248938 (patch)
treee8f76f24aae6a0f7bb811afc44f2823ea80dc94e /apps/theming
parenta7a055726edd366db4092c6c43b778c19f55f63f (diff)
parent9ebbd4b1a2437c84e9a02817e1b2c0f963243488 (diff)
downloadnextcloud-server-e5d25dcd52c4bb04b14fa7aa9be657e476248938.tar.gz
nextcloud-server-e5d25dcd52c4bb04b14fa7aa9be657e476248938.zip
Merge pull request #45247 from nextcloud/add-border-width
Add variable for inputs border width
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/css/default.css3
-rw-r--r--apps/theming/lib/Themes/DefaultTheme.php3
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/theming/css/default.css b/apps/theming/css/default.css
index 43c7165fe8f..89659ab3ea9 100644
--- a/apps/theming/css/default.css
+++ b/apps/theming/css/default.css
@@ -49,6 +49,9 @@
--default-font-size: 15px;
--animation-quick: 100ms;
--animation-slow: 300ms;
+ /** Border width for input elements such as text fields and selects */
+ --border-width-input: 1px;
+ --border-width-input-focused: 2px;
--border-radius: 3px;
--border-radius-large: 10px;
--border-radius-rounded: 28px;
diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php
index 390a8f5dddb..7797a60a4f1 100644
--- a/apps/theming/lib/Themes/DefaultTheme.php
+++ b/apps/theming/lib/Themes/DefaultTheme.php
@@ -180,6 +180,9 @@ class DefaultTheme implements ITheme {
'--animation-slow' => '300ms',
// Default variables --------------------------------------------
+ // Border width for input elements such as text fields and selects
+ '--border-width-input' => '1px',
+ '--border-width-input-focused' => '2px',
'--border-radius' => '3px',
'--border-radius-large' => '10px',
'--border-radius-rounded' => '28px',