Skip to content
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

Codemirror tabs #959

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions github-dark.css
Expand Up @@ -10576,6 +10576,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
24 changes: 24 additions & 0 deletions github-dark.user.css
Expand Up @@ -160,36 +160,57 @@
pre, .highlight, .diff-table, .tab-size {
tab-size: 2 !important;
-moz-tab-size: 2 !important;
}
.cm-tab {
width: 2ch !important;
} EOT;
3 "3" <<<EOT
pre, .highlight, .diff-table, .tab-size {
tab-size: 3 !important;
-moz-tab-size: 3 !important;
}
.cm-tab {
width: 3ch !important;
} EOT;
4 "4" <<<EOT
pre, .highlight, .diff-table, .tab-size {
tab-size: 4 !important;
-moz-tab-size: 4 !important;
}
.cm-tab {
width: 4ch !important;
} EOT;
5 "5" <<<EOT
pre, .highlight, .diff-table, .tab-size {
tab-size: 5 !important;
-moz-tab-size: 5 !important;
}
.cm-tab {
width: 5ch !important;
} EOT;
6 "6" <<<EOT
pre, .highlight, .diff-table, .tab-size {
tab-size: 6 !important;
-moz-tab-size: 6 !important;
}
.cm-tab {
width: 6ch !important;
} EOT;
7 "7" <<<EOT
pre, .highlight, .diff-table, .tab-size {
tab-size: 7 !important;
-moz-tab-size: 7 !important;
}
.cm-tab {
width: 7ch !important;
} EOT;
8 "8" <<<EOT
pre, .highlight, .diff-table, .tab-size {
tab-size: 8 !important;
-moz-tab-size: 8 !important;
}
.cm-tab {
width: 8ch !important;
} EOT;
}
@advanced text font-choice "Code Font" "Menlo"
Expand Down Expand Up @@ -10036,6 +10057,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/usercss.js
Expand Up @@ -72,6 +72,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