Skip to content

Instantly share code, notes, and snippets.

@jazzyjackson
Last active March 12, 2020 20:59
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 jazzyjackson/fec66b8cfad5550ae6973eda63633032 to your computer and use it in GitHub Desktop.
Save jazzyjackson/fec66b8cfad5550ae6973eda63633032 to your computer and use it in GitHub Desktop.
.gist tr {
display: flex;
}
.gist .blob-num {
/* widen the gutter to fit triple digits */
width: 2.5em !important;
}
.gist .blob-num::before {
position: relative;
right: 0.5em;
}
@jazzyjackson
Copy link
Author

Note this is a fix for gists with under 100 lines, 2 digits looks good, and I'm only posting small gists.

@jazzyjackson
Copy link
Author

OK now with the 2.5em !important it works for 3 digit line numbers.

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