Skip to content

kWeb24/antimatter.css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Antimatter.css

You can't create flexbox grid that will be less than 1kb

Hold my beer

Antimatter is fully functional responsive flexbox grid and its only 877 bytes mimified and gzipped! Compatible with: IE 11, Firefox 37+, Chrome 42+, Opera 29+, IE Mobile 11, Android Chrome 42+ and Android Firefox 37+!

The fundamental difference between Antimatter.css and other frameworks is that you use attributes instead of classes to define columns.

For running exampels and documentation visit this page Antimatter.css docs and examples

All the necessary features in less than 1kb!

  • 12 column flex grid
  • Offsets
  • Positioning:
  • Start, center, end
  • Top, middle, bottom
  • Around, between
  • First, last
  • Box-sizing reset
  • Breakpoints: Small, Medium, Large

Attributes

  • s - Number of columns. Small screens. Below 768px
  • m - Number of columns. Medium screens. 768px - 986px
  • l - Number of columns. Large screens. Above 968px

Offset

  • so - Number of columns. Small screens. Below 768px
  • mo - Number of columns. Medium screens. 768px - 986px
  • lo - Number of columns. Large screens. Above 968px

Classes (Small, Medium, Large)

  • flu - Fluid container
  • row - Row
  • col - Column
  • sts, stm, stl - Align elements to the start of a row
  • ces, cem, cel - Align elements to the center of a row
  • ends, endm, endl - Align elements to the end of a row
  • tops, topm, topl - Align elements to the top of a row
  • mids, midm, midl - Align elements in the middle of a row
  • bots, botm, botl - Align elements to the bottom of a row
  • aros, arom, arol - Distribute the contents of a row or column around
  • bets, betm, betl - Distribute the contents of a row or column between
  • firs, firm, firl - Reorder column as first
  • lass, lasm, lasl - Reorder column as last
  • rev - Reverse column order

License

MIT License

Copyright 2017 Kamil Weber

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Fully functional flex grid in 877 bytes!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published