-
-
Save jensgro/421499afc30ca0066361 to your computer and use it in GitHub Desktop.
heading decorated
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
/** | |
* 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 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, das auch noch ne runde größer wird</h1> |
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
// alert('Hello world!'); |
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
{"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