Skip to content

Commit 8c5717f

Browse files
committed
Fixes #24450 by making the icon grey only on hover and white otherwise.
1 parent b37397d commit 8c5717f

File tree

5 files changed

+20
-3
lines changed

5 files changed

+20
-3
lines changed

apps/settings/css/settings.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ select {
184184
border-color: var(--color-primary) !important;
185185
}
186186

187-
&.icon-file {
187+
&.icon-file,
188+
&.icon-file-white
189+
{
188190
padding-left: 48px;
189191
background-position: 24px;
190192
}

apps/settings/templates/settings/personal/development.notice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="section development-notice">
22
<p>
3-
<a href="<?php p($_['reasons-use-nextcloud-pdf-link']); ?>" id="open-reasons-use-nextcloud-pdf" class="link-button icon-file" target="_blank"><?php p($l->t('Reasons to use Nextcloud in your organization'));?></a>
3+
<a href="<?php p($_['reasons-use-nextcloud-pdf-link']); ?>" id="open-reasons-use-nextcloud-pdf" class="link-button icon-file-white" target="_blank"><?php p($l->t('Reasons to use Nextcloud in your organization'));?></a>
44
</p>
55
<p>
66
<?php print_unescaped(str_replace(

apps/theming/css/theming.scss

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

9494
/* Colorized svg images */
95-
.icon-file, .icon-filetype-text {
95+
.icon-file, .icon-filetype-text, .icon-file-white:hover {
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+
99103
.icon-folder, .icon-filetype-folder {
100104
background-image: url(./img/core/filetypes/folder.svg?v=#{$theming-cachebuster});
101105
}

core/css/icons.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ audio, canvas, embed, iframe, img, input, object, video {
384384
}
385385

386386
.icon-file,
387+
.icon-file-white,
388+
.icon-filetype-text,
387389
.icon-filetype-text {
388390
@include icon-color('text', 'filetypes', #969696, 1, true);
389391
}

core/img/filetypes/text-white.svg

Lines changed: 9 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)