-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path_user-message.scss
56 lines (48 loc) · 1.38 KB
/
_user-message.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
@use '@justeat/pie-design-tokens/dist/jet' as dt;
@use '../../settings/include-media' as *;
@use '../../tools/functions/index' as functions;
@mixin userMessage() {
/**
* User Message Component
* =================================
* Used to display the user message banner on the page.
*
* The `c-userMessage` component is an optional mixin within Fozzie.
* If you'd like to use it in your project you can include it by adding `@include userMessage();` into your SCSS dependencies file.
*/
.c-userMessage {
color: dt.$color-white;
background-color: dt.$color-orange;
max-width: 100%;
margin-top: functions.spacing(d);
}
.c-userMessageContainer {
max-width: 350px;
margin: 0 auto;
padding: functions.spacing(d) 0;
display: flex;
@include media('>=narrow') {
max-width: 540px;
}
@include media('>=mid') {
max-width: 636px;
margin: 0 auto;
}
svg {
fill: white;
min-width: 28px;
max-width: 28px;
width: 28px;
height: 28px;
display: block;
align-self: center;
}
}
.c-userMessageText {
margin-left: functions.spacing(d);
margin-top: 0;
@include media('>=mid') {
padding-left: 0;
}
}
}