Restore showcase color placeholders
This time without edge bleeding. Hopefully.
This commit is contained in:
parent
eae739f074
commit
4701fe9a28
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -43,6 +43,18 @@
|
|||||||
max-width: max(420px, 100%);
|
max-width: max(420px, 100%);
|
||||||
contain: layout paint style; // Improve performance
|
contain: layout paint style; // Improve performance
|
||||||
|
|
||||||
|
// Backgrounds cause an edge bleed due to anti-aliasing,
|
||||||
|
// so we need to get creative with the placeholder.
|
||||||
|
&::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
inset: .5px;
|
||||||
|
z-index: -1;
|
||||||
|
display: block;
|
||||||
|
background: var(--showcase-cover-placeholder, var(--placeholder-background));
|
||||||
|
border-radius: var(--layout-border-radius-small);
|
||||||
|
}
|
||||||
|
|
||||||
&:where(:not(._aspect-ratio)) {
|
&:where(:not(._aspect-ratio)) {
|
||||||
height: var(--showcase-item-height, max(64px, #{get_clamp(64, 96, 375, 768)}));
|
height: var(--showcase-item-height, max(64px, #{get_clamp(64, 96, 375, 768)}));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user