-
Notifications
You must be signed in to change notification settings - Fork 38
/
_content-title.scss
51 lines (44 loc) · 1.35 KB
/
_content-title.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
@use '@justeat/pie-design-tokens/dist/jet' as dt;
@use '../../settings/variables' as v;
@use '../../tools/mixins/type';
@use '../../tools/functions/index' as functions;
@mixin contentTitle() {
/**
* Components > Content title
* =================================
* Used for displaying a title with an associated action next to it
*
* Example: Filter titles (Search sidebar)
*
* The `c-contentTitle` component is an optional mixin within Fozzie.
* If you'd like to use it in your project you can include it by adding `@include contentTitle();` into your SCSS dependencies file.
*
* Documentation:
* TBC
*/
.c-contentTitle {
width: 100%;
display: flex;
align-items: center;
margin: functions.spacing(d) 0;
}
.c-contentTitle-icon {
width: 24px;
margin-right: functions.spacing();
}
.c-contentTitle-text {
margin: 0;
width: 100%;
font-weight: dt.$font-weight-regular;
@include type.font-size(body-l, false);
}
.c-contentTitle-action {
text-decoration: none;
font-weight: dt.$font-weight-bold;
font-family: v.$font-family-base;
&:hover,
&:focus {
text-decoration: underline;
}
}
}