netlogix/breakpointconditionalcontent

There is no license information available for the latest version (2.1.0) of this package.

Adds a content wrapper element that allows selectable, breakpoint identifying classes intended to be styled as needed.

2.1.0 2024-11-05 14:45 UTC

This package is auto-updated.

Last update: 2024-11-05 15:31:36 UTC


README

This package adds a simple node type that receives a subset of one or multiple editor-selectable classes with the intention to control the display of content dependent on device breakpoints.

Intended use case and styling

The content element created by this package is intended to be used as a container to wrap the content which needs to be displayed conditionally. This container then receives classes (see below) that require to be styled as needed, for example by setting the base class to 'display: none;' and then using media-queries to re-enable the display for a given breakpoint.

Base class

The wrapper receives a base class of 'breakpoint-conditional-content' irrespective of selected breakpoints.

Available breakpoints

  • xs:
    • intended for Mobile / Extra small
    • assigned class: 'breakpoint-xs'
  • sm:
    • intended for Mobile / Small
    • assigned class: 'breakpoint-xs'
  • md:
    • intended for Tablet / Medium
    • assigned class: 'breakpoint-md'
  • lg:
    • intended for Desktop / Large
    • assigned class: 'breakpoint-lg'
  • xl:
    • intended for Desktop / Extra large
    • assigned class: 'breakpoint-xl'