Proportional scaling inside grid (#1514)
* Proportional scaling inside grid Cards inside grid (subscriptions, trending and others using the same system) now scale according to grid size. * Update _ft-list-item.sass Co-authored-by: Preston <freetubeapp@protonmail.com>
This commit is contained in:
parent
aa5760a6b3
commit
b4f70132b6
|
@ -1,7 +1,7 @@
|
||||||
.ft-auto-grid
|
.ft-auto-grid
|
||||||
&.grid
|
&.grid
|
||||||
display: grid
|
display: grid
|
||||||
grid-template-columns: repeat(auto-fill, 262px)
|
grid-template-columns: repeat(auto-fill, minmax(262px, 1fr) )
|
||||||
justify-content: space-evenly
|
justify-content: space-evenly
|
||||||
grid-gap: 8px
|
grid-gap: 8px
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
.grid {
|
.grid {
|
||||||
min-height: 264px;
|
min-height: 264px;
|
||||||
display: flex;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
|
|
|
@ -44,14 +44,12 @@ $thumbnail-overlay-opacity: 0.85
|
||||||
opacity: 1
|
opacity: 1
|
||||||
|
|
||||||
.videoThumbnail
|
.videoThumbnail
|
||||||
display: flex
|
|
||||||
position: relative
|
position: relative
|
||||||
|
|
||||||
.thumbnailLink
|
.thumbnailLink
|
||||||
display: flex
|
display: flex
|
||||||
|
|
||||||
.thumbnailImage
|
.thumbnailImage
|
||||||
height: 130px
|
|
||||||
|
|
||||||
@include is-sidebar-item
|
@include is-sidebar-item
|
||||||
height: 75px
|
height: 75px
|
||||||
|
@ -62,6 +60,7 @@ $thumbnail-overlay-opacity: 0.85
|
||||||
|
|
||||||
.videoWatched
|
.videoWatched
|
||||||
position: absolute
|
position: absolute
|
||||||
|
top:0
|
||||||
padding: 2px
|
padding: 2px
|
||||||
opacity: $thumbnail-overlay-opacity
|
opacity: $thumbnail-overlay-opacity
|
||||||
color: var(--primary-text-color)
|
color: var(--primary-text-color)
|
||||||
|
@ -207,7 +206,7 @@ $thumbnail-overlay-opacity: 0.85
|
||||||
margin-bottom: 12px
|
margin-bottom: 12px
|
||||||
|
|
||||||
.thumbnailImage
|
.thumbnailImage
|
||||||
width: 250px
|
width: 100%
|
||||||
|
|
||||||
.title
|
.title
|
||||||
font-size: 18px
|
font-size: 18px
|
||||||
|
|
Loading…
Reference in New Issue