Last active
May 2, 2017 10:29
-
-
Save bhuvidya/63d53504ae3b0c3ab951ae87ca7d3eb0 to your computer and use it in GitHub Desktop.
Some useful css snippets
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
/* | |
* Apply a transparent gauze to the bottom of a truncated, "read-more" section. | |
*/ | |
.comment-body-view.truncated:after { | |
background: linear-gradient(to top, #eee, rgba(238,238,238,0)); | |
bottom: 0; | |
content: ""; | |
height: 50px; | |
left: 0; | |
position: absolute; | |
width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment