add soft_media module

This commit is contained in:
Akbar Rahman 2022-04-14 16:02:23 +01:00
parent f6ee2cf09d
commit 22ab71170b
Signed by: alvierahman90
GPG Key ID: 20609519444A1269
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,6 @@
in the css
@import url("https://styles.alv.cx/modules/soft_media.css");
this module makes reduces the opacity of all images to give the webpage a softer look,
even when in light mode (this is default behaviour in dark mode).

7
modules/soft_media.css Normal file
View File

@ -0,0 +1,7 @@
img, video {
opacity: .75;
transition: opacity .5s ease-in-out;
}
img:hover, video:hover {
opacity: 1;
}