Skip to content

Instantly share code, notes, and snippets.

@akumaf
Last active February 10, 2019 03:10
Show Gist options
  • Save akumaf/67973bbc11288d17ca25afd8a0a1a2c8 to your computer and use it in GitHub Desktop.
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
/**
* 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;
} */
}
@weallwegot
Copy link

i tried this but for some reason it disabled vertical scrolling?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment