Droppin' Bars
A simple CSS grid system
by @antoniocapelo
Images
are responsive too
Samples
Usage
General
This grid follows a 12-column (bars) rule. So, for each row there needs to be a total of 12 bars for it to be filled.
Each bar can be used as a class or by @extending it on another CSS class.
<div class="myclass bar-6"\>
// or
.myclass {
@extend .bar-6;
}
Responsiveness
The Droppin' Bars grid responds to 3 (it's the magic number) types of sizes: desktop, tablet and mobile.
For this, 3 breakpoints are used, stored on the $mobile-break, $tablet-break and $desktop-break SASS variables.
Utils
Use .hide-desktop, .hide-tablet and .hide-mobile classes to hide an element on a specific device.
Use .bar-center class as a shortcut to text-align: center on an element.
Use .bar-img on an image element to make it responsive while maintaining its ratio.
.bar classes are rounded to 100% width on mobile, but you can use .bar-1-mobile ... .bar-12-mobile to control the width percentage on mobile devices.
Lyrics reference (by order of appearance) : - Method Man - Bring The Pain
- Outkast - Elevators (Me & You)
- Tyler The Creator - Yonkers
- The Fugees - How Many Mics
- Busta Rhymes - Gimme Some More
- Eric B. & Rakim - Paid in Full
- Beastie Boys - Sure Shot
- Method Man - Bring The Pain
- Outkast - Elevators (Me & You)
- Tyler The Creator - Yonkers
- The Fugees - How Many Mics
- Busta Rhymes - Gimme Some More
- Eric B. & Rakim - Paid in Full
- Beastie Boys - Sure Shot