-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path_content-header.scss
65 lines (56 loc) · 2.02 KB
/
_content-header.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 '../../settings/include-media' as *;
@use '../../tools/functions/index' as functions;
@mixin contentHeader() {
/**
* Components > Content Header
* =================================
* Used to display important contextual info at the top of a page
*
* Example: Restaurant count and location on search page
*
* The `c-contentHeader` component is an optional mixin within Fozzie.
* If you'd like to use it in your project you can include it by adding `@include contentHeader();` into your SCSS dependencies file.
*
* Documentation:
* TBC
*/
.c-contentHeader {
padding-top: functions.spacing(d);
padding-bottom: functions.spacing();
}
.c-contentHeader-title {
padding: 0;
display: inline-block;
margin: 0 functions.spacing(d) 0 0;
font-weight: dt.$font-weight-regular;
@include type.font-size(body-l, false); // TODO – this should be updated with a more semantic font alias when it's ported to fozzie-components repo
}
.c-contentHeader-subTitle {
display: block;
margin-top: 4px;
@include type.font-size(body-s, false); // TODO – this should be updated with a more semantic font alias when it's ported to fozzie-components repo
@include media('>mid') {
display: inline-block;
}
}
.c-contentHeader-title,
.c-contentHeader-subTitle {
@include media('>=mid') {
@include type.font-size(heading-xl, false);
}
}
.c-contentHeader-link {
display: inline-block;
text-decoration: none;
font-weight: dt.$font-weight-regular;
&:hover,
&:focus {
text-decoration: underline;
}
@include media('>mid') {
display: inline-block;
}
}
}