| 1 |
@use '../../sass-utilities' as *; |
| 2 |
|
| 3 |
@include pf-root($background-image) { |
| 4 |
--#{$background-image}--BackgroundColor: var(--pf-t--global--background--color--primary--default); |
| 5 |
--#{$background-image}--BackgroundImage: none; |
| 6 |
--#{$background-image}--BackgroundSize--min-width: 200px; |
| 7 |
--#{$background-image}--BackgroundSize--width: 60%; |
| 8 |
--#{$background-image}--BackgroundSize--max-width: 600px; |
| 9 |
--#{$background-image}--BackgroundSize: clamp(var(--#{$background-image}--BackgroundSize--min-width), var(--#{$background-image}--BackgroundSize--width), var(--#{$background-image}--BackgroundSize--max-width)); |
| 10 |
|
| 11 |
} |
| 12 |
|
| 13 |
.#{$background-image} { |
| 14 |
@include pf-v6-bidirectional-style( |
| 15 |
$prop: --#{$background-image}--BackgroundPosition, |
| 16 |
$ltr-val: bottom right, |
| 17 |
$rtl-val: bottom left |
| 18 |
); |
| 19 |
|
| 20 |
position: fixed; |
| 21 |
inset-block-start: 0; |
| 22 |
inset-inline-start: 0; |
| 23 |
z-index: -1; |
| 24 |
width: 100%; |
| 25 |
height: 100%; |
| 26 |
background-color: var(--#{$background-image}--BackgroundColor); |
| 27 |
background-image: var(--#{$background-image}--BackgroundImage); |
| 28 |
background-repeat: no-repeat; |
| 29 |
background-position: var(--#{$background-image}--BackgroundPosition); |
| 30 |
background-size: var(--#{$background-image}--BackgroundSize); |
| 31 |
} |