diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-31 08:51:09 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-09-01 14:15:41 +0200 |
commit | 5d375647a5690275318b1299f1d9d716cb96b038 (patch) | |
tree | 6bd6ad019ebc082fdcc57eb4434b306e4fba2f46 /core/css/apps.scss | |
parent | b455b07390ccfc8c00d5ca66817b83edaaf4ff7e (diff) | |
download | nextcloud-server-5d375647a5690275318b1299f1d9d716cb96b038.tar.gz nextcloud-server-5d375647a5690275318b1299f1d9d716cb96b038.zip |
Fix some styling issues with the new containers
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/css/apps.scss')
-rw-r--r-- | core/css/apps.scss | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/core/css/apps.scss b/core/css/apps.scss index 0bee1a7ba45..4cab3e49a36 100644 --- a/core/css/apps.scss +++ b/core/css/apps.scss @@ -117,6 +117,9 @@ kbd { /* APP-NAVIGATION ------------------------------------------------------------ */ /* Navigation: folder like structure */ #app-navigation:not(.vue) { + // We use fixed variable for the pill style as we have larger containers around nested list entries + --border-radius-pill: calc(var(--default-clickable-area) / 2); + width: variables.$navigation-width; z-index: 500; overflow-y: auto; @@ -252,10 +255,14 @@ kbd { display: inline-flex; flex-wrap: wrap; padding-left: 44px; + width: 100%; + margin-bottom: 3px; + &:hover, &:focus { &, > a { + border-radius: var(--border-radius-pill); background-color: var(--color-background-hover); } } @@ -263,6 +270,7 @@ kbd { a.selected { &, > a { + border-radius: var(--border-radius-pill); background-color: var(--color-primary-light); } } @@ -315,6 +323,7 @@ kbd { box-sizing: border-box; white-space: nowrap; text-overflow: ellipsis; + border-radius: var(--border-radius-pill); color: var(--color-main-text); opacity: .8; flex: 1 1 0px; @@ -445,9 +454,10 @@ kbd { -ms-transform: rotate(-90deg); transform: rotate(-90deg); z-index: 105; // above a, under button - background-color: var(--color-background-hover); border-radius: 50%; transition: opacity variables.$animation-quick ease-in-out; + + } /* force padding on link no matter if 'a' has an icon class */ @@ -459,6 +469,9 @@ kbd { &:before { opacity: 1; } + > a { + background-image: none; + } > .app-navigation-entry-bullet { background: transparent !important; } @@ -805,7 +818,7 @@ $min-content-width: variables.$breakpoint-mobile - variables.$navigation-width - background-color: transparent; box-shadow: none; border: 0; - border-radius: 0; + border-radius: var(--border-radius-pill); text-align: left; font-weight: normal; font-size: 100%; @@ -837,7 +850,6 @@ $min-content-width: variables.$breakpoint-mobile - variables.$navigation-width - &:focus-visible { box-shadow: 0 0 0 2px inset var(--color-primary) !important; - border-radius: var(--border-radius); background-position: 12px center; } } |