Created
November 23, 2012 05:30
-
-
Save surjikal/4134135 to your computer and use it in GitHub Desktop.
iA Writer style headers
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
body { | |
font-family: monospace; | |
width: 600px; | |
margin: 0 auto; | |
} | |
h1, | |
h2, | |
h3 { | |
line-height: 2em; | |
} | |
h1:before, | |
h2:before, | |
h3:before { | |
display: inline-block; | |
text-align: right; | |
opacity: 0.5; | |
margin-right: 15px; | |
width: 50px; | |
} | |
h1:before { | |
content: '#'; | |
} | |
h2:before { | |
content: '##'; | |
} | |
h3:before { | |
content: '###'; | |
} | |
p { | |
margin-left: 65px; | |
} | |
|
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
<h1>This is a header</h1> | |
<h2>This is another one!</h2> | |
<h3>Woah dude</h3> | |
<p>This is a paragraph of text yo</p> | |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment