Bourbon Neat Cheat Sheet

A Programming › CSS cheat sheet in English by claysmith

A lightweight semantic grid framework for Sass and Bourbon.

31,564 views 6,591 downloads 30 Sep 2013 History
4.9 avg · 1 rating

Bourbon Neat Mixins

fill-p­arent()
Forces the element to fill its parent container.
media( [$firs­t-f­eature] $first­-value [$seco­nd-­fea­ture, $secon­d-v­alue], [$tota­l-c­olumns] )
Outputs a media-­query block with an optional grid context.
span-c­olumns( $columns [of $conta­ine­r-c­olu­mns], [$display] )
Sets the width of an element to that of the number of columns it spans.
pad( [$padd­ing­-sh­ort­hand] )
Adds padding to the element.
omega( [$pseu­do-­target $display] )
Removes block and table elemen­ts' gutter.
outer-­con­tainer()
Centers the element in the viewport, clears its floats, and sets its max-width.
reset-­display()
Resets the active display property to block.
reset-­layout()
Resets the active layout direction to the default value set in $defau­lt-­lay­out­-di­rec­tion.
reset-all()
Resets both the active layout direction and the active display property.
row( [$display, $direc­tion] )
Designates the element as a grid row.
shift( $columns )
Translates an element horizo­ntally positively or negati­vely.

Bourbon Neat Variables

$border­-bo­x-s­izing
[Boolean] When true, it sets the box-sizing property of all elements to border-box. Default: true
$column
[Number (positive, unit)] Sets the relative width of a single grid-c­olumn. Default: golden­-ra­tio­(1em, 3)
$defaul­t-f­eature
[String] Sets the default media feature that media() and new-br­eak­point() revert to when only a breakpoint value is passed. Default: min-width
$defaul­t-l­ayo­ut-­dir­ection
[String (LTR|RTL)] Sets the default layout direction of the grid. Default: LTR
$grids-­columns
[Number (positive, unitless)] Sets the total number of columns in the grid. Default: 12
$gutter
[Number (positive, unit)] Sets the relative width of a single grid gutter. Default: golden­-ra­tio­(1em, 1)
$max-width
[Number (positive, unit)] Sets the max-width property of the element that includes outer-­con­tai­ner(). Default: em(1088)

Bourbon Neat Functions

new-br­eak­point( $first­-fe­ature $first­-value [$seco­nd-­fea­ture, $secon­d-v­alue] [$tota­l-c­olumns] )
Returns a media context (media query / grid context) that can be stored in a variable and passed to media() as a single­-ke­yword argument. Media contexts defined using new-br­eak­point are used by the visual grid, as long as they are defined before importing Neat.

Bourbon Neat Visual Grid

$visual­-grid
[Boolean] When true, it displays the visual grid. Default: false
$visual­-gr­id-­color
[Color] Sets the visual grid color. Default: #eee
$visual­-gr­id-­index
[String (back|­front)] Sets the z-index of the visual grid. Default: back
$visual­-gr­id-­opacity
[Number (0.0-1.0)] Sets the opacity property of the visual grid. Default: 0.4

Badges

Useful Cheat Sheet Nice Cheat Sheet Good Cheat Sheet Downloaded from Unusual Locations × 1

Comments (1)

Ryan 08:37 5 May 2014

Cool.thanks.!

Reply

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.