Blend schedule photos into card background
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
b926169619
commit
db7aca8538
1 changed files with 5 additions and 13 deletions
|
|
@ -135,8 +135,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.schedule--picker .schedule__card--photo {
|
.schedule--picker .schedule__card--photo {
|
||||||
--schedule-photo-fade: color-mix(in srgb, var(--color-text) 4%, var(--color-body-bg));
|
|
||||||
|
|
||||||
isolation: isolate;
|
isolation: isolate;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
min-height: 7rem;
|
min-height: 7rem;
|
||||||
|
|
@ -166,17 +164,11 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
mask-image: linear-gradient(90deg,
|
||||||
|
transparent 0%,
|
||||||
&::after {
|
rgb(0 0 0 / 3%) 10%,
|
||||||
content: "";
|
rgb(0 0 0 / 10%) 40%,
|
||||||
position: absolute;
|
rgb(0 0 0 / 80%) 100%);
|
||||||
inset: 0;
|
|
||||||
background: linear-gradient(90deg,
|
|
||||||
var(--schedule-photo-fade) 0%,
|
|
||||||
color-mix(in srgb, var(--schedule-photo-fade) 97%, transparent) 10%,
|
|
||||||
color-mix(in srgb, var(--schedule-photo-fade) 90%, transparent) 40%,
|
|
||||||
color-mix(in srgb, var(--schedule-photo-fade) 20%, transparent) 100%);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue