add box shadow to prevent webkit from partly repainting the frame

This commit is contained in:
Spedon
2023-03-14 23:29:51 +08:00
parent 6cc03a3fc9
commit 7a99f099cb

View File

@@ -8,13 +8,15 @@
display: flex; display: flex;
align-items: center; align-items: center;
// prevent webkit from partly repainting the frame // prevent webkit from partly repainting the frame
box-shadow: 0 0 1px rgba(0, 0, 0, 0.05); box-shadow: 0 0 2px rgba(0, 0, 0, 0.05);
img { img {
max-height: 55vmin; max-height: 55vmin;
max-width: 100vw; max-width: 100vw;
object-fit: contain; object-fit: contain;
width: auto; width: auto;
// prevent webkit from partly repainting the frame
box-shadow: 0 0 2px rgba(0, 0, 0, 0.05);
} }
&[data-status='t0'] { &[data-status='t0'] {
@@ -24,6 +26,8 @@
max-width: 100vw; max-width: 100vw;
display: flex; display: flex;
align-items: center; align-items: center;
// prevent webkit from partly repainting the frame
box-shadow: 0 0 2px rgba(0, 0, 0, 0.05);
img { img {
transition: all 0.5s ease-in-out 2s; transition: all 0.5s ease-in-out 2s;
@@ -31,6 +35,8 @@
width: auto; width: auto;
max-width: 100vw; max-width: 100vw;
object-fit: contain; object-fit: contain;
// prevent webkit from partly repainting the frame
box-shadow: 0 0 2px rgba(0, 0, 0, 0.05);
} }
} }
@@ -64,6 +70,8 @@
max-width: 100vw; max-width: 100vw;
display: flex; display: flex;
align-items: center; align-items: center;
// prevent webkit from partly repainting the frame
box-shadow: 0 0 2px rgba(0, 0, 0, 0.05);
img { img {
transition: all 1s ease-in-out 0s; transition: all 1s ease-in-out 0s;
@@ -71,6 +79,8 @@
max-width: 100vw; max-width: 100vw;
object-fit: contain; object-fit: contain;
width: auto; width: auto;
// prevent webkit from partly repainting the frame
box-shadow: 0 0 2px rgba(0, 0, 0, 0.05);
} }
} }