Visibility Helper Module
The Visibility Helper module provides utility classes for conditionally hiding or showing elements based on breakpoints and device types. These helpers are responsive by design and cover common scenarios such as mobile-only content, desktop-only sections, and touch vs. non-touch visibility.
Signature:
scss
@mixin use-visibility-helper();
Example:
scss
@include termeh.use-visibility-helper();
Available Classes
.is-hidden
→ always hides the element..is-until-fullhd-hidden
→ hides element untilfullhd
..is-until-widescreen-hidden
→ hides element untilwidescreen
..is-until-desktop-hidden
→ hides element untildesktop
..is-mobile-hidden
→ hides element onmobile
screens..is-tablet-hidden
→ hides element ontablet
screens..is-desktop-hidden
→ hides element ondesktop
screens..is-widescreen-hidden
→ hides element onwidescreen
screens..is-fullhd-hidden
→ hides element onfullhd
screens..is-mobile-only
→ shows element only onmobile
..is-tablet-only
→ shows element only ontablet
..is-desktop-only
→ shows element only ondesktop
..is-widescreen-only
→ shows element only onwidescreen
..is-fullhd-only
→ shows element only onfullhd
..is-tablet-only-hidden
→ hides element specifically ontablet-only
..is-desktop-only-hidden
→ hides element specifically ondesktop-only
..is-widescreen-only-hidden
→ hides element specifically onwidescreen-only
..is-touch-only
→ shows element only on touch devices..is-touch-hidden
→ hides element on touch devices.