Last active
February 10, 2019 03:10
-
-
Save akumaf/67973bbc11288d17ca25afd8a0a1a2c8 to your computer and use it in GitHub Desktop.
See http://arevico.com/make-github-gists-more-responsive for information on how to use this gist
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
/** | |
* The following code will make a github embedded gists reponsive | |
* The gist will be 100% in width width, and scroll if a line is to long | |
* if you want wrapping, uncomment the wrapping section | |
* Do note that identation may be butcherd tough | |
*/ | |
.gist{ | |
width:100%; | |
& table{ | |
table-layout: fixed; | |
} | |
& td.js-line-number{ | |
// We need an explicit width for the other column to be auto | |
width: 50px; | |
text-align: center; | |
} | |
/* | |
// Uncomment this scetion to enable wrapping and disable horizontal scrolling | |
& .blob-code-inner{ | |
white-space: pre-wrap; | |
whites-space: wrap; | |
word-wrap:break-word; | |
} */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i tried this but for some reason it disabled vertical scrolling?