Skip to content

Commit 3c68843

Browse files
Merge pull request #2341 from Financial-Times/ci-2860-topper-padding
fix: ci-2860 add padding to avoid overlap
2 parents 5a81434 + 95b72ae commit 3c68843

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

components/o-topper/src/scss/themes/_branded.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,19 @@
4646
);
4747
}
4848
}
49+
// Add padding to prevent headline text colliding with headshot
50+
// not needed for opinion toppers as they have a different layout
51+
// meaning there is no risk of collision and we want the headline
52+
// to take up all of the available space where possible
53+
&:not(.o-topper--opinion) {
54+
.o-topper__headline {
55+
@include oPrivateGridRespondTo($until: M) {
56+
padding-right: calc(
57+
#{$_o-topper-headshot-width} + #{oPrivateSpacingByName('s3')}
58+
);
59+
}
60+
}
61+
}
4962
}
5063

5164
@mixin _oTopperThemeOpinion {

0 commit comments

Comments
 (0)