Last active
December 18, 2015 00:09
-
-
Save adamneilson/5695032 to your computer and use it in GitHub Desktop.
Gists don't seem to display correctly on an iPhone when embedded in a Tumblr post. After a bit of digging I've cobbled together the following CSS which seems to fix the issue.
This file contains hidden or 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
/** corrections for displaying gists in iOS **/ | |
.gist { | |
font-family: Consolas,"Liberation Mono",Courier,monospace; | |
font-size: 12px !important; | |
line-height:20px !important; | |
} | |
.gist .line, | |
.gist .line-number { | |
font-family: Consolas,"Liberation Mono",Courier,monospace; | |
font-size: 12px !important; | |
line-height:20px !important; | |
} | |
.gist .line { | |
font-family: Consolas,"Liberation Mono",Courier,monospace; | |
font-size: 12px !important; | |
line-height:20px !important; | |
height:20px !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This solved my issue on tumblr, thanks!