Kraken uses a fluid, mobile-first 6-column grid system. It includes offsets, grid nesting, and special classes for content choreography and image galleries.
/scss/lib/_grid.scss
All the settings for the Grid are in /scss/lib/_config.scss
@include grid()
in Scss
Push grids to the right by adding an .offset-*
class.
Note: The grids and offsets cannot add up to more than 6.
@extend
in ScssHere is how to use offsets for the above example with @extend
with @include offset()
mixin.
Flip the order of a grid on bigger screens by adding the .grid-flip
class.
@extend %grid-flip;
Display images in a responsive gallery by using the .grid-img
class.
Note: You can add any number of image grids to a .row
. They'll automatically adjust themselves.
@extend %grid-img;
Because Kraken uses a fluid layout, you can nest grids - useful if you need more complex layouts.
Note: Because the margins between columns are percentage based, nested grid spacing won't be a pixel-to-pixel match to unnested grids.
@include grid();
Kraken has a page width of 80em (approximately 1280px) by default.
for this demo the width is set to 60em
You can adjust this by changing the $containerMaxWidth
in the _config
file for Kraken in /lib