mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-17 03:29:31 -07:00
modify image display and use data-status to represent status
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.image {
|
||||
.image_container {
|
||||
max-height: 55vmin;
|
||||
position: absolute;
|
||||
transform: translate(-50%, -50%);
|
||||
@@ -9,12 +9,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.inactive {
|
||||
.image_container[data-status="inactive"] {
|
||||
opacity: 0;
|
||||
transition: opacity 300ms ease-in-out;
|
||||
}
|
||||
|
||||
.active {
|
||||
.image_container[data-status="active"] {
|
||||
opacity: 1;
|
||||
transition: opacity 0ms ease-in-out;
|
||||
}
|
||||
@@ -22,15 +22,17 @@
|
||||
.top {
|
||||
transition: all 0.5s ease-in-out 1.5s;
|
||||
max-height: calc(100vh - var(--footer-height));
|
||||
width: auto;
|
||||
max-width: 100vw;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: auto;
|
||||
|
||||
img {
|
||||
transition: all 0.5s ease-in-out 2s;
|
||||
max-height: calc(100vh - var(--footer-height));
|
||||
width: auto;
|
||||
max-width: 100vw;
|
||||
object-fit: contain;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user