-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path_cookie-warning.scss
65 lines (59 loc) · 1.66 KB
/
_cookie-warning.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
@use '@justeat/pie-design-tokens/dist/jet' as dt;
@use '../../tools/mixins/type';
@use '../../tools/functions/index' as functions;
@mixin cookieWarning() {
/**
* Components > Cookie Warning
* =================================
*
* The `c-cookieWarning` component is an optional mixin within Fozzie.
* If you'd like to use it in your project you can include it by adding `@include cookieWarning();` into your SCSS dependencies file.
*
* Documentation:
* TBC
*/
.c-cookieWarning {
background-color: dt.$color-content-interactive-tertiary;
position: fixed;
bottom: 0;
width: 100%;
z-index: functions.zIndex(high);
& p {
@include type.font-size(caption, false);
color: dt.$color-white;
text-align: center;
margin: 0 auto;
}
}
.c-cookieWarning-inner {
margin: 0 auto;
padding: functions.spacing();
padding-right: functions.spacing(e);
overflow: hidden;
}
.c-cookieWarning-btn {
display: block;
position: absolute;
top: 8px;
right: 8px;
width: 10px;
height: 10px;
background: url('//dy3erx8o0a6nh.cloudfront.net/images/icon-close-banner.png') no-repeat center center;
background-size: 10px 10px;
border: none;
&:hover,
&:active,
&:focus {
background-color: dt.$color-border-strong;
cursor: pointer;
}
}
.c-cookieWarning-link {
color: dt.$color-white;
&:hover,
&:active,
&:focus {
color: dt.$color-white;
}
}
}