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();Module:
This module is registered as visibility-helper in the presented modules.
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 onmobilescreens..is-tablet-hidden→ hides element ontabletscreens..is-desktop-hidden→ hides element ondesktopscreens..is-widescreen-hidden→ hides element onwidescreenscreens..is-fullhd-hidden→ hides element onfullhdscreens..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.