Skip to content

Commit 5bd486e

Browse files
committed
feat: add freeze color var and use general colors where applicable
1 parent c2a4d32 commit 5bd486e

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

packages/webui/src/client/styles/_colorScheme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// color variables are defined in defaultColors.scss
32

43
$color-status-good: var(--color-status-good);
@@ -23,6 +22,7 @@ $general-late-color: var(--general-late-color);
2322
$general-fast-color: var(--general-fast-color);
2423
$general-fast-color--shadow: var(--general-fast-color--shadow);
2524
$general-countdown-to-next-color: var(--general-countdown-to-next-color);
25+
$general-freeze-color: var(--general-freeze-color);
2626

2727
$general-clock: var(--general-clock);
2828

packages/webui/src/client/styles/countdown/director.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ $hold-status-color: $liveline-timecode-color;
125125
padding-right: 30px;
126126

127127
font-size: 110px;
128-
color: #ff0;
128+
color: $general-countdown-to-next-color;
129129
font-variation-settings: 'GRAD' 0, 'XOPQ' 96, 'XTRA' 468, 'YOPQ' 79, 'YTAS' 750, 'YTDE' -203, 'YTFI' 738,
130130
'YTLC' 514, 'YTUC' 712, 'opsz' 120, 'slnt' 0, 'wdth' 70, 'wght' 500;
131131

@@ -233,7 +233,7 @@ $hold-status-color: $liveline-timecode-color;
233233
}
234234

235235
.freeze-counter {
236-
color: #00bfff;
236+
color: $general-freeze-color;
237237
margin-left: 4vw;
238238
display: flex;
239239
align-items: center;

packages/webui/src/client/styles/counterComponents.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import '../styles/colorScheme';
2+
13
.counter-component__planned-end,
24
.counter-component__time-to-planned-end,
35
.counter-component__time-since-planned-end,
@@ -22,7 +24,7 @@
2224
'YTUC' 712, 'opsz' 120, 'slnt' 0, 'wdth' 70, 'wght' 500;
2325

2426
.under {
25-
background-color: #ff0;
27+
background-color: $general-countdown-to-next-color;
2628
border-radius: 139px;
2729
align-self: stretch;
2830
gap: 10px;
@@ -60,7 +62,7 @@
6062
}
6163

6264
.counter-component__time-to-planned-end {
63-
color: #ff0;
65+
color: $general-countdown-to-next-color;
6466
letter-spacing: 0%;
6567
text-align: right;
6668
margin-left: 1.2vw;

packages/webui/src/client/styles/defaultColors.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
--general-late-color: #ff0000;
2323
--general-fast-color: #ff0000;
2424
--general-countdown-to-next-color: #ffff00;
25+
--general-freeze-color: #00bfff;
2526
--general-fast-color--shadow: #{transparentize(#ff0000, 0.2)};
2627

2728
--general-clock: #49c0fb;

0 commit comments

Comments
 (0)