Created
November 7, 2013 09:47
-
-
Save gunnarbittersmann/7351965 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 | |
*/ | |
html | |
{ | |
height: 100%; | |
background: linear-gradient( | |
to right bottom, | |
yellow, | |
red | |
); | |
} | |
h1 | |
{ | |
font-size: 1.25em; | |
text-align: center; | |
display: table; | |
border-collapse: collapse; | |
} | |
h1::before, | |
h1::after | |
{ | |
content: ""; | |
display: table-cell; | |
width: 50%; | |
background-image: linear-gradient( | |
to right, | |
transparent 50%, | |
black 50% | |
); | |
background-position: 0px 50%; | |
background-size: 4px 1px; | |
background-repeat: repeat-x; | |
} | |
h1::before | |
{ | |
border-right: solid 2em transparent; | |
} | |
h1::after | |
{ | |
border-left: solid 2em transparent; | |
} |
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