diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-05-26 16:39:03 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-06-06 11:29:43 +0200 |
commit | 35da64a51c14ebe17f0dc6897706b72351de1451 (patch) | |
tree | 73d205068f3a711ea3fab353d87a7b918cf98c31 /apps/files/css/files.scss | |
parent | f57cf4706e04ff7bacc2fa0964a57d466641d415 (diff) | |
download | nextcloud-server-35da64a51c14ebe17f0dc6897706b72351de1451.tar.gz nextcloud-server-35da64a51c14ebe17f0dc6897706b72351de1451.zip |
fix(files): Add border around favorite marker to ensure contrast requirements are met
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files/css/files.scss')
-rw-r--r-- | apps/files/css/files.scss | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss index 09c0cd97913..0bd8495c9ac 100644 --- a/apps/files/css/files.scss +++ b/apps/files/css/files.scss @@ -585,10 +585,25 @@ table td.selection { .files-fileList tr td.filename .favorite-mark { position: absolute; display: block; - top: -6px; - right: -6px; + top: -8px; + right: -8px; line-height: 100%; text-align: center; + &.permanent { + // Create background around the favorite marker to ensure there is enough contrast + background-color: var(--color-main-background); + mask: var(--icon-star-rounded-white) no-repeat; + mask-size: 22px 22px; + + width: 22px; + height: 22px; + display: flex; + align-content: center; + justify-content: center; + } +} +.files-fileList tr:hover td.filename .favorite-mark.permanent { + background-color: var(--color-background-hover); } #uploadsize-message,#delete-confirm { display:none; } @@ -1083,10 +1098,9 @@ table.dragshadow td.size { * Position is inherited from the selection while in grid view */ .favorite-mark { - padding: $grid-pad; left: auto; - top: -22px; // center in corner of thumbnail - right: -22px; // center in corner of thumbnail + top: -11px; // center in corner of thumbnail + right: -11px; // center in corner of thumbnail } } } @@ -1221,10 +1235,7 @@ table.dragshadow td.size { top: -8px; // half the checkbox width, center on corner of thumbnail left: -8px; // half the checkbox width, center on corner of thumbnail display: flex; - width: 44px; - height: 44px; z-index: 10; - background: transparent; label { width: 44px; |