diff options
author | Andrew Dolgov <[email protected]> | 2021-01-27 21:32:00 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-01-27 21:32:00 +0300 |
commit | 927df33d4978cdefa36f747e72c95c406ab5c407 (patch) | |
tree | 0a7ccf9af0328a40574e5a273cddde23c7b874fc /themes/night_base.less | |
parent | 64f7ac0e74011389b5f7c2c8a8ad4f8089765ccd (diff) |
night theme: dim images unless hovered over
Diffstat (limited to 'themes/night_base.less')
-rw-r--r-- | themes/night_base.less | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/themes/night_base.less b/themes/night_base.less index e1dad7528..5207088a9 100644 --- a/themes/night_base.less +++ b/themes/night_base.less @@ -271,21 +271,16 @@ body.flat.ttrss_main { border-color : @border-light; } - /* - .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%); - } */ + .post .content, + .cdm .content-inner { + img, video { + transition : filter 0.25s linear; + } + + img:not(:hover), video:not(:hover) { + filter: saturate(0.9) brightness(0.8); + } + } .article-note { background : @color-accent; |