|
|
@ -4,14 +4,9 @@ document.addEventListener('DOMContentLoaded', () => document.body.appendChild(st |
|
|
|
|
|
|
|
// Set tab size styles
|
|
|
|
const setTabSizeStyles = size => style.innerHTML = ` |
|
|
|
.tab-size[data-tab-size='2'], |
|
|
|
.tab-size[data-tab-size='4'], |
|
|
|
.tab-size[data-tab-size='8'], |
|
|
|
.inline-review-comment, |
|
|
|
.gist table.lines, |
|
|
|
table.diff-table, |
|
|
|
.markdown-body pre { |
|
|
|
tab-size: ${size} !important; |
|
|
|
* { |
|
|
|
-moz-tab-size: ${size} !important; |
|
|
|
tab-size: ${size} !important; |
|
|
|
}`;
|
|
|
|
|
|
|
|
// Set tab size from settings on load
|
|
|
|