Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active December 11, 2018 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save productioncoder/8c19044d4bf9d678b4276396b1d40ed5 to your computer and use it in GitHub Desktop.
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
.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