Skip to content

Instantly share code, notes, and snippets.

@JoostKiens
Last active June 21, 2016 02:08
Show Gist options
  • Save JoostKiens/4995763 to your computer and use it in GitHub Desktop.
Save JoostKiens/4995763 to your computer and use it in GitHub Desktop.
Graphing paper like background with CSS3 gradients. Inpired by Graphy on Subtle Patterns
/**
* Author: @joostkiens
* Licensed under the MIT license
*/
body {
background:
linear-gradient(-90deg, rgba(0,0,0,.05) 1px, transparent 1px),
linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px),
linear-gradient(-90deg, rgba(0, 0, 0, .04) 1px, transparent 1px),
linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
linear-gradient(transparent 3px, #f2f2f2 3px, #f2f2f2 78px, transparent 78px),
linear-gradient(-90deg, #aaa 1px, transparent 1px),
linear-gradient(-90deg, transparent 3px, #f2f2f2 3px, #f2f2f2 78px, transparent 78px),
linear-gradient(#aaa 1px, transparent 1px),
#f2f2f2;
background-size:
4px 4px,
4px 4px,
80px 80px,
80px 80px,
80px 80px,
80px 80px,
80px 80px,
80px 80px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment