-
-
Save Ruslan2230/1bca377bb4565a38da3fe84186494f7e to your computer and use it in GitHub Desktop.
Custom underlines
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
| /** | |
| * Custom underlines | |
| */ | |
| body { | |
| font: 250%/1.6 Baskerville, Palatino, serif; | |
| } | |
| a { | |
| background: linear-gradient(gray, gray) no-repeat; | |
| background-size: 100% 1px; | |
| background-position: 0 1.02em; | |
| text-shadow: .05em 0 white, -.05em 0 white; | |
| } | |
| p:nth-child(2) a { | |
| background: linear-gradient(90deg, gray 66%, transparent 0) repeat-x; | |
| background-size: .2em 2px; | |
| background-position: 0 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
| <p>“The only way to <a>get rid of a temptation</a> is to <a>yield</a> to it.”</p> | |
| <p>“The only way to <a>get rid of a temptation</a> is to <a>yield</a> to it.”</p> |
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","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment