HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/insiders/wp-load/wp-content/plugins/gutenmate/lib/inview/gutenmate-inview.scss
@use "../../../sass-util" as *;

body.admin-bar {
	--gtm-admin-bar-offset: 32px; // Height of admin bar
}

.gtm-has-header-sticky {
	transition: var(--gtm-transition);
	will-change: shadow, background;

	@include useBlockProps("gtm-header-sticky-shadow") using ($val) {
		.gtm-scrolling-up .gtm-stuck & {
			box-shadow: #{$val};
		}
	}

	@include useBlockProps("gtm-header-sticky-bg") using ($val) {
		.gtm-stuck & {
			background: #{$val};
		}
	}
}

.gtm-header-sticky-wrapper {
	will-change: height;
	--gtm-stuck-height-with-offset: calc(
		var(--gtm-admin-bar-offset, 0px) + var(--gtm-stuck-height)
	);

	&.gtm-stuck {
		height: var(--gtm-stuck-height);

		.gtm-header-sticky-inner {
			// To allow shaow
			transition: var(--gtm-transition);
			position: fixed;
			z-index: 98;
			top: calc(-1 * var(--gtm-stuck-height));
			left: 0;
			right: 0;
			transform: 0;

			.gtm-scrolling-up & {
				transform: translateY(var(--gtm-stuck-height-with-offset)) translateZ(0);
			}
		}
	}

	@include breakpoint(sm-only) {
		&.gtm-disable-header-sticky---sm:not(#\9) {
			height: revert;

			.gtm-header-sticky-inner {
				position: unset;
				transform: none;
			}
		}
	}

	@include breakpoint(md-only) {
		&.gtm-disable-header-sticky---md:not(#\9) {
			height: revert;

			.gtm-header-sticky-inner {
				position: unset;
				transform: none;
			}
		}
	}
}

.gtm-header-sticky-inner {
	// Don't add will-change to transform, transition, position, etc.
	// It's caused of lowest z-index of the floating submenu
	will-change: top;
}