-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgithub-code-wrap.user.css
30 lines (30 loc) · 1.12 KB
/
github-code-wrap.user.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* ==UserStyle==
@name GitHub Code Wrap
@version 1.1.0
@description Userstyle to wrap long code lines on GitHub
@namespace StylishThemes
@author StylishThemes
@homepageURL https://github.com/StylishThemes/GitHub-code-wrap
@supportURL https://github.com/StylishThemes/GitHub-code-wrap/issues
@updateURL https://raw.githubusercontent.com/StylishThemes/GitHub-code-wrap/master/github-code-wrap.user.css
@license CC-BY-SA-4.0
@preprocessor uso
==/UserStyle== */
@-moz-document domain("github.com"), domain("gist.github.com") {
.blob-code-inner, .markdown-body pre > code, .markdown-body .highlight > pre {
white-space: pre-wrap !important;
overflow-wrap: anywhere !important;
}
/* GitHub Bug: Enable wrapping of long code lines */
body:not(.nowrap) .blob-code-inner,
body:not(.nowrap) .markdown-body pre > code,
body:not(.nowrap) .markdown-body .highlight > pre {
white-space: pre-wrap !important;
overflow-wrap: anywhere !important;
display: block !important;
word-break: break-all !important;
}
body:not(.nowrap) td.blob-code-inner {
display: table-cell !important;
}
}