mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-15 21:16:17 +02:00
re-add play button to image column
This commit is contained in:
@@ -6,3 +6,37 @@
|
||||
.compact-image-container {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.image-container-with-aspect-ratio {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
aspect-ratio: unset;
|
||||
}
|
||||
|
||||
.image-container-with-aspect-ratio img {
|
||||
width: auto;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.image-container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.play-button-overlay {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
z-index: 10;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.play-button-overlay button {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user