Skip to content

Commit f828374

Browse files
committed
Adjust alignment of numbers and 'on target' box
1 parent 44b1fec commit f828374

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

dotcom-rendering/src/components/FootballMatchStat.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,15 @@ const goalAttemptsLayoutCss = css`
189189
'home-attempts away-attempts';
190190
column-gap: 10px;
191191
${from.desktop} {
192-
column-gap: 20px;
192+
column-gap: ${space[5]}px;
193193
}
194194
`;
195195

196196
const offTargetCss = css`
197197
${textSans14};
198198
grid-area: home-attempts;
199199
margin-top: 5px;
200-
padding: ${space[2]}px 0 0 6px;
200+
padding: ${space[1]}px 0 0 6px;
201201
background-color: var(--off-target-colour);
202202
border-radius: 4px;
203203
${from.desktop} {
@@ -213,12 +213,16 @@ const offTargetAwayCss = css`
213213
`;
214214

215215
const onTargetCss = css`
216-
padding: ${space[2]}px 0 0 6px;
216+
padding: ${space[1]}px 0 0 6px;
217217
color: ${sourcePalette.neutral[100]};
218218
background-color: var(--on-target-colour);
219219
border-radius: 4px;
220220
width: 80%;
221+
min-height: 62px;
221222
justify-self: end;
223+
${from.desktop} {
224+
margin-top: -${space[3]}px;
225+
}
222226
`;
223227

224228
const onTargetAwayCss = css`
@@ -230,6 +234,7 @@ const onTargetAwayCss = css`
230234
const attemptCountCss = css`
231235
display: block;
232236
${textSansBold20};
237+
margin-top: -3px;
233238
${from.desktop} {
234239
${textSansBold28};
235240
}

0 commit comments

Comments
 (0)