fix: support new Steam cover layout
This commit is contained in:
1 parent
e433ca3842
commit
0784d4c143
12 files changed
+212
-88
No files matched your search
+21
-3
@@ -554,11 +554,29 @@ textarea { resize: vertical; min-height: 54px; }
|
||||
grid-template-columns: 300px minmax(0, 1fr);
|
||||
max-height: calc(100vh - 36px);
|
||||
}
|
||||
.modal-cover { position: relative; background: var(--bg-2); }
|
||||
.modal-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||||
.modal-cover { position: relative; overflow: hidden; background: var(--bg-2); }
|
||||
.modal-cover .cover-blur {
|
||||
position: absolute;
|
||||
inset: -24px;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
filter: blur(24px) saturate(1.2);
|
||||
opacity: .48;
|
||||
transform: scale(1.08);
|
||||
z-index: 0;
|
||||
}
|
||||
.modal-cover img {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
display: block;
|
||||
}
|
||||
.modal-cover .fallback { display: none; }
|
||||
.modal-cover.noimg .cover-blur { display: none; }
|
||||
.modal-cover.noimg .fallback {
|
||||
position: absolute; inset: 0; display: grid; place-items: center;
|
||||
position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
|
||||
background: linear-gradient(145deg, rgba(243, 180, 92, .25), rgba(94, 234, 212, .12)), var(--bg-2);
|
||||
font-size: 22px; font-weight: 700; text-align: center; padding: 20px;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user