Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/components/Atoms/AmbientVideo/AmbientVideo.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ const PlayPauseIcon = styled.span`

const PlayPauseButton = styled.button`
position: absolute;
bottom: 15px;
top: 15px;
bottom: auto;
left: 15px;
width: 35px;
height: 35px;
Expand All @@ -100,6 +101,15 @@ const PlayPauseButton = styled.button`
transform: translateX(2px);
}

// Play icon needs to go to the top left on mobile
// as with the hero banner, the text container can
// overlap it. Here in desktop view it can come
// back to the bottom.
@media ${({ theme }) => theme.allBreakpoints('L')} {
bottom: 15px;
top: auto;
}

@media (prefers-reduced-motion: reduce) {
display: none;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ exports[`renders AmbientVideo when video props are provided correctly 1`] = `

.c6 {
position: absolute;
bottom: 15px;
top: 15px;
bottom: auto;
left: 15px;
width: 35px;
height: 35px;
Expand Down Expand Up @@ -94,6 +95,13 @@ exports[`renders AmbientVideo when video props are provided correctly 1`] = `
}
}

@media (min-width:1024px) {
.c6 {
bottom: 15px;
top: auto;
}
}

@media (prefers-reduced-motion:reduce) {
.c6 {
display: none;
Expand Down
Loading