Skip to content

Commit

Permalink
Merge pull request #45818 from nextcloud/feat/add-new-clickable-area-…
Browse files Browse the repository at this point in the history
…variables

Feat: add new clickable area variables
  • Loading branch information
marcoambrosini authored Jun 14, 2024
2 parents 54f3dfe + fddb2f0 commit 018a0ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/theming/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@
/* Border radius of interactive elements such as buttons, input, navigation and list items. Available since Nextcloud 30. */
--border-radius-element: 8px;
--border-radius-pill: 100px;
--default-clickable-area: 44px;
--default-clickable-area: 34px;
--clickable-area-large: 48px;
--clickable-area-small: 24px;
--default-line-height: 24px;
--default-grid-baseline: 4px;
--header-height: 50px;
Expand Down
4 changes: 3 additions & 1 deletion apps/theming/lib/Themes/DefaultTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ public function getCSSVariables(): array {
// pill-style button, value is large so big buttons also have correct roundness
'--border-radius-pill' => '100px',

'--default-clickable-area' => '44px',
'--default-clickable-area' => '34px',
'--clickable-area-large' => '48px',
'--clickable-area-small' => '24px',
'--default-line-height' => '24px',
'--default-grid-baseline' => '4px',

Expand Down

0 comments on commit 018a0ae

Please sign in to comment.