| 1 |
@use '../../sass-utilities' as *; |
| 2 |
|
| 3 |
@include pf-root($title) { |
| 4 |
--#{$title}--FontFamily: var(--pf-t--global--font--family--heading); |
| 5 |
|
| 6 |
// SIZE modifiers (note that the modifier names match PF5 sizes but use tokens that don't match in name |
| 7 |
// 4xl |
| 8 |
--#{$title}--m-4xl--LineHeight: var(--pf-t--global--font--line-height--heading); |
| 9 |
--#{$title}--m-4xl--FontSize: var(--pf-t--global--font--size--heading--2xl); |
| 10 |
--#{$title}--m-4xl--FontWeight: var(--pf-t--global--font--weight--heading--default); |
| 11 |
|
| 12 |
// 3xl |
| 13 |
--#{$title}--m-3xl--LineHeight: var(--pf-t--global--font--line-height--heading); |
| 14 |
--#{$title}--m-3xl--FontSize: var(--pf-t--global--font--size--heading--xl); |
| 15 |
--#{$title}--m-3xl--FontWeight: var(--pf-t--global--font--weight--heading--default); |
| 16 |
|
| 17 |
// 2xl |
| 18 |
--#{$title}--m-2xl--LineHeight: var(--pf-t--global--font--line-height--heading); |
| 19 |
--#{$title}--m-2xl--FontSize: var(--pf-t--global--font--size--heading--lg); |
| 20 |
--#{$title}--m-2xl--FontWeight: var(--pf-t--global--font--weight--heading--default); |
| 21 |
|
| 22 |
// xl |
| 23 |
--#{$title}--m-xl--LineHeight: var(--pf-t--global--font--line-height--heading); |
| 24 |
--#{$title}--m-xl--FontSize: var(--pf-t--global--font--size--heading--md); |
| 25 |
--#{$title}--m-xl--FontWeight: var(--pf-t--global--font--weight--heading--default); |
| 26 |
|
| 27 |
// lg |
| 28 |
--#{$title}--m-lg--LineHeight: var(--pf-t--global--font--line-height--heading); |
| 29 |
--#{$title}--m-lg--FontSize: var(--pf-t--global--font--size--heading--sm); |
| 30 |
--#{$title}--m-lg--FontWeight: var(--pf-t--global--font--weight--heading--default); |
| 31 |
|
| 32 |
// md |
| 33 |
--#{$title}--m-md--LineHeight: var(--pf-t--global--font--line-height--heading); |
| 34 |
--#{$title}--m-md--FontSize: var(--pf-t--global--font--size--heading--xs); |
| 35 |
--#{$title}--m-md--FontWeight: var(--pf-t--global--font--weight--heading--default); |
| 36 |
|
| 37 |
// HEADING modifiers |
| 38 |
// h1 |
| 39 |
--#{$title}--m-h1--LineHeight: var(--pf-t--global--font--line-height--heading); |
| 40 |
--#{$title}--m-h1--FontSize: var(--pf-t--global--font--size--heading--h1); |
| 41 |
--#{$title}--m-h1--FontWeight: var(--pf-t--global--font--weight--heading--default); |
| 42 |
|
| 43 |
// h2 |
| 44 |
--#{$title}--m-h2--LineHeight: var(--pf-t--global--font--line-height--heading); |
| 45 |
--#{$title}--m-h2--FontSize: var(--pf-t--global--font--size--heading--h2); |
| 46 |
--#{$title}--m-h2--FontWeight: var(--pf-t--global--font--weight--heading--default); |
| 47 |
|
| 48 |
// h3 |
| 49 |
--#{$title}--m-h3--LineHeight: var(--pf-t--global--font--line-height--heading); |
| 50 |
--#{$title}--m-h3--FontSize: var(--pf-t--global--font--size--heading--h3); |
| 51 |
--#{$title}--m-h3--FontWeight: var(--pf-t--global--font--weight--heading--default); |
| 52 |
|
| 53 |
// h4 |
| 54 |
--#{$title}--m-h4--LineHeight: var(--pf-t--global--font--line-height--heading); |
| 55 |
--#{$title}--m-h4--FontSize: var(--pf-t--global--font--size--heading--h4); |
| 56 |
--#{$title}--m-h4--FontWeight: var(--pf-t--global--font--weight--heading--default); |
| 57 |
|
| 58 |
// h5 |
| 59 |
--#{$title}--m-h5--LineHeight: var(--pf-t--global--font--line-height--heading); |
| 60 |
--#{$title}--m-h5--FontSize: var(--pf-t--global--font--size--heading--h5); |
| 61 |
--#{$title}--m-h5--FontWeight: var(--pf-t--global--font--weight--heading--default); |
| 62 |
|
| 63 |
// h6 |
| 64 |
--#{$title}--m-h6--LineHeight: var(--pf-t--global--font--line-height--heading); |
| 65 |
--#{$title}--m-h6--FontSize: var(--pf-t--global--font--size--heading--h6); |
| 66 |
--#{$title}--m-h6--FontWeight: var(--pf-t--global--font--weight--heading--default); |
| 67 |
|
| 68 |
// Page title |
| 69 |
--#{$title}--m-page-title--FontWeight: var(--pf-t--global--font--weight--heading--bold); |
| 70 |
} |
| 71 |
|
| 72 |
.#{$title} { |
| 73 |
font-family: var(--#{$title}--FontFamily); |
| 74 |
overflow-wrap: anywhere; |
| 75 |
|
| 76 |
&.pf-m-4xl { |
| 77 |
font-size: var(--#{$title}--m-4xl--FontSize); |
| 78 |
font-weight: var(--#{$title}--m-4xl--FontWeight); |
| 79 |
line-height: var(--#{$title}--m-4xl--LineHeight); |
| 80 |
} |
| 81 |
|
| 82 |
&.pf-m-3xl { |
| 83 |
font-size: var(--#{$title}--m-3xl--FontSize); |
| 84 |
font-weight: var(--#{$title}--m-3xl--FontWeight); |
| 85 |
line-height: var(--#{$title}--m-3xl--LineHeight); |
| 86 |
} |
| 87 |
|
| 88 |
&.pf-m-2xl { |
| 89 |
font-size: var(--#{$title}--m-2xl--FontSize); |
| 90 |
font-weight: var(--#{$title}--m-2xl--FontWeight); |
| 91 |
line-height: var(--#{$title}--m-2xl--LineHeight); |
| 92 |
} |
| 93 |
|
| 94 |
&.pf-m-xl { |
| 95 |
font-size: var(--#{$title}--m-xl--FontSize); |
| 96 |
font-weight: var(--#{$title}--m-xl--FontWeight); |
| 97 |
line-height: var(--#{$title}--m-xl--LineHeight); |
| 98 |
} |
| 99 |
|
| 100 |
&.pf-m-lg { |
| 101 |
font-size: var(--#{$title}--m-lg--FontSize); |
| 102 |
font-weight: var(--#{$title}--m-lg--FontWeight); |
| 103 |
line-height: var(--#{$title}--m-lg--LineHeight); |
| 104 |
} |
| 105 |
|
| 106 |
&.pf-m-md { |
| 107 |
font-size: var(--#{$title}--m-md--FontSize); |
| 108 |
font-weight: var(--#{$title}--m-md--FontWeight); |
| 109 |
line-height: var(--#{$title}--m-md--LineHeight); |
| 110 |
} |
| 111 |
|
| 112 |
&.pf-m-h1 { |
| 113 |
font-size: var(--#{$title}--m-h1--FontSize); |
| 114 |
font-weight: var(--#{$title}--m-h1--FontWeight); |
| 115 |
line-height: var(--#{$title}--m-h1--LineHeight); |
| 116 |
} |
| 117 |
|
| 118 |
&.pf-m-h2 { |
| 119 |
font-size: var(--#{$title}--m-h2--FontSize); |
| 120 |
font-weight: var(--#{$title}--m-h2--FontWeight); |
| 121 |
line-height: var(--#{$title}--m-h2--LineHeight); |
| 122 |
} |
| 123 |
|
| 124 |
&.pf-m-h3 { |
| 125 |
font-size: var(--#{$title}--m-h3--FontSize); |
| 126 |
font-weight: var(--#{$title}--m-h3--FontWeight); |
| 127 |
line-height: var(--#{$title}--m-h3--LineHeight); |
| 128 |
} |
| 129 |
|
| 130 |
&.pf-m-h4 { |
| 131 |
font-size: var(--#{$title}--m-h4--FontSize); |
| 132 |
font-weight: var(--#{$title}--m-h4--FontWeight); |
| 133 |
line-height: var(--#{$title}--m-h4--LineHeight); |
| 134 |
} |
| 135 |
|
| 136 |
&.pf-m-h5 { |
| 137 |
font-size: var(--#{$title}--m-h5--FontSize); |
| 138 |
font-weight: var(--#{$title}--m-h5--FontWeight); |
| 139 |
line-height: var(--#{$title}--m-h5--LineHeight); |
| 140 |
} |
| 141 |
|
| 142 |
&.pf-m-h6 { |
| 143 |
font-size: var(--#{$title}--m-h6--FontSize); |
| 144 |
font-weight: var(--#{$title}--m-h6--FontWeight); |
| 145 |
line-height: var(--#{$title}--m-h6--LineHeight); |
| 146 |
} |
| 147 |
|
| 148 |
&.pf-m-page-title { |
| 149 |
font-weight: var(--#{$title}--m-page-title--FontWeight); |
| 150 |
} |
| 151 |
} |