| 1 |
@use '../../sass-utilities' as *; |
| 2 |
|
| 3 |
@include pf-root($back-to-top) { |
| 4 |
--#{$back-to-top}--InsetInlineEnd: var(--pf-t--global--spacer--2xl); |
| 5 |
--#{$back-to-top}--InsetBlockEnd: var(--pf-t--global--spacer--lg); |
| 6 |
--#{$back-to-top}--md--InsetBlockEnd: var(--pf-t--global--spacer--2xl); |
| 7 |
--#{$back-to-top}--c-button--FontSize: var(--pf-t--global--font--size--body--sm); |
| 8 |
--#{$back-to-top}--c-button--PaddingBlockStart: var(--pf-t--global--spacer--xs); |
| 9 |
--#{$back-to-top}--c-button--PaddingInlineEnd: var(--pf-t--global--spacer--sm); |
| 10 |
--#{$back-to-top}--c-button--PaddingBlockEnd: var(--pf-t--global--spacer--xs); |
| 11 |
--#{$back-to-top}--c-button--PaddingInlineStart: var(--pf-t--global--spacer--sm); |
| 12 |
--#{$back-to-top}--c-button--BoxShadow: var(--pf-t--global--box-shadow--sm); |
| 13 |
|
| 14 |
@media (min-width: $pf-v6-global--breakpoint--md) { |
| 15 |
--#{$back-to-top}--InsetBlockEnd: var(--#{$back-to-top}--md--InsetBlockEnd); |
| 16 |
} |
| 17 |
} |
| 18 |
|
| 19 |
.#{$back-to-top} { |
| 20 |
position: absolute; |
| 21 |
inset-block-end: var(--#{$back-to-top}--InsetBlockEnd); |
| 22 |
inset-inline-end: var(--#{$back-to-top}--InsetInlineEnd); |
| 23 |
|
| 24 |
&.pf-m-hidden { |
| 25 |
display: none; |
| 26 |
} |
| 27 |
|
| 28 |
.#{$button} { |
| 29 |
--#{$button}--FontSize: var(--#{$back-to-top}--c-button--FontSize); |
| 30 |
--#{$button}--PaddingBlockStart: var(--#{$back-to-top}--c-button--PaddingBlockStart); |
| 31 |
--#{$button}--PaddingInlineEnd: var(--#{$back-to-top}--c-button--PaddingInlineEnd); |
| 32 |
--#{$button}--PaddingBlockEnd: var(--#{$back-to-top}--c-button--PaddingBlockEnd); |
| 33 |
--#{$button}--PaddingInlineStart: var(--#{$back-to-top}--c-button--PaddingInlineStart); |
| 34 |
|
| 35 |
box-shadow: var(--#{$back-to-top}--c-button--BoxShadow); |
| 36 |
} |
| 37 |
} |