refactor: no style overrides in production views

This commit is contained in:
Carlos Valente
2024-10-28 22:10:40 +01:00
committed by Carlos Valente
parent 143917f11a
commit 8ad1f2cb38
3 changed files with 5 additions and 12 deletions
@@ -140,7 +140,7 @@ export default function Cuesheet({ data, columns, handleUpdate, selectedId, curr
let rowBgColour: string | undefined;
if (isSelected) {
rowBgColour = 'var(--cuesheet-running-bg-override, #D20300)'; // $red-700
rowBgColour = '#D20300'; // $red-700
} else if (row.original.colour) {
try {
// the colour is user defined and might be invalid
@@ -30,7 +30,7 @@
&.running {
border-top: 1px solid $gray-1300;
background-color: var(--operator-running-bg-override, $active-red);
background-color: $active-red;
}
&.past {
@@ -105,7 +105,7 @@
}
.noColour {
outline: 0.15rem solid var(--operator-highlight-override, $ui-white);
outline: 0.15rem solid $ui-white;
outline-offset: -0.15rem;
padding-right: 0.3rem;
color: $ui-white;
@@ -114,7 +114,7 @@
.value {
padding-inline: 0.25rem;
background-color: $gray-1250;
color: var(--operator-highlight-override, $ui-white);
color: $ui-white;
margin-right: 1rem;
}
}
+1 -8
View File
@@ -43,14 +43,7 @@
/** Colour used for external message and aux timer in /timer */
--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 */
--studio-active: #101010;
--studio-idle: #cfcfcf;