158 lines
2.8 KiB
SCSS
158 lines
2.8 KiB
SCSS
@import "mixins.scss";
|
|
@import "colors.scss";
|
|
#content {
|
|
display: grid;
|
|
}
|
|
#player {
|
|
background-color: $darkBackground;
|
|
display: grid;
|
|
grid-template-areas: "Head ControlPanel" "ViewPort ControlPanel" "Timeline Timeline";
|
|
grid-template-rows: 50px calc(100dvh - 350px - 20px) 300px;
|
|
grid-template-columns: 1fr auto;
|
|
max-height: calc(100dvh - 20px);
|
|
}
|
|
|
|
#viewport {
|
|
grid-area: ViewPort;
|
|
border: 1px solid $lightBackground;
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
grid-template-rows: repeat(3, 1fr);
|
|
aspect-ratio: 4/3;
|
|
width: auto;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
|
|
video {
|
|
width: 100%;
|
|
height: auto;
|
|
image-rendering: smooth;
|
|
aspect-ratio: 4/3;
|
|
}
|
|
|
|
.emptyVideo {
|
|
width: 100%;
|
|
aspect-ratio: 16/9;
|
|
}
|
|
}
|
|
|
|
#timeline {
|
|
grid-area: Timeline;
|
|
border: 1px solid $lightBackground;
|
|
$labelWidth: 100px;
|
|
|
|
#tracklist {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: auto;
|
|
width: 100%;
|
|
gap: 1px;
|
|
}
|
|
|
|
#playControls {
|
|
display: grid;
|
|
width: 100%;
|
|
grid-template-columns: $labelWidth 1fr;
|
|
grid-template-areas: "Label Input";
|
|
background-color: $featureBackroundDark;
|
|
border-bottom: 1px solid $mainAccent;
|
|
|
|
.inputs {
|
|
grid-area: Input;
|
|
position: relative;
|
|
|
|
input {
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0;
|
|
margin: 0;
|
|
border: 0;
|
|
appearance: none;
|
|
background: transparent;
|
|
outline: none;
|
|
/* opacity: 0; */
|
|
|
|
&::-webkit-slider-thumb {
|
|
background-color: transparent;
|
|
appearance: none;
|
|
display: block;
|
|
width: 1px;
|
|
height: 10px;
|
|
}
|
|
&::-webkit-slider-runnable-track {
|
|
border: 0;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.playHead {
|
|
width: 1px;
|
|
background-color: $secondaryAccentLight;
|
|
top: 0;
|
|
height: 300px;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
z-index: 2;
|
|
&::before {
|
|
display: block;
|
|
content: "";
|
|
border: 11px solid transparent;
|
|
border-top: 20px solid $secondaryAccentLight;
|
|
transform: translateX(-11px);
|
|
}
|
|
}
|
|
|
|
.timelineMarkers {
|
|
left: 0;
|
|
top: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
.marker {
|
|
position: absolute;
|
|
border-left: 1px dashed #fff;
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.track {
|
|
display: grid;
|
|
min-height: 30px;
|
|
background-color: $lightBackground;
|
|
grid-template-columns: $labelWidth 1fr;
|
|
/* overflow: hidden; */
|
|
/* margin-left: 100px; */
|
|
|
|
.label {
|
|
width: 100px;
|
|
height: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
left: 0;
|
|
top: 0px;
|
|
background-color: $featureBackround;
|
|
}
|
|
.clips {
|
|
display: block;
|
|
position: relative;
|
|
padding: 0px 2px;
|
|
}
|
|
}
|
|
|
|
.clip {
|
|
position: absolute;
|
|
display: block;
|
|
height: 30px;
|
|
top: auto;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
background-color: $mainAccentDark;
|
|
overflow: hidden;
|
|
}
|
|
}
|