mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 09:53:48 +00:00
1b55dbc170
* style: tweaks to studio override * style: improvements to 12 hour format
186 lines
3.8 KiB
SCSS
186 lines
3.8 KiB
SCSS
@use '../../../theme/viewerDefs' as *;
|
|
|
|
@font-face {
|
|
font-family: "digital-clock";
|
|
src: local('digital-7'), url('./../../../assets/fonts/digital-7.monoitalic.ttf') format('truetype') ;
|
|
}
|
|
|
|
/* =============== CLOCK STUFF ==================*/
|
|
|
|
$clock-size: 90vh;
|
|
$size-hours: min(3vh, 20px);
|
|
$half-hours: min(1.5vh, 10px);
|
|
$size-min: min(2.5vh, 18px);
|
|
$half-min: min(1.25vh, 9px);
|
|
$red-active: #c53030;
|
|
$red-idle: #000000;
|
|
$cyan-active: #0ff;
|
|
$cyan-idle: #0aa;
|
|
|
|
.studio-clock {
|
|
margin: 0;
|
|
box-sizing: border-box; /* reset */
|
|
overflow: hidden;
|
|
width: 100%; /* restrict the page width to viewport */
|
|
height: 100vh;
|
|
padding: 1vw;
|
|
|
|
background: var(--background-color-override, #000);
|
|
|
|
display: grid;
|
|
grid-template-columns: 95vh 1fr;
|
|
gap: 2vw;
|
|
grid-template-areas: "clck schd";
|
|
|
|
.clock-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
grid-area: clck;
|
|
width: $clock-size;
|
|
height: $clock-size;
|
|
aspect-ratio: 1;
|
|
text-align: center;
|
|
position: relative;
|
|
margin: 4vh auto;
|
|
font-family: digital-clock, monospace;
|
|
text-transform: uppercase;
|
|
|
|
.clock-indicators {
|
|
position: absolute;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
.min,
|
|
.hours {
|
|
border-radius: 50%;
|
|
position: absolute;
|
|
background: var(--studio-idle, $red-idle);
|
|
|
|
&--active {
|
|
background: var(--studio-active, $red-active);
|
|
}
|
|
}
|
|
|
|
.min {
|
|
min-height: $size-min;
|
|
width: $size-min;
|
|
top: calc(50% - #{$half_min});
|
|
left: calc(50% - #{$half_min});
|
|
}
|
|
|
|
.hours {
|
|
min-height: $size-hours;
|
|
width: $size-hours;
|
|
top: calc(50% - #{$half_hours});
|
|
left: calc(50% - #{$half_hours});
|
|
}
|
|
}
|
|
|
|
.studio-timer {
|
|
color: var(--studio-active, $red-active);
|
|
font-size: calc(#{$clock-size} / 3);
|
|
margin-top: calc(50% - calc(#{$clock-size} / 7));
|
|
line-height: 0.8em;
|
|
|
|
&--with-seconds {
|
|
font-size: calc(#{$clock-size} / 4.6);
|
|
margin-top: calc(50% - calc(#{$clock-size} / 11));
|
|
}
|
|
}
|
|
|
|
|
|
.next-title:after,
|
|
.next-title:after,
|
|
.next-countdown--overtime:after {
|
|
content: '\200b';
|
|
}
|
|
|
|
.next-title {
|
|
color: var(--studio-idle-label, $cyan-idle);
|
|
text-align: center;
|
|
}
|
|
|
|
.next-countdown {
|
|
color: var(--studio-active-label, $cyan-active);
|
|
|
|
font-size: 10vh;
|
|
line-height: 1em;
|
|
|
|
&--overtime {
|
|
color: darken($red-active, 10%);
|
|
}
|
|
}
|
|
|
|
.next-countdown::before {
|
|
content: '-';
|
|
}
|
|
}
|
|
|
|
/* ============= SCHEDULE STUFF =================*/
|
|
|
|
.schedule-container {
|
|
grid-area: schd;
|
|
margin: 4vh 0;
|
|
font-family: digital-clock, monospace;
|
|
text-transform: uppercase;
|
|
|
|
.onAir {
|
|
padding-bottom: 2vh;
|
|
font-size: 15vh;
|
|
line-height: 0.9em;
|
|
color: var(--studio-active, $red-active);
|
|
|
|
&--idle {
|
|
color: var(--studio-idle, $red-active);
|
|
}
|
|
}
|
|
|
|
.schedule {
|
|
ul {
|
|
color: var(--studio-idle-label, $cyan-idle);
|
|
font-size: 3.75vh;
|
|
line-height: 1em;
|
|
list-style: none;
|
|
}
|
|
|
|
li {
|
|
margin-bottom: 1.5vh;
|
|
padding-left: 0.25em;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.now {
|
|
color: var(--studio-active-label, $cyan-active);
|
|
}
|
|
|
|
.next {
|
|
color: var(--studio-active, $red-active);
|
|
}
|
|
|
|
.user-colour {
|
|
width: 0.35em;
|
|
height: 0.35em;
|
|
aspect-ratio: 1;
|
|
background-color: var(--studio-idle, $red-idle);
|
|
margin-right: 0.35em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: 1200px) {
|
|
.studio-clock {
|
|
display: grid;
|
|
grid-template-areas: "clck";
|
|
grid-template-columns: 100%;
|
|
place-content: center;
|
|
|
|
.schedule-container {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|