Skip to content

Commit

Permalink
Feat: add border width variable
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Ambrosini <marcoambrosini@proton.me>
  • Loading branch information
marcoambrosini committed May 15, 2024
1 parent 6a4e12d commit 9d1ce66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/theming/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions apps/theming/lib/Themes/DefaultTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ 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',
Expand Down

0 comments on commit 9d1ce66

Please sign in to comment.