Created
November 5, 2013 19:03
-
-
Save gunnarbittersmann/7324264 to your computer and use it in GitHub Desktop.
heading decorated
This file contains hidden or 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
| /** | |
| * heading decorated | |
| */ | |
| h1 | |
| { | |
| font-size: 1.25em; /* use relative unit */ | |
| text-align: center; | |
| background: | |
| linear-gradient( | |
| to right, | |
| transparent 50%, | |
| white 50% | |
| ) repeat 100% 100%/4px 100%, | |
| linear-gradient( | |
| to bottom, | |
| transparent 50%, | |
| black 50%, | |
| black calc(50% + 1px), | |
| transparent calc(50% + 1px) | |
| ); | |
| } | |
| h1::first-line | |
| { | |
| background: white; | |
| } | |
| h1::before, | |
| h1::after | |
| { | |
| content: ""; | |
| display: inline-block; | |
| width: 1em; | |
| } |
This file contains hidden or 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>Heading</h1> |
This file contains hidden or 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
| // alert('Hello world!'); |
This file contains hidden or 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
| {"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment