aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorMarco Ambrosini <marcoambrosini@proton.me>2024-05-16 10:18:12 +0200
committerJosh <josh.t.richards@gmail.com>2024-05-28 17:42:20 -0400
commit9ebbd4b1a2437c84e9a02817e1b2c0f963243488 (patch)
tree27cbeed3858fa36b43e400d69fb6c4b10346c5b9 /apps/theming
parentddb840c36babd02abedce7da41b0c04849009edb (diff)
downloadnextcloud-server-9ebbd4b1a2437c84e9a02817e1b2c0f963243488.tar.gz
nextcloud-server-9ebbd4b1a2437c84e9a02817e1b2c0f963243488.zip
feat(theming): Add variable for border width
Signed-off-by: Marco Ambrosini <marcoambrosini@proton.me>
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 6a5f91af864..09fe02426d4 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 c48cc08f30b..c8b4d66c9bc 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',