1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

fixed node related

This commit is contained in:
Fedor Katurov 2019-10-25 10:54:46 +07:00
parent 774e254afc
commit 920a8adaa2
4 changed files with 84 additions and 35 deletions

View file

@ -0,0 +1,30 @@
.item {
background: lighten($content_bg, 2%) 50% 50% no-repeat;
padding-bottom: 100%;
border-radius: $cell_radius;
cursor: pointer;
position: relative;
img {
position: absolute;
width: 0;
height: 0;
opacity: 0;
}
}
.thumb {
position: absolute;
width: 100%;
height: 100%;
border-radius: $cell_radius;
background: lighten($content_bg, 2%) 50% 50% no-repeat;
background-size: cover;
opacity: 0;
transition: opacity 0.5s;
will-change: opacity;
.is_loaded & {
opacity: 1;
}
}