Created
February 22, 2017 13:34
-
-
Save leshido/af24e64ab6627328bfcb7ae0e93a9684 to your computer and use it in GitHub Desktop.
A quick baseline grid overlay using css+svg. Inspired by [Basehold.it](https://basehold.it/).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A quick baseline grid overlay using css+svg. | |
* Inspired by [Basehold.it](https://basehold.it/). | |
* @author leshido | |
*/ | |
body { | |
position: relative; | |
} | |
body::after { | |
/* Change the `height` parameter here to match your base line-height. */ | |
background: url('data:image/svg+xml;utf8,<svg height="27" width="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="0.5" style="fill:rgba(0, 255, 255, 0.3)" /></svg>') repeat top left; | |
content: ""; | |
display: block; | |
pointer-events: none; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
z-index: 9999; | |
position: absolute; | |
} | |
body:active::after { | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
its amazing ..