| 1 |
@use '../../sass-utilities' as *; |
| 2 |
|
| 3 |
@include pf-root($skip-to-content) { |
| 4 |
--#{$skip-to-content}--InsetBlockStart: var(--pf-t--global--spacer--md); |
| 5 |
--#{$skip-to-content}--ZIndex: var(--pf-t--global--z-index--2xl); |
| 6 |
--#{$skip-to-content}--focus--InsetInlineStart: var(--pf-t--global--spacer--md); |
| 7 |
} |
| 8 |
|
| 9 |
.#{$skip-to-content} { |
| 10 |
position: absolute; |
| 11 |
inset-block-start: var(--#{$skip-to-content}--InsetBlockStart); |
| 12 |
inset-inline-start: -300%; // moves off screen |
| 13 |
z-index: var(--#{$skip-to-content}--ZIndex); |
| 14 |
|
| 15 |
&:focus-within { |
| 16 |
inset-inline-start: var(--#{$skip-to-content}--focus--InsetInlineStart); |
| 17 |
} |
| 18 |
} |