-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tab setting in https://userstyles.org/styles/37035/github-dark has no effect #543
Comments
Hi @the-j0k3r! It's working for me. I think that another style or userscript, there are a lot, is modifying the tab size and overriding the GitHub Dark setting. Try turning them off one-by-one to find the culprit. Please let us know if it's one of ours. |
Well, I disabled everything except github-dark cleared cookies, restarted firefox, disabled stylus/re-enabled, and still doesnt work. |
Are you using any userscripts? |
Oh, and we just changed the default tab setting on userstyles.org to "don't modify" (disabled). They totally messed up the storage, so you'll need to add any customizations every time you install/update a style. |
I did |
well that works but doesnt work on the tab settings when editing code. edit : the portion on screenshots is the relevant part. |
Ahh, you mean only within CodeMirror... From looking at the HTML, it appears that CodeMirror adds a span with however many spaces you have the tab size set to: <span class="cm-tab" role="presentation" cm-text=" "> </span> <!-- tab size 8 -->
<span class="cm-tab" role="presentation" cm-text=" "> </span> <!-- tab size 4 -->
<span class="cm-tab" role="presentation" cm-text=" "> </span> <!-- tab size 2 --> .cm-tab {
display: inline-block;
text-decoration: inherit;
} I don't think there's much we can do about that besides modifying it with javascript. |
Any ideas @silverwind? The |
You could try |
That almost worked... but setting the font size for the .cm-tab {
display: inline !important;
font-size: 0 !important;
}
span.cm-tab:after {
content: attr(cm-text) !important;
display: inline !important;
font-size: 1rem !important;
} I've tried |
superseded by #959 (comment) |
Github edit
Gist edit tabs
The text was updated successfully, but these errors were encountered: