Initial TrueGrowth source import
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
.video-poster-preview {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
overflow: hidden;
|
||||
|
||||
&__media,
|
||||
&__placeholder {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
&__media {
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
&__play-overlay {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(0, 0, 0, 0.15);
|
||||
color: #fff;
|
||||
opacity: 0.88;
|
||||
pointer-events: none;
|
||||
z-index: 2;
|
||||
transition: opacity 0.2s ease, background-color 0.2s ease;
|
||||
|
||||
.t-icon {
|
||||
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
|
||||
}
|
||||
}
|
||||
|
||||
&:hover &__play-overlay {
|
||||
opacity: 1;
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user