Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.83 KB

README.md

File metadata and controls

56 lines (42 loc) · 1.83 KB

Gridsplosion

Extensible responsive/fluid/sass grid system based on csswizardry-grids

Enhancements / Decisions

  • Using numbers instead of words (desk-2-6 instead of desk-two-sixes).
  • Grid explosion & media queries via functions- easily extensible.
  • Addition of 16, 24 grids.
  • Addition of visible/hidden imitating bootstrap.
  • Media queries via phone, device (phones+tablets), laptop, desktop.
  • Changing font size percentage for media queries.
  • Using sass silent-classes by default (as the explosion generates a lot of classes)
  • Using em/percentage for spacing

Basic usage

html:

<div class="navigation" />
<div class="page">
        <div class="main" />
        <div class="side" />
</div>

Sass:

.navigation { @extend %phone-hidden; }
.page { @extend .grid; }
.main {
  @extend .gi;
  @extend %s-2-3;
  @extend %phone-full;
}
.main {
  @extend .gi;
  @extend %s-1-3;
  @extend %phone-full;
}
  • Will hide navigation on phones
  • Will make the side below the main on phones
  • Will make the main twice as big as the side (side by side) on everything else

Motives

Todo

  • Make it mobile first by default?
  • Check usage of floats/margins instead of inline-blocks/padding