Skip to content

Instantly share code, notes, and snippets.

@nielk
Created July 16, 2014 18:57
Show Gist options
  • Save nielk/9262c152867a7dba8337 to your computer and use it in GitHub Desktop.
Save nielk/9262c152867a7dba8337 to your computer and use it in GitHub Desktop.
baseline grid css
#baseline.show-grid {
background: -webkit-linear-gradient(top,rgba(50,50,50, 0.2)0,rgba(50,50,50, 0.2)1px,rgba(255, 255, 255, 0)1px,rgba(255, 255, 255, 0)2px);
background: -webkit-gradient(linear,left top,left bottom,color-stop(0px,rgba(50,50,50,.2)),color-stop(1px,rgba(50,50,50,.2)),color-stop(1px,rgba(255,255,255,0)),color-stop(2px,rgba(255,255,255,0)));
background: linear-gradient(to bottom,rgba(50,50,50, 0.2)0,rgba(50,50,50, 0.2)1px,rgba(255, 255, 255, 0)1px,rgba(255, 255, 255, 0)2px);
background-size: 100% 1rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment