Module: deliteful/channelBreakpoints

deliteful/channelBreakpoints

This module returns an object containing properties that define values for breakpoints of CSS media queries based on screen size:

  • smallScreen: defines the screen size limit between phone-like and tablet-like channels.
  • mediumScreen: defines the screen size limit between tablet-like and desktop-like channels.

The values of the breakpoints are used by CSS media queries of deliteful/features for setting the has()-flags "phone-like-channel", "tablet-like-channel", and "desktop-like-channel".

The default values of the breakpoints can be configured using require.config(), for instance:

<script>
  // configuring RequireJS
  require.config({
    ...
    config: {
      "deliteful/channelBreakpoints": {
        smallScreen: "280px",
        mediumScreen: "724px"
      }
    }
  });
</script>
Show inherited

Members

mediumScreen :string

The maximum screen size value for medium screens. Used as breakpoint by a CSS media query of deliteful/features as screen size threshold between the tablet-like and the desktop-like channels.

Type:
  • string
Default Value:
  • "1024px"
Source:

smallScreen :string

The maximum screen size value for small screens. Used as breakpoint by a CSS media query of deliteful/features as screen size threshold between the phone-like and the tablet-like channels.

Type:
  • string
Default Value:
  • "480px"
Source:

deliteful/channelBreakpoints~ deliteful/channelBreakpoints

Show inherited

Members

mediumScreen :string

The maximum screen size value for medium screens. Used as breakpoint by a CSS media query of deliteful/features as screen size threshold between the tablet-like and the desktop-like channels.

Type:
  • string
Default Value:
  • "1024px"
Source:

smallScreen :string

The maximum screen size value for small screens. Used as breakpoint by a CSS media query of deliteful/features as screen size threshold between the phone-like and the tablet-like channels.

Type:
  • string
Default Value:
  • "480px"
Source: