| 1 |
@use '../../sass-utilities' as *; |
| 2 |
|
| 3 |
@include pf-root($timestamp) { |
| 4 |
--#{$timestamp}--FontSize: var(--pf-t--global--font--size--body--sm); |
| 5 |
--#{$timestamp}--Color: var(--pf-t--global--text--color--regular); |
| 6 |
--#{$timestamp}--OutlineOffset: #{pf-size-prem(3px)}; |
| 7 |
|
| 8 |
// Help text variables for the timestamp |
| 9 |
--#{$timestamp}--m-help-text--TextDecorationLine: var(--pf-t--global--text-decoration--help-text--line--default); |
| 10 |
--#{$timestamp}--m-help-text--TextDecorationStyle: var(--pf-t--global--text-decoration--help-text--style--default); |
| 11 |
--#{$timestamp}--m-help-text--TextUnderlineOffset: #{pf-size-prem(4px)}; |
| 12 |
--#{$timestamp}--m-help-text--Color: var(--pf-t--global--text--color--subtle); |
| 13 |
--#{$timestamp}--m-help-text--hover--Color: var(--pf-t--global--text--color--regular); |
| 14 |
--#{$timestamp}--m-help-text--hover--TextDecorationLine: var(--pf-t--global--text-decoration--help-text--line--hover); |
| 15 |
--#{$timestamp}--m-help-text--hover--TextDecorationStyle: var(--pf-t--global--text-decoration--help-text--style--hover); |
| 16 |
} |
| 17 |
|
| 18 |
.#{$timestamp} { |
| 19 |
display: inline-block; |
| 20 |
font-size: var(--#{$timestamp}--FontSize); |
| 21 |
color: var(--#{$timestamp}--Color); |
| 22 |
outline-offset: var(--#{$timestamp}--OutlineOffset); |
| 23 |
|
| 24 |
&.pf-m-help-text { |
| 25 |
--#{$timestamp}--Color: var(--#{$timestamp}--m-help-text--Color); |
| 26 |
|
| 27 |
text-decoration-line: var(--#{$timestamp}--m-help-text--TextDecorationLine); |
| 28 |
text-decoration-style: var(--#{$timestamp}--m-help-text--TextDecorationStyle); |
| 29 |
text-underline-offset: var(--#{$timestamp}--m-help-text--TextUnderlineOffset); |
| 30 |
cursor: pointer; |
| 31 |
|
| 32 |
&:is(:hover, :focus) { |
| 33 |
--#{$timestamp}--Color: var(--#{$timestamp}--m-help-text--hover--Color); |
| 34 |
--#{$timestamp}--m-help-text--TextDecorationLine: var(--#{$timestamp}--m-help-text--hover--TextDecorationLine); |
| 35 |
--#{$timestamp}--m-help-text--TextDecorationStyle: var(--#{$timestamp}--m-help-text--hover--TextDecorationStyle); |
| 36 |
} |
| 37 |
} |
| 38 |
} |
| 39 |
|
| 40 |
// enable timestamp with tooltip to have dashed underline when used with truncate |
| 41 |
.#{$timestamp}__text { |
| 42 |
// stylelint-disable property-disallowed-list |
| 43 |
text-decoration: inherit; |
| 44 |
// stylelint-enable property-disallowed-list |
| 45 |
} |