| 1 |
@use '../../sass-utilities' as *; |
| 2 |
|
| 3 |
@include pf-root($helper-text) { |
| 4 |
--#{$helper-text}--Gap: var(--pf-t--global--spacer--xs); |
| 5 |
--#{$helper-text}--FontSize: var(--pf-t--global--font--size--body--sm); |
| 6 |
|
| 7 |
// item |
| 8 |
--#{$helper-text}__item-icon--Color: var(--pf-t--global--icon--color--regular); |
| 9 |
--#{$helper-text}__item-text--Color: var(--pf-t--global--text--color--regular); |
| 10 |
--#{$helper-text}__item-text--FontWeight: var(--pf-t--global--font--weight--body--default); |
| 11 |
--#{$helper-text}__item-icon--m-indeterminate--Color: var(--pf-t--global--icon--color--subtle); |
| 12 |
--#{$helper-text}__item-text--m-indeterminate--Color: var(--pf-t--global--text--color--subtle); |
| 13 |
--#{$helper-text}__item-icon--m-warning--Color: var(--pf-t--global--icon--color--status--warning--default); |
| 14 |
--#{$helper-text}__item-text--m-warning--FontWeight: var(--pf-t--global--font--weight--body--bold); |
| 15 |
--#{$helper-text}__item-icon--m-success--Color: var(--pf-t--global--icon--color--status--success--default); |
| 16 |
--#{$helper-text}__item-text--m-success--FontWeight: var(--pf-t--global--font--weight--body--bold); |
| 17 |
--#{$helper-text}__item-icon--m-error--Color: var(--pf-t--global--icon--color--status--danger--default); |
| 18 |
--#{$helper-text}__item-text--m-error--FontWeight: var(--pf-t--global--font--weight--body--bold); |
| 19 |
--#{$helper-text}__item--m-error--TransitionDuration--Opacity: var(--pf-t--global--motion--duration--fade--default); |
| 20 |
--#{$helper-text}__item--m-error--TransitionTimingFunction--Opacity: var(--pf-t--global--motion--timing-function--default); |
| 21 |
|
| 22 |
// dynamic |
| 23 |
--#{$helper-text}--m-dynamic__item-icon--Color: var(--pf-t--global--icon--color--regular); |
| 24 |
--#{$helper-text}--m-dynamic--m-indeterminate__item-icon--Color: var(--pf-t--global--icon--color--subtle); |
| 25 |
--#{$helper-text}--m-dynamic--m-indeterminate__item-text--Color: var(--pf-t--global--text--color--subtle); |
| 26 |
--#{$helper-text}--m-dynamic--m-warning__item-icon--Color: var(--pf-t--global--icon--color--status--warning--default); |
| 27 |
--#{$helper-text}--m-dynamic--m-warning__item-text--FontWeight: var(--pf-t--global--font--weight--body--bold); |
| 28 |
--#{$helper-text}--m-dynamic--m-success__item-icon--Color: var(--pf-t--global--icon--color--status--success--default); |
| 29 |
--#{$helper-text}--m-dynamic--m-error__item-icon--Color: var(--pf-t--global--icon--color--status--danger--default); |
| 30 |
|
| 31 |
// icon |
| 32 |
--#{$helper-text}__item-icon--MarginInlineEnd: var(--pf-t--global--spacer--xs); |
| 33 |
} |
| 34 |
|
| 35 |
.#{$helper-text} { |
| 36 |
// text |
| 37 |
|
| 38 |
display: grid; |
| 39 |
gap: var(--#{$helper-text}--Gap); |
| 40 |
font-size: var(--#{$helper-text}--FontSize); |
| 41 |
|
| 42 |
&.pf-m-hidden { |
| 43 |
visibility: hidden; |
| 44 |
opacity: 0; |
| 45 |
} |
| 46 |
} |
| 47 |
|
| 48 |
.#{$helper-text}__item { |
| 49 |
display: flex; |
| 50 |
font-weight: var(--#{$helper-text}__item-text--FontWeight); |
| 51 |
|
| 52 |
|
| 53 |
&.pf-m-indeterminate { |
| 54 |
--#{$helper-text}__item-icon--Color: var(--#{$helper-text}__item-icon--m-indeterminate--Color); |
| 55 |
--#{$helper-text}__item-text--Color: var(--#{$helper-text}__item-text--m-indeterminate--Color); |
| 56 |
--#{$helper-text}--m-dynamic__item-icon--Color: var(--#{$helper-text}--m-dynamic--m-indeterminate__item-icon--Color); |
| 57 |
--#{$helper-text}--m-dynamic__item-text--Color: var(--#{$helper-text}--m-dynamic--m-indeterminate__item-text--Color); |
| 58 |
} |
| 59 |
|
| 60 |
&.pf-m-warning { |
| 61 |
--#{$helper-text}__item-text--FontWeight: var(--#{$helper-text}__item-text--m-warning--FontWeight); |
| 62 |
--#{$helper-text}__item-icon--Color: var(--#{$helper-text}__item-icon--m-warning--Color); |
| 63 |
--#{$helper-text}--m-dynamic__item-icon--Color: var(--#{$helper-text}--m-dynamic--m-warning__item-icon--Color); |
| 64 |
} |
| 65 |
|
| 66 |
&.pf-m-success { |
| 67 |
--#{$helper-text}__item-text--FontWeight: var(--#{$helper-text}__item-text--m-success--FontWeight); |
| 68 |
--#{$helper-text}__item-icon--Color: var(--#{$helper-text}__item-icon--m-success--Color); |
| 69 |
--#{$helper-text}--m-dynamic__item-icon--Color: var(--#{$helper-text}--m-dynamic--m-success__item-icon--Color); |
| 70 |
} |
| 71 |
|
| 72 |
&.pf-m-error { |
| 73 |
--#{$helper-text}__item-text--FontWeight: var(--#{$helper-text}__item-text--m-error--FontWeight); |
| 74 |
--#{$helper-text}__item-icon--Color: var(--#{$helper-text}__item-icon--m-error--Color); |
| 75 |
--#{$helper-text}--m-dynamic__item-icon--Color: var(--#{$helper-text}--m-dynamic--m-error__item-icon--Color); |
| 76 |
|
| 77 |
animation-name: #{$helper-text}-item-fade-in; |
| 78 |
animation-duration: var(--#{$helper-text}__item--m-error--TransitionDuration--Opacity); |
| 79 |
animation-timing-function: var(--#{$helper-text}__item--m-error--TransitionTimingFunction--Opacity); |
| 80 |
|
| 81 |
@keyframes #{$helper-text}-item-fade-in { |
| 82 |
from { |
| 83 |
opacity: 0; |
| 84 |
} |
| 85 |
|
| 86 |
to { |
| 87 |
opacity: 1; |
| 88 |
} |
| 89 |
} |
| 90 |
} |
| 91 |
|
| 92 |
&.pf-m-dynamic { |
| 93 |
--#{$helper-text}__item-icon--Color: var(--#{$helper-text}--m-dynamic__item-icon--Color); |
| 94 |
} |
| 95 |
} |
| 96 |
|
| 97 |
.#{$helper-text}__item-icon { |
| 98 |
margin-inline-end: var(--#{$helper-text}__item-icon--MarginInlineEnd); |
| 99 |
color: var(--#{$helper-text}__item-icon--Color); |
| 100 |
} |
| 101 |
|
| 102 |
.#{$helper-text}__item-text { |
| 103 |
color: var(--#{$helper-text}__item-text--Color); |
| 104 |
} |