@@ -6,7 +6,7 @@ import ReactGA from 'react-ga';
66import { Transition } from 'react-transition-group' ;
77import getConfig from '../../../utils/getConfig' ;
88import { setUserCookieConsent } from '../actions' ;
9- import { remSize , prop } from '../../../theme' ;
9+ import { remSize , prop , device } from '../../../theme' ;
1010import Button from '../../../common/Button' ;
1111
1212const CookieConsentContainer = styled . div `
@@ -16,7 +16,7 @@ const CookieConsentContainer = styled.div`
1616 if ( state === 'entered' ) {
1717 return '0' ;
1818 }
19- return remSize ( - 200 ) ;
19+ return remSize ( - 300 ) ;
2020 } } ;
2121 left: 0;
2222 right: 0;
@@ -29,7 +29,10 @@ const CookieConsentDialog = styled.div`
2929 background: ${ prop ( 'Modal.background' ) } ;
3030 color: ${ prop ( 'primaryTextColor' ) } ;
3131 border-top: 1px solid ${ prop ( 'Separator' ) } ;
32- padding: ${ remSize ( 40 ) } ${ remSize ( 60 ) } ;
32+ padding: ${ remSize ( 20 ) } ${ remSize ( 30 ) } ;
33+ @media ${ device . desktop } {
34+ padding: ${ remSize ( 40 ) } ${ remSize ( 60 ) } ;
35+ }
3336` ;
3437
3538const CookieConsentHeader = styled . h2 `
@@ -39,19 +42,29 @@ const CookieConsentHeader = styled.h2`
3942const CookieConsentContent = styled . div `
4043 display: flex;
4144 justify-content: space-between;
45+ flex-direction: column;
46+ @media ${ device . desktop } {
47+ flex-direction: row;
48+ }
4249` ;
4350
4451const CookieConsentCopy = styled . p `
4552 line-height: 1.5em;
53+ margin-bottom: ${ remSize ( 20 ) } ;
54+ @media ${ device . desktop } {
55+ margin-bottom: 0;
56+ }
4657` ;
4758
4859const CookieConsentButtons = styled . div `
4960 display: flex;
5061 align-items: center;
51- margin-left: ${ remSize ( 60 ) } ;
5262 & button:not(:last-child) {
5363 margin-right: ${ remSize ( 20 ) } ;
5464 }
65+ @media ${ device . desktop } {
66+ margin-left: ${ remSize ( 60 ) } ;
67+ }
5568` ;
5669
5770function CookieConsent ( ) {
0 commit comments