MaxMilton/ekscss

View on GitHub
packages/framework/addon/float.xcss

Summary

Maintainability
Test Coverage
/**
* XCSS Addon: Float Layout
*
* Control layout using float. This technique is outdated and typically only
* used when supporting very old browsers.
*
* For modern browsers use flexbox and CSS grid.
* @see https://caniuse.com/flexbox
* @see https://caniuse.com/css-grid
*/

.left {
  float: left;
}

.right {
  float: right;
}

.clear::after {
  display: block;
  clear: both;
  content: '';
}