@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; }