Skip to content

Commit f526397

Browse files
committed
chore: Updated hover-pop typography, plus letter case on duration strings.
1 parent 092fd52 commit f526397

File tree

2 files changed

+46
-27
lines changed

2 files changed

+46
-27
lines changed

packages/webui/src/client/ui/PreviewPopUp/PreviewPopUp.scss

Lines changed: 40 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
&--large {
1414
width: 482px;
15+
padding-bottom: 10px;
1516
--preview-max-dimension: 480;
1617
}
1718

@@ -28,20 +29,19 @@
2829

2930
font-style: normal;
3031
font-weight: 500;
31-
font-size: 15px;
32+
font-size: 16px;
3233
line-height: 110%;
3334
/* identical to box height, or 15px */
34-
letter-spacing: 0.01em;
35+
letter-spacing: 0.02em;
3536
font-feature-settings:
36-
'tnum' on,
37-
'lnum' off,
37+
'tnum',
3838
'liga' off;
3939
color: #ffffff;
40-
font-stretch: 25;
4140
font-variation-settings:
4241
'GRAD' 0,
4342
'opsz' 15,
4443
'slnt' 0,
44+
'wdth' 30,
4545
'XOPQ' 96,
4646
'XTRA' 468,
4747
'YOPQ' 79,
@@ -66,16 +66,15 @@
6666
line-height: 120%;
6767
letter-spacing: 0.03em;
6868
font-feature-settings:
69-
'tnum' on,
70-
'lnum' off,
69+
'tnum',
7170
'liga' off;
7271

7372
color: #ffffff;
74-
font-stretch: 75;
7573
font-variation-settings:
7674
'GRAD' 0,
7775
'opsz' 16,
7876
'slnt' -10,
77+
'wdth' 75,
7978
'XOPQ' 96,
8079
'XTRA' 468,
8180
'YOPQ' 79,
@@ -108,13 +107,13 @@
108107
width: 100%;
109108
display: flex;
110109

111-
margin-bottom: 5px;
110+
margin-bottom: 7px;
112111

113112
.preview-popUp__element-with-time-info__layer-color {
114-
height: 15px;
113+
height: 13px;
115114
aspect-ratio: 1;
116115
margin-left: 2%;
117-
margin-top: 10px;
116+
margin-top: 7px;
118117
flex-shrink: 0;
119118
@include item-type-colors();
120119
}
@@ -136,27 +135,27 @@
136135
line-height: 100%; /* 15px */
137136

138137
.label {
139-
font-weight: 300;
138+
font-weight: 100;
140139
line-height: 100%;
141140
/* identical to box height, or 15px */
142-
letter-spacing: 0.01em;
141+
letter-spacing: 0.02em;
143142
font-feature-settings:
144-
'tnum' on,
145-
'lnum' off,
143+
'tnum',
146144
'liga' off;
147-
color: #ffffff;
145+
color: #b2b2b2;
148146
font-variation-settings:
149147
'GRAD' 0,
148+
'opsz' 30,
149+
'slnt' 0,
150+
'wdth' 25,
150151
'XOPQ' 96,
151152
'XTRA' 468,
152153
'YOPQ' 79,
153154
'YTAS' 750,
154155
'YTDE' -203,
155156
'YTFI' 738,
156157
'YTLC' 548,
157-
'YTUC' 712,
158-
'opsz' 20,
159-
'slnt' 0;
158+
'YTUC' 712;
160159
}
161160
}
162161
}
@@ -287,7 +286,27 @@
287286
}
288287

289288
.preview-popUp__in-out-words {
290-
letter-spacing: 0em;
289+
font-weight: 300;
290+
font-size: 16px;
291+
line-height: 100%;
292+
letter-spacing: 0.02em;
293+
font-feature-settings:
294+
'tnum',
295+
'liga' off;
296+
color: #ffffff;
297+
font-variation-settings:
298+
'GRAD' 0,
299+
'opsz' 16,
300+
'slnt' -10,
301+
'wdth' 75,
302+
'XOPQ' 96,
303+
'XTRA' 468,
304+
'YOPQ' 79,
305+
'YTAS' 750,
306+
'YTDE' -203,
307+
'YTFI' 738,
308+
'YTLC' 548,
309+
'YTUC' 712;
291310

292311
width: 100%;
293312
overflow: hidden;
@@ -302,7 +321,7 @@
302321
width: 100%;
303322
height: 1px;
304323
background-color: #5b5b5b;
305-
margin-bottom: 5px;
324+
margin-bottom: 7px;
306325
}
307326

308327
.in-words,

packages/webui/src/client/ui/PreviewPopUp/PreviewPopUpContent.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,17 @@ function getDurationText(
112112
function getLifeSpanText(t: TFunction, lifespan: PieceLifespan): string {
113113
switch (lifespan) {
114114
case PieceLifespan.WithinPart:
115-
return t('Until next take')
115+
return t('Until Next Take')
116116
case PieceLifespan.OutOnSegmentChange:
117-
return t('Until next segment')
117+
return t('Until Next Segment')
118118
case PieceLifespan.OutOnSegmentEnd:
119-
return t('Until end of segment')
119+
return t('Until End of Segment')
120120
case PieceLifespan.OutOnRundownChange:
121-
return t('Until next rundown')
121+
return t('Until Next Rundown')
122122
case PieceLifespan.OutOnRundownEnd:
123-
return t('Until end of rundown')
123+
return t('Until End of Rundown')
124124
case PieceLifespan.OutOnShowStyleEnd:
125-
return t('Until end of showstyle')
125+
return t('Until End of Showstyle')
126126
default:
127127
return ''
128128
}

0 commit comments

Comments
 (0)