From 927df33d4978cdefa36f747e72c95c406ab5c407 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 27 Jan 2021 21:32:00 +0300 Subject: night theme: dim images unless hovered over --- themes/compact_night.css | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to 'themes/compact_night.css') diff --git a/themes/compact_night.css b/themes/compact_night.css index 07e61fafa..c9e986115 100644 --- a/themes/compact_night.css +++ b/themes/compact_night.css @@ -1892,23 +1892,6 @@ body.flat.ttrss_main.ttrss_prefs div.prefHelp { body.flat.ttrss_main.ttrss_prefs hr { border-color: #666; } -body.flat.ttrss_main { - /* - .post .content img, - .cdm .content-inner img, - .post .content video, - .cdm .content-inner video { - transition : opacity 0.2s linear, filter 0.2s linear; - } - - .post .content img:not(:hover), - .cdm .content-inner img:not(:hover), - .post .content video:not(:hover), - .cdm .content-inner video:not(:hover) { - opacity : 0.5; - filter: grayscale(80%); - } */ -} body.flat.ttrss_main img[src*='indicator_white.gif'] { filter: invert(1); } @@ -2089,6 +2072,18 @@ body.flat.ttrss_main ul#filterDlg_Actions { background: #222; border-color: #666; } +body.flat.ttrss_main .post .content img, +body.flat.ttrss_main .cdm .content-inner img, +body.flat.ttrss_main .post .content video, +body.flat.ttrss_main .cdm .content-inner video { + transition: filter 0.25s linear; +} +body.flat.ttrss_main .post .content img:not(:hover), +body.flat.ttrss_main .cdm .content-inner img:not(:hover), +body.flat.ttrss_main .post .content video:not(:hover), +body.flat.ttrss_main .cdm .content-inner video:not(:hover) { + filter: saturate(0.9) brightness(0.8); +} body.flat.ttrss_main .article-note { background: #b87d2c; border-color: #b87d2c; -- cgit v1.2.3