File tree Expand file tree Collapse file tree
src/components/Atoms/AmbientVideo Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import styled from 'styled-components' ;
22
3+ import { breakpointValues } from '../../../theme/shared/allBreakpoints' ;
34import zIndex from '../../../theme/shared/zIndex' ;
45
6+ const mobileMaxWidth = breakpointValues . L - 1 ;
7+
58const Wrapper = styled . div `
69 width: 100%;
710 height: 100%;
@@ -79,14 +82,21 @@ const PlayPauseButton = styled.button`
7982 justify-content: center;
8083 opacity: 0;
8184 transition: opacity 0.2s ease 2s;
82- ${ zIndex ( 'high' ) } ;
8385
8486 // Play icon is shifted to the right slightly as it
8587 // doesn't look quite right when centered normally
8688 &[data-play-pause='play'] ${ PlayPauseIcon } {
8789 transform: translateX(2px);
8890 }
8991
92+ // Play icon needs to go to the top left on mobile
93+ // as with the hero banner, the text container can
94+ // overlap it
95+ @media (max-width: ${ mobileMaxWidth } px) {
96+ top: 15px;
97+ bottom: auto;
98+ }
99+
90100 @media (prefers-reduced-motion: reduce) {
91101 display: none;
92102 }
You can’t perform that action at this time.
0 commit comments