Closed razonyang closed 1 year ago
The --#{$prefix}top-offset CSS variable is used by the top property with the sticky and absolute positions.
--#{$prefix}top-offset
top
sticky
absolute
.my-sticky-element { @include top-offset(sticky); }
You can also use the hb-top-offset with position-sticky utilities class.
hb-top-offset
position-sticky
<div class="my-sticky-element position-sticky hb-top-offset"></div>
The former is useful for specified media query.
The
--#{$prefix}top-offset
CSS variable is used by thetop
property with thesticky
andabsolute
positions.You can also use the
hb-top-offset
withposition-sticky
utilities class.The former is useful for specified media query.