Created
September 6, 2015 17:21
-
-
Save andy0130tw/01a14c26b59d8b698f54 to your computer and use it in GitHub Desktop.
Fix for BBSFox with Source Han Sans HW.
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
@namespace url(http://www.w3.org/1999/xhtml); | |
/** | |
* Because the text height of Source Han Sans is too tall for a terminal, | |
* using BBSFox with it would result in a crowding view. | |
* Thanks to Stylish, we can fix it with some simple CSS, | |
* whose concept is very simple. | |
* The position of the cursor should also be shifted after applying this tweak. | |
*/ | |
@-moz-document regexp("^telnet://.+") { | |
.BBSLine .s { | |
display: block; | |
overflow: hidden; | |
} | |
#cursor { | |
transform: translateY(14px); | |
} | |
} |
@uWayLu Thanks for your comment to keep this solution up-to-date! But I haven't used BBSFox/PttChrome since then, I am not updating this gist for now.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!
Due to pttChrome updated, I use selector "span[data-type="bbsline"]" instead.