mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-10 00:29:41 +00:00
refactor: no style overrides in production views
This commit is contained in:
committed by
Carlos Valente
parent
143917f11a
commit
8ad1f2cb38
@@ -140,7 +140,7 @@ export default function Cuesheet({ data, columns, handleUpdate, selectedId, curr
|
|||||||
|
|
||||||
let rowBgColour: string | undefined;
|
let rowBgColour: string | undefined;
|
||||||
if (isSelected) {
|
if (isSelected) {
|
||||||
rowBgColour = 'var(--cuesheet-running-bg-override, #D20300)'; // $red-700
|
rowBgColour = '#D20300'; // $red-700
|
||||||
} else if (row.original.colour) {
|
} else if (row.original.colour) {
|
||||||
try {
|
try {
|
||||||
// the colour is user defined and might be invalid
|
// the colour is user defined and might be invalid
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
&.running {
|
&.running {
|
||||||
border-top: 1px solid $gray-1300;
|
border-top: 1px solid $gray-1300;
|
||||||
background-color: var(--operator-running-bg-override, $active-red);
|
background-color: $active-red;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.past {
|
&.past {
|
||||||
@@ -105,7 +105,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.noColour {
|
.noColour {
|
||||||
outline: 0.15rem solid var(--operator-highlight-override, $ui-white);
|
outline: 0.15rem solid $ui-white;
|
||||||
outline-offset: -0.15rem;
|
outline-offset: -0.15rem;
|
||||||
padding-right: 0.3rem;
|
padding-right: 0.3rem;
|
||||||
color: $ui-white;
|
color: $ui-white;
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
.value {
|
.value {
|
||||||
padding-inline: 0.25rem;
|
padding-inline: 0.25rem;
|
||||||
background-color: $gray-1250;
|
background-color: $gray-1250;
|
||||||
color: var(--operator-highlight-override, $ui-white);
|
color: $ui-white;
|
||||||
margin-right: 1rem;
|
margin-right: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,13 +44,6 @@
|
|||||||
/** Colour used for external message and aux timer in /timer */
|
/** Colour used for external message and aux timer in /timer */
|
||||||
--external-color-override: #161616;
|
--external-color-override: #161616;
|
||||||
|
|
||||||
/** View specific features: /cuesheet */
|
|
||||||
--cuesheet-running-bg-override: #D20300;
|
|
||||||
|
|
||||||
/** View specific features: /op */
|
|
||||||
--operator-running-bg-override: #D20300;
|
|
||||||
--operator-highlight-override: #FFAB33;
|
|
||||||
|
|
||||||
/** View specific features: /studio */
|
/** View specific features: /studio */
|
||||||
--studio-active: #101010;
|
--studio-active: #101010;
|
||||||
--studio-idle: #cfcfcf;
|
--studio-idle: #cfcfcf;
|
||||||
|
|||||||
Reference in New Issue
Block a user