Files
ontime/client/src/features/editors/Editor.module.scss
T
Carlos Valente d486d78594 v2 styling (#263)
* feat: implement progress bar on running event

* refactor: use event action hook

* refactor: align backend data

* style: v2 style tweaks

* style: v2 style tweaks + ts <Info>

* fix: fix delay increment calls

* style: v2 style tweaks + ts <Playback>

* style: v2 style tweaks + ts <EventEditor>

* style: v2 style tweaks + ts <MessageControl>

* fix: naming issue with message control socket endpoint

* chore: upgrade style dependencies

* style: v2 style tweaks + ts <MenuBar>

* style: v2 style tweaks + ts <RundownMenu>

* style: v2 style tweaks + ts <Playback>

* fix: add selected and next information to EventTimer

* style: v2 style tweaks + ts <EventBlock>

* style: v2 style tweaks + ts <DelayBlock>

* style: v2 style tweaks + ts <BlockBlock>

* style: v2 style tweaks + ts <QuickEntry>

* refactor: extract <TextInput> logic

* chore: upgrade build dependencies

* chore: folder structure refactor

* fix: issue with dependency path in electron

* chore: update version in demo db
2022-11-27 14:56:09 +01:00

210 lines
3.4 KiB
SCSS

@use '../../theme/main' as *;
@mixin absolute-top-right($distance) {
position: absolute;
top: $distance;
right: $distance;
cursor: pointer;
color: #f2f2f2;
}
.corner {
display: none;
@include absolute-top-right(8px);
transform: rotate(45deg);
}
.mainContainer {
background: $bg-black;
width: 100%;
height: 100%;
margin: auto;
color: $title-white;
padding: max(16px, 2vh) max(8px, 1vh);
font-family: "Open Sans", "Segoe UI", sans-serif;
display: grid;
grid-template-rows: auto 1fr;
grid-template-columns: 48px 46em 450px auto;
grid-template-areas:
'sett even play info'
'sett even mess info';
gap: 8px;
.editor,
.playback,
.messages,
.info,
.settings {
position: relative;
.corner {
display: inline;
}
}
}
/* 2/3 window, hide info */
@media (max-width: 1450px) and (min-height: 700px) {
.mainContainer {
height: 100%;
grid-template-rows: auto 1fr;
grid-template-columns: 48px 48em auto;
.info {
visibility: hidden;
}
}
}
/* 1/2 window, event list only */
@media (max-width: 1100px) {
.mainContainer {
height: 100%;
grid-template-rows: 100%;
grid-template-columns: 48px 48em;
grid-template-areas:
'sett even';
.info,
.messages,
.playback {
visibility: hidden;
}
}
}
/* 1/3 window, show control only */
@media (max-width: 850px) and (min-height: 500px) {
.mainContainer {
grid-template-rows: auto 1fr;
grid-template-columns: 100%;
grid-template-areas:
'play'
'mess';
.playback,
.messages {
visibility: visible;
}
.editor,
.info,
.settings {
visibility: hidden;
}
}
}
/* 1/3 corner window, playback only */
@media (max-width: 850px) and (max-height: 500px) {
.mainContainer {
grid-template-rows: 100%;
grid-template-columns: 100%;
grid-template-areas: 'play';
.playback {
visibility: visible;
}
.editor,
.messages,
.info,
.settings {
visibility: hidden;
}
}
}
.mainContainer {
.settings,
.editor,
.messages,
.playback,
.info {
border-radius: 8px;
height: 100%;
background-color: $bg-container-l1;
padding: 0.8em 1.5em;
display: flex;
flex-direction: column;
}
}
.eventEditor {
border-radius: 8px 8px 0 0;
background-color: #202020;
box-shadow: rgba(0, 0, 0, 0.35) 0 3px 6px 6px;
border-top: 1px solid $bg-gray-900;
position: absolute;
bottom: 0;
width: 100vw;
left: 0;
z-index: 10;
color: white;
transition: bottom 0.3s; // $transition-time
&.noEvent {
bottom: -500px;
transition: bottom 0.7s;
}
.eventEditorLayout {
display: flex;
}
.header {
background-color: #202020;
padding: 8px;
border-left: 1px solid $bg-container-l3;
}
}
.editor {
grid-area: even;
height: calc(100% - 24px);
.content {
height: calc(100% - 24px);
overflow: hidden;
}
}
.info {
grid-area: info;
min-width: 17em;
.content {
display: flex;
flex-direction: column;
height: calc(100% - 24px);
overflow: hidden;
}
}
.messages {
grid-area: mess;
}
.playback {
grid-area: play;
min-height: 250px;
max-height: 380px;
min-width: 450px;
}
.mainContainer > .settings {
grid-area: sett;
background-color: transparent;
margin: 0;
padding: 0 8px 0 0;
width: fit-content;
display: flex;
flex-direction: column;
}
.content {
padding-top: 24px;
}