Enable sintax highlighting on diff view. Close #733
This commit is contained in:
parent
137a49e834
commit
2bfb8bb5fd
9 changed files with 38 additions and 11 deletions
|
@ -12,10 +12,12 @@ body {
|
|||
img {
|
||||
border-radius: 3px;
|
||||
}
|
||||
pre {
|
||||
pre,
|
||||
code {
|
||||
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
||||
}
|
||||
pre.raw {
|
||||
pre.raw,
|
||||
code.raw {
|
||||
padding: 7px 12px;
|
||||
margin: 10px 0;
|
||||
background-color: #f8f8f8;
|
||||
|
@ -25,7 +27,8 @@ pre.raw {
|
|||
line-height: 1.5;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.wrap {
|
||||
pre.wrap,
|
||||
code.wrap {
|
||||
white-space: pre-wrap;
|
||||
/* CSS 3 */
|
||||
word-break: break-word;
|
||||
|
@ -387,6 +390,11 @@ footer .container .links > *:first-child {
|
|||
width: 95%;
|
||||
}
|
||||
}
|
||||
/* Overrides some styles of the Highlight.js plugin */
|
||||
.hljs {
|
||||
background: inherit !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
.markdown {
|
||||
overflow: hidden;
|
||||
font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif;
|
||||
|
|
|
@ -8,7 +8,7 @@ body {
|
|||
img {
|
||||
border-radius: 3px;
|
||||
}
|
||||
pre {
|
||||
pre, code {
|
||||
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
||||
&.raw {
|
||||
padding: 7px 12px;
|
||||
|
@ -375,3 +375,9 @@ footer {
|
|||
width: 95%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Overrides some styles of the Highlight.js plugin */
|
||||
.hljs {
|
||||
background: inherit !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue