diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-09-18 18:16:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-18 18:16:53 +0200 |
commit | 2f08918edeef049191700b6f631ddeb59a85aae1 (patch) | |
tree | 1b1c45362955f9f29a481189892bbf76c6e1475b /core | |
parent | c364b0cb193f66ad15e2950c27113b40037d1bf6 (diff) | |
parent | b9807e06337a698db5675558a55c3cc3e7e50c9b (diff) | |
download | nextcloud-server-2f08918edeef049191700b6f631ddeb59a85aae1.tar.gz nextcloud-server-2f08918edeef049191700b6f631ddeb59a85aae1.zip |
Merge pull request #22924 from nextcloud/design/fix-appname-display
Make sure most app names don’t ellipsize, fix #22845, fix #22219
Diffstat (limited to 'core')
-rw-r--r-- | core/css/header.scss | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/core/css/header.scss b/core/css/header.scss index e4a22141b06..e87f5f78154 100644 --- a/core/css/header.scss +++ b/core/css/header.scss @@ -433,7 +433,7 @@ nav[role='navigation'] { li { position: relative; cursor: pointer; - margin: 0 2px; + padding: 0 2px; display: flex; justify-content: center; @@ -446,6 +446,9 @@ nav[role='navigation'] { align-items: center; justify-content: center; opacity: .6; + // Make sure most app names don’t ellipsize + letter-spacing: -0.5px; + font-size: 12px; } /* focused app visual feedback */ @@ -453,19 +456,28 @@ nav[role='navigation'] { a:focus, a.active { opacity: 1; + font-weight: bold; + } + + // Text size back to normal for hover/focus + &:hover a, + a:focus { + font-size: 14px; } &:hover a + span, a:focus + span, &:hover span, &:focus span, - a:focus span { + a:focus span, + a.active span { display: inline-block; text-overflow: initial; width: auto; overflow: hidden; padding: 0 5px; z-index: 2; + margin-bottom: -1px; // for vertical alignment } /* hidden apps menu */ @@ -482,7 +494,7 @@ nav[role='navigation'] { position: absolute; color: var(--color-primary-text); bottom: 2px; - width: calc(100% - 4px); + width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; |