Skip to content

Commit

Permalink
Global: Fix CodeMirror tab sizes. See #543
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Jun 21, 2019
1 parent 690e58c commit 3572bc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions github-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -8508,6 +8508,9 @@
.blob-code, .blob-code-inner {
color: var(--ghd-code-color, #ccc) !important;
}
.cm-tab {
overflow: hidden !important;
}
}
@-moz-document regexp("^https://www\.zuora\.com.*github\.com.*$") {
/* Styles the payment form iframe */
Expand Down
3 changes: 3 additions & 0 deletions tools/build-usercss.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ function makeTabs(css) {
pre, .highlight, .diff-table, .tab-size {
tab-size: ${tab} !important;
-moz-tab-size: ${tab} !important;
}
.cm-tab {
width: ${tab}ch !important;
} EOT;`);
});
return css.replace(" {{tab-sizes}}", tabs.join("\n"));
Expand Down

0 comments on commit 3572bc6

Please sign in to comment.