use opacity code in soft_media module

This commit is contained in:
Akbar Rahman 2022-04-14 16:09:59 +01:00
parent 22ab71170b
commit f0795da618
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

View File

@ -1,13 +1,8 @@
@import url("https://styles.alv.cx/modules/soft_media.css") screen and (prefers-color-scheme: dark);
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root { :root {
--fg: var(--colorscheme-light); --fg: var(--colorscheme-light);
--bg: var(--colorscheme-dark); --bg: var(--colorscheme-dark);
} }
img, video {
opacity: .75;
transition: opacity .5s ease-in-out;
}
img:hover, video:hover {
opacity: 1;
}
} }