New image resize algo

This commit is contained in:
2017-11-11 23:19:31 +01:00
parent f3d493f7aa
commit 8860ece340
5 changed files with 38 additions and 27 deletions

View File

@ -3,7 +3,7 @@
.anime-grid-cell
grid-cell
scale-up
saturate-up
shadow-up
.anime-grid-image

View File

@ -6,15 +6,13 @@ mixin grid-cell
position relative
width 142px
height 16vw
min-width 90px
min-height 127px
max-width 142px
max-height 201px
height 200px
// min-width 90px
// min-height 127px
border-radius 3px
background-size cover
background-position 50% 50%
// background-size cover
// background-position 50% 50%
margin 0.5rem