Last active
December 11, 2018 07:15
-
-
Save productioncoder/8c19044d4bf9d678b4276396b1d40ed5 to your computer and use it in GitHub Desktop.
Youtube in React: CSS classes for dynamic styling of the video info box
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
.video-description { | |
/* Leave the old content just as it was and add the code below */ | |
p { | |
line-height: 1.4rem; | |
margin-bottom: 0; | |
} | |
.collapsed { | |
max-height: 2.8rem; | |
overflow-y: hidden; | |
} | |
.expanded { | |
max-height: none; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment