@@ -6,7 +6,7 @@ import ReactGA from 'react-ga';
6
6
import { Transition } from 'react-transition-group' ;
7
7
import getConfig from '../../../utils/getConfig' ;
8
8
import { setUserCookieConsent } from '../actions' ;
9
- import { remSize , prop } from '../../../theme' ;
9
+ import { remSize , prop , device } from '../../../theme' ;
10
10
import Button from '../../../common/Button' ;
11
11
12
12
const CookieConsentContainer = styled . div `
@@ -16,7 +16,7 @@ const CookieConsentContainer = styled.div`
16
16
if ( state === 'entered' ) {
17
17
return '0' ;
18
18
}
19
- return remSize ( - 200 ) ;
19
+ return remSize ( - 300 ) ;
20
20
} } ;
21
21
left: 0;
22
22
right: 0;
@@ -29,7 +29,10 @@ const CookieConsentDialog = styled.div`
29
29
background: ${ prop ( 'Modal.background' ) } ;
30
30
color: ${ prop ( 'primaryTextColor' ) } ;
31
31
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
+ }
33
36
` ;
34
37
35
38
const CookieConsentHeader = styled . h2 `
@@ -39,19 +42,29 @@ const CookieConsentHeader = styled.h2`
39
42
const CookieConsentContent = styled . div `
40
43
display: flex;
41
44
justify-content: space-between;
45
+ flex-direction: column;
46
+ @media ${ device . desktop } {
47
+ flex-direction: row;
48
+ }
42
49
` ;
43
50
44
51
const CookieConsentCopy = styled . p `
45
52
line-height: 1.5em;
53
+ margin-bottom: ${ remSize ( 20 ) } ;
54
+ @media ${ device . desktop } {
55
+ margin-bottom: 0;
56
+ }
46
57
` ;
47
58
48
59
const CookieConsentButtons = styled . div `
49
60
display: flex;
50
61
align-items: center;
51
- margin-left: ${ remSize ( 60 ) } ;
52
62
& button:not(:last-child) {
53
63
margin-right: ${ remSize ( 20 ) } ;
54
64
}
65
+ @media ${ device . desktop } {
66
+ margin-left: ${ remSize ( 60 ) } ;
67
+ }
55
68
` ;
56
69
57
70
function CookieConsent ( ) {
0 commit comments