Skip to content

Commit

Permalink
Recduce border radii of navigation items and buttons
Browse files Browse the repository at this point in the history
Signed-off-by: Marco <marcoambrosini@icloud.com>
  • Loading branch information
marcoambrosini committed Apr 29, 2024
1 parent 3febf1b commit 1b6dadd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/assets/NcAppNavigationItem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
min-height: $clickable-area;
transition: background-color var(--animation-quick) ease-in-out;
transition: background-color 200ms ease-in-out;
border-radius: var(--border-radius-pill);
border-radius: var(--border-radius-large);

&-wrapper {
position: relative;
Expand Down Expand Up @@ -117,7 +117,7 @@
&:focus-visible {
box-shadow: 0 0 0 4px var(--color-main-background);
outline: 2px solid var(--color-main-text);
border-radius: var(--border-radius-pill);
border-radius: var(--border-radius-large);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/NcButton/NcButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ export default {
span {
cursor: pointer;
}
border-radius: math.div($clickable-area, 2);
border-radius: var(--border-radius-large);
transition-property: color, border-color, background-color;
transition-duration: 0.1s;
transition-timing-function: linear;
Expand Down Expand Up @@ -841,7 +841,7 @@ export default {
box-shadow: 0 0 0 4px var(--color-main-background) !important;
&.button-vue--vue-tertiary-on-primary {
outline: 2px solid var(--color-primary-element-text);
border-radius: var(--border-radius);
border-radius: var(--border-radius-large);
background-color: transparent;
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/components/NcListItem/NcListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -801,9 +801,7 @@ export default {
// 4px padding for the focus-visible styles. Width is reduced to compensate it
margin: 4px;
width: calc(100% - 8px);
// Fix for border-radius being too large for 3-line entries like in Mail
// 44px avatar size / 2 + 8px padding, and 2px for better visual quality
border-radius: 32px;
border-radius: var(--border-radius-large);
cursor: pointer;
transition: background-color var(--animation-quick) ease-in-out;
list-style: none;
Expand Down

0 comments on commit 1b6dadd

Please sign in to comment.