Skip to content

Commit dff25e0

Browse files
committed
Fixes nextcloud#24450 by making the icon grey only on hover and white otherwise.
1 parent 7502f35 commit dff25e0

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

apps/theming/css/theming.scss

+1-5
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,10 @@ $invert: luma($color-primary) > 0.6;
9292
}
9393

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

99-
.icon-file-white, .icon-filetype-text-white {
100-
background-image: url(./img/core/filetypes/text-white.svg?v=#{$theming-cachebuster});
101-
}
102-
10399
.icon-folder, .icon-filetype-folder {
104100
background-image: url(./img/core/filetypes/folder.svg?v=#{$theming-cachebuster});
105101
}

core/css/icons.scss

+5-2
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,15 @@ audio, canvas, embed, iframe, img, input, object, video {
384384
}
385385

386386
.icon-file,
387-
.icon-file-white,
388-
.icon-filetype-text,
389387
.icon-filetype-text {
390388
@include icon-color('text', 'filetypes', #969696, 1, true);
391389
}
392390

391+
.icon-file-white,
392+
.icon-filetype-text-white {
393+
@include icon-color('text', 'filetypes', $color-white, 1, true);
394+
}
395+
393396
.icon-filetype-file {
394397
@include icon-color('file', 'filetypes', #969696, 1, true);
395398
}

0 commit comments

Comments
 (0)