From 6b42c0b869dcfc141f83f3e603c8376b384fcf72 Mon Sep 17 00:00:00 2001 From: Marco Ambrosini Date: Thu, 16 May 2024 10:18:12 +0200 Subject: [PATCH] feat(theming): Add variable for border width Signed-off-by: Marco Ambrosini --- apps/theming/css/default.css | 3 +++ apps/theming/lib/Themes/DefaultTheme.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/apps/theming/css/default.css b/apps/theming/css/default.css index 201ec24291264..1eea10311b421 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 68038f053e397..c205d0094d837 100644 --- a/apps/theming/lib/Themes/DefaultTheme.php +++ b/apps/theming/lib/Themes/DefaultTheme.php @@ -186,6 +186,9 @@ public function getCSSVariables(): array { '--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',