|
1 | 1 | // @debug $hint; // check your variable names located in src/patternfly/sass-utilities/component-namespaces.scss |
2 | 2 |
|
3 | | -.#{$hint} { |
4 | | - --#{$hint}--GridRowGap: var(--#{$pf-global}--spacer--md); |
5 | | - --#{$hint}--PaddingTop: var(--#{$pf-global}--spacer--lg); |
6 | | - --#{$hint}--PaddingRight: var(--#{$pf-global}--spacer--lg); |
7 | | - --#{$hint}--PaddingBottom: var(--#{$pf-global}--spacer--lg); |
8 | | - --#{$hint}--PaddingLeft: var(--#{$pf-global}--spacer--lg); |
9 | | - --#{$hint}--BackgroundColor: var(--#{$pf-global}--palette--blue-50); |
10 | | - --#{$hint}--BorderColor: var(--#{$pf-global}--palette--blue-100); |
11 | | - --#{$hint}--BorderWidth: var(--#{$pf-global}--BorderWidth--sm); |
12 | | - --#{$hint}--BoxShadow: var(--#{$pf-global}--BoxShadow--sm); |
13 | | - --#{$hint}--Color: var(--#{$pf-global}--Color--100); |
| 3 | +:root { |
| 4 | + --#{$hint}--GridRowGap: var(--pf-t--global--spacer--sm); |
| 5 | + --#{$hint}--PaddingTop: var(--pf-t--global--spacer--lg); |
| 6 | + --#{$hint}--PaddingRight: var(--pf-t--global--spacer--lg); |
| 7 | + --#{$hint}--PaddingBottom: var(--pf-t--global--spacer--lg); |
| 8 | + --#{$hint}--PaddingLeft: 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--200); // TODO - need semantic variable |
| 12 | + --#{$hint}--BorderRadius: var(--pf-t--global--border--radius--medium); |
| 13 | + --#{$hint}--Color: var(--pf-t--global--text--color--regular); |
14 | 14 |
|
15 | 15 | // Hint Title |
16 | | - --#{$hint}__title--FontSize: var(--#{$pf-global}--FontSize--lg); |
| 16 | + --#{$hint}__title--FontFamily: var(--pf-t--global--font--family--heading); |
| 17 | + --#{$hint}__title--FontSize: var(--pf-t--global--font--size--heading--xs); |
| 18 | + --#{$hint}__title--FontWeight: var(--pf-t--global--font--weight--heading); |
| 19 | + --#{$hint}__title--LineHeight: var(--pf-t--global--font--line-height--heading); |
17 | 20 |
|
18 | 21 | // Hint Body |
19 | | - --#{$hint}__body--FontSize: var(--#{$pf-global}--FontSize--md); |
| 22 | + --#{$hint}__body--FontSize: var(--pf-t--global--font--size--body--md); |
20 | 23 |
|
21 | 24 | // Hint Footer |
22 | | - --#{$hint}__footer--child--MarginRight: var(--#{$pf-global}--spacer--md); |
| 25 | + --#{$hint}__footer--MarginTop: var(--pf-t--global--spacer--sm); |
| 26 | + --#{$hint}__footer--child--MarginRight: var(--pf-t--global--spacer--md); |
23 | 27 |
|
24 | 28 | // Hint Actions |
25 | | - --#{$hint}__actions--MarginLeft: var(--#{$pf-global}--spacer--2xl); |
26 | | - --#{$hint}__actions--c-dropdown--MarginTop: calc(var(--#{$pf-global}--spacer--form-element) * -1); |
| 29 | + --#{$hint}__actions--MarginLeft: var(--pf-t--global--spacer--2xl); |
| 30 | + --#{$hint}__actions--c-dropdown--MarginTop: calc(var(--#{$pf-global}--spacer--form-element) * -1); // TODO form element spacer |
| 31 | +} |
27 | 32 |
|
| 33 | +.#{$hint} { |
28 | 34 | display: grid; |
29 | 35 | grid-template-columns: 1fr auto; |
30 | 36 | grid-row-gap: var(--#{$hint}--GridRowGap); |
|
35 | 41 | color: var(--#{$hint}--Color); |
36 | 42 | background-color: var(--#{$hint}--BackgroundColor); |
37 | 43 | border: var(--#{$hint}--BorderWidth) solid var(--#{$hint}--BorderColor); |
38 | | - box-shadow: var(--#{$hint}--BoxShadow); |
| 44 | + border-radius: var(--#{$hint}--BorderRadius); |
39 | 45 |
|
40 | 46 | // Remove this when the inline link button is updated |
41 | 47 | .#{$button}.pf-m-link.pf-m-inline { |
|
63 | 69 | } |
64 | 70 |
|
65 | 71 | .#{$hint}__title { |
| 72 | + align-self: center; |
| 73 | + font-family: var(--#{$hint}__title--FontFamily); |
66 | 74 | font-size: var(--#{$hint}__title--FontSize); |
| 75 | + font-weight: var(--#{$hint}__title--FontWeight); |
| 76 | + line-height: var(--#{$hint}__title--LineHeight); |
67 | 77 | } |
68 | 78 |
|
69 | 79 | .#{$hint}__body { |
|
73 | 83 |
|
74 | 84 | .#{$hint}__footer { |
75 | 85 | grid-column: 1 / -1; |
| 86 | + margin-block-start: var(--#{$hint}__footer--MarginTop); |
76 | 87 |
|
77 | 88 | > :not(:last-child) { |
78 | 89 | margin-inline-end: var(--#{$hint}__footer--child--MarginRight); |
79 | 90 | } |
80 | 91 | } |
81 | | - |
82 | | -// stylelint-disable no-invalid-position-at-import-rule |
83 | | -@import "themes/dark/hint"; |
84 | | - |
85 | | -@include pf-v5-theme-dark { |
86 | | - @include pf-v5-theme-dark-hint; |
87 | | -} |
|
0 commit comments