2 CSS objects that will simplify your HTML structure
I haven’t posted anything for almost a year but during that time I’ve learned a lot of useful stuff. Today I’ll share with you two cool things that I use all the time. Split & Join objects will help you building your HTML structure. See demo at the end of article.
Basic settings and helper
1 | $spacing-unit: 32px; |
Split
Classes:
- split – Base class used to split 2 elements
- split--table – Option used with .split class to split more elements
- split--responsive – Makes object responsive
1 | .split { |
Join
Classes:
- join – Base class used to join multiple elements
- join--tiny, join--small, join--large – Control spacing between elements
- join--bottom, join--middle – Controll elements vertical alignment
- join--force – Remove whitespace between elements using float
- join--responsive – Makes object responsive
1 | .join { |