Last active
February 15, 2019 18:12
-
-
Save imelgrat/bd1df580bcbd89f68fd31b5d8f970645 to your computer and use it in GitHub Desktop.
Limit width and height of embedded gists.
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
/** | |
* 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