Skip to content

Commit

Permalink
Fixes nextcloud#24450 by making the icon grey only on hover and white…
Browse files Browse the repository at this point in the history
… otherwise.
  • Loading branch information
RafaOP committed May 29, 2021
1 parent 7502f35 commit 51a9543
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
6 changes: 1 addition & 5 deletions apps/theming/css/theming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,10 @@ $invert: luma($color-primary) > 0.6;
}

/* Colorized svg images */
.icon-file, .icon-filetype-text, .icon-file-white:hover {
.icon-file, .icon-filetype-text, .icon-file-white:hover, .icon-file-white:focus {
background-image: url(./img/core/filetypes/text.svg?v=#{$theming-cachebuster});
}

.icon-file-white, .icon-filetype-text-white {
background-image: url(./img/core/filetypes/text-white.svg?v=#{$theming-cachebuster});
}

.icon-folder, .icon-filetype-folder {
background-image: url(./img/core/filetypes/folder.svg?v=#{$theming-cachebuster});
}
Expand Down
7 changes: 5 additions & 2 deletions core/css/icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,15 @@ audio, canvas, embed, iframe, img, input, object, video {
}

.icon-file,
.icon-file-white,
.icon-filetype-text,
.icon-filetype-text {
@include icon-color('text', 'filetypes', #969696, 1, true);
}

.icon-file-white,
.icon-filetype-text-white {
@include icon-color('text', 'filetypes', $color-white, 1, true);
}

.icon-filetype-file {
@include icon-color('file', 'filetypes', #969696, 1, true);
}
Expand Down
9 changes: 0 additions & 9 deletions core/img/filetypes/text-white.svg

This file was deleted.

0 comments on commit 51a9543

Please sign in to comment.