| 1 |
@use '../../sass-utilities' as *; |
| 2 |
|
| 3 |
// Font family options |
| 4 |
// stylelint-disable |
| 5 |
$pf-v6-u-font-family-options: ( |
| 6 |
font-family-text: ( |
| 7 |
font-family var(--pf-t--global--font--family--body) |
| 8 |
), |
| 9 |
font-family-heading: ( |
| 10 |
font-family var(--pf-t--global--font--family--heading) |
| 11 |
), |
| 12 |
font-family-monospace: ( |
| 13 |
font-family var(--pf-t--global--font--family--mono) |
| 14 |
) |
| 15 |
); |
| 16 |
|
| 17 |
@include pf-v6-utility-builder($pf-v6-u-font-family-options); |
| 18 |
|
| 19 |
// Font size options |
| 20 |
$pf-v6-u-font-size-options: ( |
| 21 |
font-size-xs: ( |
| 22 |
font-size var(--pf-t--global--font--size--xs) |
| 23 |
), |
| 24 |
font-size-sm: ( |
| 25 |
font-size var(--pf-t--global--font--size--sm) |
| 26 |
), |
| 27 |
font-size-md: ( |
| 28 |
font-size var(--pf-t--global--font--size--md) |
| 29 |
), |
| 30 |
font-size-lg: ( |
| 31 |
font-size var(--pf-t--global--font--size--lg) |
| 32 |
), |
| 33 |
font-size-xl: ( |
| 34 |
font-size var(--pf-t--global--font--size--xl) |
| 35 |
), |
| 36 |
font-size-2xl: ( |
| 37 |
font-size var(--pf-t--global--font--size--2xl) |
| 38 |
), |
| 39 |
font-size-3xl: ( |
| 40 |
font-size var(--pf-t--global--font--size--3xl) |
| 41 |
), |
| 42 |
font-size-4xl: ( |
| 43 |
font-size var(--pf-t--global--font--size--4xl) |
| 44 |
) |
| 45 |
); |
| 46 |
|
| 47 |
@include pf-v6-utility-builder($pf-v6-u-font-size-options, $pf-v6-global--breakpoint-list); |
| 48 |
|
| 49 |
// Font weight options |
| 50 |
$pf-v6-u-font-weight-options: ( |
| 51 |
font-weight-normal: ( |
| 52 |
font-weight var(--pf-t--global--font--weight--body--default) |
| 53 |
), |
| 54 |
font-weight-bold: ( |
| 55 |
font-weight var(--pf-t--global--font--weight--body--bold) |
| 56 |
) |
| 57 |
); |
| 58 |
|
| 59 |
@include pf-v6-utility-builder($pf-v6-u-font-weight-options, $pf-v6-global--breakpoint-list); |
| 60 |
|
| 61 |
// Font color options |
| 62 |
$pf-v6-u-font-color-options: ( |
| 63 |
text-color-brand: ( |
| 64 |
color var(--pf-t--global--text--color--brand--default) |
| 65 |
), |
| 66 |
text-color-disabled: ( |
| 67 |
color var(--pf-t--global--text--color--disabled) |
| 68 |
), |
| 69 |
text-color-on-disabled: ( |
| 70 |
color var(--pf-t--global--text--color--on-disabled) |
| 71 |
), |
| 72 |
text-color-link: ( |
| 73 |
color var(--pf-t--global--text--color--link--default) |
| 74 |
), |
| 75 |
text-color-link-hover: ( |
| 76 |
color var(--pf-t--global--text--color--link--hover) |
| 77 |
), |
| 78 |
text-color-link-visited: ( |
| 79 |
color var(--pf-t--global--text--color--link--visited) |
| 80 |
), |
| 81 |
text-color-placeholder: ( |
| 82 |
color var(--pf-t--global--text--color--placeholder) |
| 83 |
), |
| 84 |
text-color-regular: ( |
| 85 |
color var(--pf-t--global--text--color--regular) |
| 86 |
), |
| 87 |
text-color-required: ( |
| 88 |
color var(--pf-t--global--text--color--required) |
| 89 |
), |
| 90 |
text-color-subtle: ( |
| 91 |
color var(--pf-t--global--text--color--subtle) |
| 92 |
), |
| 93 |
text-color-inverse: ( |
| 94 |
color var(--pf-t--global--text--color--inverse) |
| 95 |
), |
| 96 |
text-color-status-success: ( |
| 97 |
color var(--pf-t--global--color--status--success--default) |
| 98 |
), |
| 99 |
text-color-status-warning: ( |
| 100 |
color var(--pf-t--global--text--color--status--warning--default) |
| 101 |
), |
| 102 |
text-color-status-danger: ( |
| 103 |
color var(--pf-t--global--text--color--status--danger--default) |
| 104 |
), |
| 105 |
text-color-status-default: ( |
| 106 |
color var(--pf-t--global--text--color--status--info--default) |
| 107 |
), |
| 108 |
text-color-status-custom: ( |
| 109 |
color var(--pf-t--global--text--color--status--custom--default) |
| 110 |
), |
| 111 |
icon-color-regular: ( |
| 112 |
color var(--pf-t--global--icon--color--regular) |
| 113 |
), |
| 114 |
icon-color-disabled: ( |
| 115 |
color var(--pf-t--global--icon--color--disabled) |
| 116 |
), |
| 117 |
icon-color-on-disabled: ( |
| 118 |
color var(--pf-t--global--icon--color--on-disabled) |
| 119 |
), |
| 120 |
icon-color-subtle: ( |
| 121 |
color var(--pf-t--global--icon--color--subtle) |
| 122 |
), |
| 123 |
icon-color-inverse: ( |
| 124 |
color var(--pf-t--global--icon--color--inverse) |
| 125 |
), |
| 126 |
icon-color-brand: ( |
| 127 |
color var(--pf-t--global--icon--color--brand--default) |
| 128 |
), |
| 129 |
icon-color-favorite: ( |
| 130 |
color var(--pf-t--global--icon--color--favorite--default) |
| 131 |
), |
| 132 |
icon-color-status-success: ( |
| 133 |
color var(--pf-t--global--icon--color--status--success--default) |
| 134 |
), |
| 135 |
icon-color-status-warning: ( |
| 136 |
color var(--pf-t--global--icon--color--status--warning--default) |
| 137 |
), |
| 138 |
icon-color-status-danger: ( |
| 139 |
color var(--pf-t--global--icon--color--status--danger--default) |
| 140 |
), |
| 141 |
icon-color-status-info: ( |
| 142 |
color var(--pf-t--global--icon--color--status--info--default) |
| 143 |
), |
| 144 |
icon-color-status-custom: ( |
| 145 |
color var(--pf-t--global--icon--color--status--custom--default) |
| 146 |
), |
| 147 |
); |
| 148 |
|
| 149 |
@include pf-v6-utility-builder($pf-v6-u-font-color-options, $pf-v6-global--breakpoint-list); |
| 150 |
|
| 151 |
// Font layout options |
| 152 |
$pf-v6-u-font-alignment-options: ( |
| 153 |
text-break-word: ( |
| 154 |
word-break break-word |
| 155 |
), |
| 156 |
text-nowrap: ( |
| 157 |
white-space nowrap |
| 158 |
), |
| 159 |
text-wrap: ( |
| 160 |
white-space normal |
| 161 |
) |
| 162 |
); |
| 163 |
|
| 164 |
@include pf-v6-utility-builder($pf-v6-u-font-alignment-options, $pf-v6-global--breakpoint-list); |
| 165 |
|
| 166 |
.#{$pf-prefix}u-text-truncate { |
| 167 |
min-width: 0 !important; |
| 168 |
max-width: 100% !important; |
| 169 |
overflow: hidden !important; |
| 170 |
text-overflow: ellipsis !important; |
| 171 |
white-space: nowrap !important; |
| 172 |
} |
| 173 |
|
| 174 |
// stylelint-enable |