diff options
Diffstat (limited to 'apps/files/css/files.scss')
-rw-r--r-- | apps/files/css/files.scss | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss index 4a59502bc6d..f5cb130cfe3 100644 --- a/apps/files/css/files.scss +++ b/apps/files/css/files.scss @@ -502,7 +502,7 @@ table td.filename .uploadtext { display: inline-block; float: left; } -#fileList tr td.filename .action-favorite:not(.menuitem) { +#fileList tr td.filename .favorite-mark { display: block; float: left; width: 30px; @@ -569,7 +569,8 @@ a.action > img { margin-bottom: -1px; } -#fileList a.action { +#fileList a.action, +#fileList div.favorite-mark { display: inline; padding: 17px 8px; line-height: 50px; @@ -617,7 +618,7 @@ a.action > img { padding-left: 6px; } -#fileList .action.action-favorite.permanent { +#fileList .favorite-mark.permanent { opacity: 1; } @@ -716,12 +717,24 @@ table.dragshadow td.size { #filestable .filename .action .icon, #filestable .selectedActions a .icon, +#filestable .filename .favorite-mark .icon, #controls .actions .button .icon { display: inline-block; vertical-align: middle; background-size: 16px 16px; } +#filestable .filename .favorite-mark { + // Override default icons to always hide the star icon and always show the + // starred icon even when hovered or focused. + & .icon-star { + background-image: none; + } + & .icon-starred { + background-image: url('../../../core/img/actions/starred.svg?v=1'); + } +} + #filestable .filename .action .icon.hidden, #filestable .selectedActions a .icon.hidden, #controls .actions .button .icon.hidden { |