From 08e6ffe806b352da27dfe5b541d912289e80cc16 Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 3 Feb 2021 22:00:01 -0600 Subject: [PATCH] Toolkit: Change thumbnail brightness on hover --- toolkit/scss/toolkit.scss | 3 +++ toolkit/templates/thumbnail.rs.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/toolkit/scss/toolkit.scss b/toolkit/scss/toolkit.scss index 2b3c1fa..08cef97 100644 --- a/toolkit/scss/toolkit.scss +++ b/toolkit/scss/toolkit.scss @@ -229,6 +229,9 @@ img { img { max-height: 150px; + &:hover { + filter: brightness(110%); + } } .toolkit-thumbnail { diff --git a/toolkit/templates/thumbnail.rs.html b/toolkit/templates/thumbnail.rs.html index 6365164..161d7a4 100644 --- a/toolkit/templates/thumbnail.rs.html +++ b/toolkit/templates/thumbnail.rs.html @@ -8,12 +8,12 @@
@:link(&Link::current_tab(&thumb.href).plain(true), {
+ @:image(thumb.image()) @if let Some(indicator) = &thumb.indicator {
@indicator.text
} - @:image(thumb.image())
})