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 Jan 8, 2021
1 parent b37397d commit 8c5717f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
4 changes: 3 additions & 1 deletion apps/settings/css/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ select {
border-color: var(--color-primary) !important;
}

&.icon-file {
&.icon-file,
&.icon-file-white
{
padding-left: 48px;
background-position: 24px;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="section development-notice">
<p>
<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>
<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>
</p>
<p>
<?php print_unescaped(str_replace(
Expand Down
6 changes: 5 additions & 1 deletion apps/theming/css/theming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,14 @@ $invert: luma($color-primary) > 0.6;
}

/* Colorized svg images */
.icon-file, .icon-filetype-text {
.icon-file, .icon-filetype-text, .icon-file-white:hover {
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
2 changes: 2 additions & 0 deletions core/css/icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ 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);
}
Expand Down
9 changes: 9 additions & 0 deletions core/img/filetypes/text-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8c5717f

Please sign in to comment.