| 1 |
@use '../../sass-utilities' as *; |
| 2 |
|
| 3 |
@include pf-root($hint) { |
| 4 |
--#{$hint}--GridRowGap: var(--pf-t--global--spacer--sm); |
| 5 |
--#{$hint}--PaddingBlockStart: var(--pf-t--global--spacer--lg); |
| 6 |
--#{$hint}--PaddingInlineEnd: var(--pf-t--global--spacer--lg); |
| 7 |
--#{$hint}--PaddingBlockEnd: var(--pf-t--global--spacer--lg); |
| 8 |
--#{$hint}--PaddingInlineStart: var(--pf-t--global--spacer--lg); |
| 9 |
--#{$hint}--BackgroundColor: var(--pf-t--global--background--color--primary--default); |
| 10 |
--#{$hint}--BorderColor: var(--pf-t--global--border--color--status--info--default); |
| 11 |
--#{$hint}--BorderWidth: var(--pf-t--global--border--width--box--status--default); |
| 12 |
--#{$hint}--BorderRadius: var(--pf-t--global--border--radius--medium); |
| 13 |
--#{$hint}--Color: var(--pf-t--global--text--color--regular); |
| 14 |
|
| 15 |
// Hint Title |
| 16 |
--#{$hint}__title--FontWeight: var(--pf-t--global--font--weight--body--bold); |
| 17 |
|
| 18 |
// Hint Body |
| 19 |
--#{$hint}__body--FontSize: var(--pf-t--global--font--size--body--default); |
| 20 |
|
| 21 |
// Hint Footer |
| 22 |
--#{$hint}__footer--MarginBlockStart: var(--pf-t--global--spacer--sm); |
| 23 |
--#{$hint}__footer--child--MarginInlineEnd: var(--pf-t--global--spacer--md); |
| 24 |
|
| 25 |
// Hint Actions |
| 26 |
--#{$hint}__actions--MarginInlineStart: var(--pf-t--global--spacer--2xl); |
| 27 |
--#{$hint}__actions--c-menu-toggle--MarginBlockStart: calc(var(--pf-t--global--spacer--control--vertical--plain) * -1); |
| 28 |
--#{$hint}__actions--c-menu-toggle--MarginBlockEnd: calc(var(--pf-t--global--spacer--control--vertical--plain) * -1); |
| 29 |
} |
| 30 |
|
| 31 |
.#{$hint} { |
| 32 |
display: grid; |
| 33 |
grid-template-columns: 1fr auto; |
| 34 |
row-gap: var(--#{$hint}--GridRowGap); |
| 35 |
padding-block-start: var(--#{$hint}--PaddingBlockStart); |
| 36 |
padding-block-end: var(--#{$hint}--PaddingBlockEnd); |
| 37 |
padding-inline-start: var(--#{$hint}--PaddingInlineStart); |
| 38 |
padding-inline-end: var(--#{$hint}--PaddingInlineEnd); |
| 39 |
color: var(--#{$hint}--Color); |
| 40 |
background-color: var(--#{$hint}--BackgroundColor); |
| 41 |
border: var(--#{$hint}--BorderWidth) solid var(--#{$hint}--BorderColor); |
| 42 |
border-radius: var(--#{$hint}--BorderRadius); |
| 43 |
|
| 44 |
// Remove this when the inline link button is updated |
| 45 |
.#{$button}.pf-m-link.pf-m-inline { |
| 46 |
text-align: start; |
| 47 |
white-space: normal; |
| 48 |
} |
| 49 |
} |
| 50 |
|
| 51 |
.#{$hint}__actions { |
| 52 |
display: inline-grid; |
| 53 |
grid-row: 1; |
| 54 |
grid-column: 2; |
| 55 |
grid-auto-flow: column; |
| 56 |
align-self: start; |
| 57 |
margin-block-start: var(--#{$hint}__actions--c-menu-toggle--MarginBlockStart); |
| 58 |
margin-block-end: var(--#{$hint}__actions--c-menu-toggle--MarginBlockEnd); |
| 59 |
margin-inline-start: var(--#{$hint}__actions--MarginInlineStart); |
| 60 |
text-align: end; |
| 61 |
|
| 62 |
&.pf-m-no-offset { |
| 63 |
--#{$hint}__actions--c-menu-toggle--MarginBlockStart: 0; |
| 64 |
--#{$hint}__actions--c-menu-toggle--MarginBlockEnd: 0; |
| 65 |
} |
| 66 |
|
| 67 |
+ .#{$hint}__body { |
| 68 |
grid-column: 1; |
| 69 |
} |
| 70 |
} |
| 71 |
|
| 72 |
.#{$hint}__title { |
| 73 |
align-self: center; |
| 74 |
font-weight: var(--#{$hint}__title--FontWeight); |
| 75 |
} |
| 76 |
|
| 77 |
.#{$hint}__body { |
| 78 |
grid-column: 1 / -1; |
| 79 |
font-size: var(--#{$hint}__body--FontSize); |
| 80 |
} |
| 81 |
|
| 82 |
.#{$hint}__footer { |
| 83 |
grid-column: 1 / -1; |
| 84 |
margin-block-start: var(--#{$hint}__footer--MarginBlockStart); |
| 85 |
|
| 86 |
> :not(:last-child) { |
| 87 |
margin-inline-end: var(--#{$hint}__footer--child--MarginInlineEnd); |
| 88 |
} |
| 89 |
} |