Skip to content

Commit 7e4f10d

Browse files
committed
Update card padding on mobile
1 parent b1f83a8 commit 7e4f10d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

dotcom-rendering/src/components/Masthead/HighlightsCard.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const container = css`
4141
column-gap: ${space[2]}px;
4242
/** Relative positioning is required to absolutely position the card link overlay */
4343
position: relative;
44-
padding: 10px 10px 0 10px;
44+
padding: ${space[2]}px ${space[2]}px 0 ${space[2]}px;
4545
background-color: ${palette('--highlights-card-background')};
4646
4747
/**
@@ -55,22 +55,19 @@ const container = css`
5555
${until.mobileMedium} {
5656
min-height: 174px;
5757
}
58-
5958
${between.mobileMedium.and.tablet} {
6059
min-height: 194px;
6160
height: 100%;
6261
}
63-
6462
${from.tablet} {
6563
height: 100%;
6664
width: 160px;
65+
padding: 10px 10px 0 10px;
6766
}
68-
6967
${from.tablet} {
7068
width: 280px;
7169
flex-direction: row;
7270
}
73-
7471
${from.desktop} {
7572
width: 300px;
7673
}
@@ -105,6 +102,7 @@ const content = css`
105102
padding-bottom: 10px;
106103
}
107104
`;
105+
108106
const starWrapper = css`
109107
width: fit-content;
110108
margin-top: ${space[1]}px;

0 commit comments

Comments
 (0)