Feo CSS v2.6.2
  • Introduction
  • What is Feo CSS?
  • Getting started
  • Design tokens
  • Themes
  • Credits
  • Layout
  • Center
  • Cluster
  • Dialog
  • Holy grail
  • Masonry
  • Pancake
  • Sidebar
  • Stack
  • Switcher
  • Tiles
  • Utilities
  • Token-based
  • Flexbox, grid and gap
  • Others
  • Position
  • Typography
  • Made with ♥️ by Crinkles

Layout > Switcher

The .switcher class allows for a responsive grouping of element to automatically switch from horizontal alignment to vertical alignment, based on the width of the parent container.

Utility classes

The available utility classes to alter the settings for .switcher are listed below.

  • .switcher-w-<name>: set the min-width of an individual item in the tile system, based on $feo-breakpoints.
  • .switcher-a-<name>: set the number of child elements it has, used for internal calculations. Default value is 1. When you leave it as 1, the min-widtch will act as that of the parent, instead of the individual children.
  • .gap-<name>: set the gap property, which defines the gap both vertically and horizontally between items in the tile system. Based on $feo-sizes.

If the utility classes are not flexible enough and you want to adjust the way the layout pattern behaves, adjust the --switcher-width custom properties on the element you are applying this pattern to.

Outline: Utility classes
Category:
Layout
Source:
https://github.com
Last modified:
7/2/2022, 9:51:42 AM