Skip to content

Instantly share code, notes, and snippets.

@imelgrat
Last active February 15, 2019 18:12
Show Gist options
  • Save imelgrat/bd1df580bcbd89f68fd31b5d8f970645 to your computer and use it in GitHub Desktop.
Save imelgrat/bd1df580bcbd89f68fd31b5d8f970645 to your computer and use it in GitHub Desktop.
Limit width and height of embedded gists.
/**
* Limit embedded gist window size. Show scrollbars when necessary.
* @link https://imelgrat.me/
*/
/* Limit width. Show scrollbars when exceeding width */
.gist {
max-width:350px;
overflow:auto;
}
/* Limit height. Show scrollbars when exceeding height */
.gist .blob-wrapper.data {
max-height:300px;
overflow:auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment