122 lines
2.2 KiB
SCSS
122 lines
2.2 KiB
SCSS
/** @format */
|
|
.card {
|
|
height: 100%;
|
|
overflow: visible !important;
|
|
align-items: flex-start;
|
|
background: transparent !important;
|
|
&-box {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
overflow: visible;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
&-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: opacity $transition-time-fast;
|
|
position: absolute;
|
|
z-index: 1;
|
|
top: 0;
|
|
left: 0;
|
|
&-container {
|
|
position: relative;
|
|
width: 100%;
|
|
border-radius: $border-radius-default;
|
|
box-shadow: 0 4px 8px rgb(0 0 0 / 0.2);
|
|
overflow: hidden;
|
|
height: auto;
|
|
z-index: 0;
|
|
}
|
|
&-icon {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
font-size: 3.4em !important;
|
|
fill: url(#clr-gradient-default) !important;
|
|
color: transparent;
|
|
&-container {
|
|
background: $clr-gradient-dark;
|
|
height: 100%;
|
|
width: 100%;
|
|
position: absolute;
|
|
z-index: 0;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
}
|
|
&-blurhash {
|
|
position: absolute;
|
|
z-index: 1;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
}
|
|
}
|
|
&-overlay {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
left: 0;
|
|
top: 0;
|
|
background: rgb(0 0 0 / 0.6);
|
|
z-index: 10;
|
|
opacity: 0;
|
|
transition: opacity $transition-time-default;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: flex-end;
|
|
padding: 0.5em;
|
|
}
|
|
&-container:hover,
|
|
&-container:focus,
|
|
&-container:focus-within {
|
|
.card-overlay {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
&-play-button {
|
|
position: absolute !important;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
z-index: 1;
|
|
}
|
|
&-indicator {
|
|
position: absolute;
|
|
top: 0.4em;
|
|
right: 0.4em;
|
|
z-index: 2;
|
|
padding: 0.2em 0.75em;
|
|
background: rgb(20 20 20 / 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
backdrop-filter: blur(5px);
|
|
transition: opacity 250ms;
|
|
border-radius: 100px;
|
|
box-shadow: 0 0 5px rgb(0 0 0 / 0.2);
|
|
}
|
|
&-text {
|
|
&-container {
|
|
height: 15%;
|
|
}
|
|
}
|
|
&-episode {
|
|
.card-box {
|
|
height: unset !important;
|
|
}
|
|
}
|
|
|
|
&-actor {
|
|
.card-image-container {
|
|
border-radius: 100% !important;
|
|
}
|
|
}
|
|
}
|