| 1 |
@use '../../sass-utilities' as *; |
| 2 |
|
| 3 |
@include pf-root($hero) { |
| 4 |
--#{$hero}--PaddingBlockStart: var(--pf-t--global--spacer--3xl); |
| 5 |
--#{$hero}--PaddingBlockEnd: var(--pf-t--global--spacer--3xl); |
| 6 |
--#{$hero}--PaddingInlineStart: var(--pf-t--global--spacer--3xl); |
| 7 |
--#{$hero}--PaddingInlineEnd: var(--pf-t--global--spacer--3xl); |
| 8 |
--#{$hero}--gradient--angle: 109deg; |
| 9 |
--#{$hero}--gradient--stop-1--light: transparent; |
| 10 |
--#{$hero}--gradient--stop-2--light: transparent; |
| 11 |
--#{$hero}--gradient--stop-3--light: transparent; |
| 12 |
--#{$hero}--gradient--stop-1--dark: transparent; |
| 13 |
--#{$hero}--gradient--stop-2--dark: transparent; |
| 14 |
--#{$hero}--gradient--stop-3--dark: transparent; |
| 15 |
--#{$hero}--BackgroundColor: var(--pf-t--global--background--color--tertiary--default); |
| 16 |
--#{$hero}--BackgroundImage--light: none; |
| 17 |
--#{$hero}--BackgroundImage--dark: none; |
| 18 |
--#{$hero}--BackgroundRepeat: no-repeat; |
| 19 |
--#{$hero}--BackgroundPosition: right center; |
| 20 |
--#{$hero}--BackgroundSize: contain; |
| 21 |
--#{$hero}--BorderStyle: solid; |
| 22 |
--#{$hero}--BorderBlockStartWidth: var(--pf-t--global--border--width--regular); |
| 23 |
--#{$hero}--BorderBlockEndWidth: var(--pf-t--global--border--width--regular); |
| 24 |
--#{$hero}--BorderInlineStartWidth: var(--pf-t--global--border--width--regular); |
| 25 |
--#{$hero}--BorderInlineEndWidth: var(--pf-t--global--border--width--regular); |
| 26 |
--#{$hero}--BorderColor: var(--pf-t--global--border--color--default); |
| 27 |
--#{$hero}--BorderStartStartRadius: var(--pf-t--global--border--radius--medium); |
| 28 |
--#{$hero}--BorderStartEndRadius: 48px; |
| 29 |
--#{$hero}--BorderEndEndRadius: var(--pf-t--global--border--radius--medium); |
| 30 |
--#{$hero}--BorderEndStartRadius: 48px; |
| 31 |
--#{$hero}__body--Width: 800px; |
| 32 |
--#{$hero}__body--MaxWidth: 80%; |
| 33 |
|
| 34 |
// Glass styles |
| 35 |
--#{$hero}--m-glass--BackgroundColor: var(--pf-t--global--background--color--glass--primary--default); |
| 36 |
--#{$hero}--m-glass--BackdropFilter: var(--pf-t--global--background--filter--glass--blur--primary); |
| 37 |
--#{$hero}--m-glass--BorderColor: var(--pf-t--global--border--color--glass--default); |
| 38 |
--#{$hero}--m-glass--BoxShadow: var(--pf-t--global--box-shadow--glass--default); |
| 39 |
} |
| 40 |
|
| 41 |
.#{$hero} { |
| 42 |
display: flex; |
| 43 |
padding-block-start: var(--#{$hero}--PaddingBlockStart); |
| 44 |
padding-block-end: var(--#{$hero}--PaddingBlockEnd); |
| 45 |
padding-inline-start: var(--#{$hero}--PaddingInlineStart); |
| 46 |
padding-inline-end: var(--#{$hero}--PaddingInlineEnd); |
| 47 |
background-color: var(--#{$hero}--BackgroundColor); |
| 48 |
background-image: var(--#{$hero}--BackgroundImage, var(--#{$hero}--BackgroundImage--light)), |
| 49 |
linear-gradient( |
| 50 |
var(--#{$hero}--gradient--angle), |
| 51 |
var(--#{$hero}--gradient--stop-1, var(--#{$hero}--gradient--stop-1--light)) 0%, |
| 52 |
var(--#{$hero}--gradient--stop-2, var(--#{$hero}--gradient--stop-2--light)) 50%, |
| 53 |
var(--#{$hero}--gradient--stop-3, var(--#{$hero}--gradient--stop-3--light)) 100% |
| 54 |
); |
| 55 |
background-repeat: var(--#{$hero}--BackgroundRepeat); |
| 56 |
background-position: var(--#{$hero}--BackgroundPosition); |
| 57 |
background-size: var(--#{$hero}--BackgroundSize); |
| 58 |
border-color: var(--#{$hero}--BorderColor); |
| 59 |
border-style: var(--#{$hero}--BorderStyle); |
| 60 |
border-block-start-width: var(--#{$hero}--BorderBlockStartWidth); |
| 61 |
border-block-end-width: var(--#{$hero}--BorderBlockEndWidth); |
| 62 |
border-inline-start-width: var(--#{$hero}--BorderInlineStartWidth); |
| 63 |
border-inline-end-width: var(--#{$hero}--BorderInlineEndWidth); |
| 64 |
border-start-start-radius: var(--#{$hero}--BorderStartStartRadius); |
| 65 |
border-start-end-radius: var(--#{$hero}--BorderStartEndRadius); |
| 66 |
border-end-start-radius: var(--#{$hero}--BorderEndStartRadius); |
| 67 |
border-end-end-radius: var(--#{$hero}--BorderEndEndRadius); |
| 68 |
|
| 69 |
:where(.#{$pf-prefix}theme-glass) &.pf-m-glass { |
| 70 |
--#{$hero}--BorderColor: var(--#{$hero}--m-glass--BorderColor); |
| 71 |
--#{$hero}--BackgroundColor: var(--#{$hero}--m-glass--BackgroundColor); |
| 72 |
|
| 73 |
box-shadow: var(--#{$hero}--m-glass--BoxShadow); |
| 74 |
backdrop-filter: var(--#{$hero}--m-glass--BackdropFilter); |
| 75 |
} |
| 76 |
|
| 77 |
:root:where(.#{$pf-prefix}theme-dark) & { |
| 78 |
--#{$hero}--BackgroundImage: var(--#{$hero}--BackgroundImage--dark); |
| 79 |
--#{$hero}--gradient--stop-1: var(--#{$hero}--gradient--stop-1--dark); |
| 80 |
--#{$hero}--gradient--stop-2: var(--#{$hero}--gradient--stop-2--dark); |
| 81 |
--#{$hero}--gradient--stop-3: var(--#{$hero}--gradient--stop-3--dark); |
| 82 |
} |
| 83 |
} |
| 84 |
|
| 85 |
.#{$hero}__body { |
| 86 |
width: min(var(--#{$hero}__body--Width), var(--#{$hero}__body--MaxWidth)); |
| 87 |
} |