Skip to content

Commit

Permalink
Merge pull request #243 from oaknational/feat/PUPIL-797/new-pupil-les…
Browse files Browse the repository at this point in the history
…son-svg-backgrounds-and-colours

fix: update so that pupil lesson svg backgrounds only show on large displays
  • Loading branch information
BTitterington authored Jul 24, 2024
2 parents b2548d8 + d4835ca commit 91e3b60
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/components/organisms/pupil/OakLessonLayout/OakLessonLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,18 @@ const StyledLayoutBox = styled(OakBox)<{
@media (min-width: ${getBreakpoint("small")}px) {
padding-top: ${parseSpacing("space-between-xl")};
}
${(props) => css`
${getBackgroundUrlForLesson(
props.sectionName,
props.phase,
props.celebrate,
)}
`}
background-repeat: no-repeat;
background-position-x: center;
background-size: 100%;
@media (min-width: ${getBreakpoint("large")}px) {
${(props) => css`
${getBackgroundUrlForLesson(
props.sectionName,
props.phase,
props.celebrate,
)}
`}
background-repeat: no-repeat;
background-position-x: center;
background-size: 100%;
}
`;

const StickyFooter = styled(OakBox)`
Expand Down

0 comments on commit 91e3b60

Please sign in to comment.