|
| 1 | +:host { |
| 2 | + --hint--GridRowGap: var(--pf-v5-c-hint--GridRowGap, 1rem); |
| 3 | + --hint--PaddingTop: var(--pf-v5-c-hint--PaddingTop, 1.5rem); |
| 4 | + --hint--PaddingRight: var(--pf-v5-c-hint--PaddingRight, 1.5rem); |
| 5 | + --hint--PaddingBottom: var(--pf-v5-c-hint--PaddingBottom, 1.5rem); |
| 6 | + --hint--PaddingLeft: var(--pf-v5-c-hint--PaddingLeft, 1.5rem); |
| 7 | + --hint--BackgroundColor: var(--pf-v5-c-hint--BackgroundColor, #e7f1fa); |
| 8 | + --hint--BorderColor: var(--pf-v5-c-hint--BorderColor, #bee1f4); |
| 9 | + --hint--BorderWidth: var(--pf-v5-c-hint--BorderWidth, 1px); |
| 10 | + --hint--BoxShadow: var( |
| 11 | + --pf-v5-c-hint--BoxShadow, |
| 12 | + 0 0.0625rem 0.125rem 0 rgb(3 3 3 / 12%), |
| 13 | + 0 0 0.125rem 0 rgb(3 3 3 / 6%) |
| 14 | + ); |
| 15 | + --hint--Color: var(--pf-v5-c-hint--Color, #151515); |
| 16 | + --hint__title--Color: var(--pf-v5-c-hint--Color, #151515); |
| 17 | + --hint__title--FontSize: var(--pf-v5-c-hint__title--FontSize, 1.125rem); |
| 18 | + --hint__body--FontSize: var(--pf-v5-c-hint__body--FontSize, 1rem); |
| 19 | + --hint__footer--child--MarginRight: var(--pf-v5-c-hint__footer--child--MarginRight, 1rem); |
| 20 | + --hint__actions--MarginLeft: var(--pf-v5-c-hint__actions--MarginLeft, 3rem); |
| 21 | + --hint__actions--c-dropdown--MarginTop: var( |
| 22 | + --pf-v5-c-hint__actions--c-dropdown--MarginTop, |
| 23 | + calc(0.375rem * -1) |
| 24 | + ); |
| 25 | + --hint--m-success--BackgroundColor: var(--ak-v1-c-hint--m-success--BackgroundColor, #f3faf2); |
| 26 | + --hint--m-success--BorderColor: var(--ak-v1-c-hint--m-success--BorderColor, #3e8635); |
| 27 | + --hint--m-success__title--Color: var(--ak-v1-c-hint--m-success__title--Color, #3e8635); |
| 28 | + --hint--m-warning--BackgroundColor: var(--ak-v1-c-hint--m-warning--BackgroundColor, #fdf7e7); |
| 29 | + --hint--m-warning--BorderColor: var(--ak-v1-c-hint--m-warning--BorderColor, #f4c145); |
| 30 | + --hint--m-warning__title--Color: var(--ak-v1-c-hint--m-warning__title--Color, #795600); |
| 31 | + --hint--m-danger--BackgroundColor: var(--ak-v1-c-hint--m-danger--BackgroundColor, #faeae8); |
| 32 | + --hint--m-danger--BorderColor: var(--ak-v1-c-hint--m-danger--BorderColor, #c9190b); |
| 33 | + --hint--m-danger__title--Color: var(--ak-v1-c-hint--m-danger__title--Color, #470000); |
| 34 | +} |
| 35 | + |
| 36 | +:host(:not([hidden])) { |
| 37 | + display: block; |
| 38 | +} |
| 39 | + |
| 40 | +[part="hint"] { |
| 41 | + display: grid; |
| 42 | + grid-template-columns: 1fr auto; |
| 43 | + row-gap: var(--hint--GridRowGap); |
| 44 | + padding-block-start: var(--hint--PaddingTop); |
| 45 | + padding-block-end: var(--hint--PaddingBottom); |
| 46 | + padding-inline-start: var(--hint--PaddingLeft); |
| 47 | + padding-inline-end: var(--hint--PaddingRight); |
| 48 | + color: var(--hint--Color); |
| 49 | + background-color: var(--hint--BackgroundColor); |
| 50 | + border: var(--hint--BorderWidth) solid var(--hint--BorderColor); |
| 51 | + box-shadow: var(--hint--BoxShadow); |
| 52 | +} |
| 53 | + |
| 54 | +:host([variant="success"]) { |
| 55 | + --hint--BackgroundColor: var(--hint--m-success--BackgroundColor); |
| 56 | + --hint--BorderColor: var(--hint--m-success--BorderColor); |
| 57 | + --hint__title--Color: var(--hint--m-success__title--Color); |
| 58 | +} |
| 59 | + |
| 60 | +:host([variant="warning"]) { |
| 61 | + --hint--BackgroundColor: var(--hint--m-warning--BackgroundColor); |
| 62 | + --hint--BorderColor: var(--hint--m-warning--BorderColor); |
| 63 | + --hint__title--Color: var(--hint--m-warning__title--Color); |
| 64 | +} |
| 65 | + |
| 66 | +:host([variant="danger"]) { |
| 67 | + --hint--BackgroundColor: var(--hint--m-danger--BackgroundColor); |
| 68 | + --hint--BorderColor: var(--hint--m-danger--BorderColor); |
| 69 | + --hint__title--Color: var(--hint--m-danger__title--Color); |
| 70 | +} |
| 71 | + |
| 72 | +[part="hint"] > [part="title"] ::slotted(*) { |
| 73 | + font-size: var(--hint__title--FontSize); |
| 74 | + color: var(--hint__title--Color); |
| 75 | +} |
| 76 | + |
| 77 | +[part="hint"] > [part="body"] ::slotted(*) { |
| 78 | + font-size: var(--hint__body--FontSize); |
| 79 | +} |
| 80 | + |
| 81 | +[part="hint"] > [part="footer"] ::slotted(*) { |
| 82 | + font-size: var(--hint__footer--FontSize); |
| 83 | +} |
| 84 | + |
| 85 | +[part="title"], |
| 86 | +[part="body"], |
| 87 | +[part="footer"] { |
| 88 | + grid-column: 1/-1; |
| 89 | +} |
0 commit comments