Chinese font fix

This commit is contained in:
2015-09-28 03:26:22 +08:00
parent 0f7896a925
commit ac7889e754
7 changed files with 30 additions and 16 deletions

View File

@@ -3,11 +3,8 @@
border-width: 1px;
color: #C2C5C9;
background-color: #0C121B;
word-wrap: break-word;
white-space: pre-wrap;
color: #C2C5C9;
background-color: #0C121B;
}
@@ -64,6 +61,17 @@
position: absolute;
}
.section > div {
margin-bottom: -100px;
overflow-y: hidden;
}
.section > div > p {
padding-bottom: 100px;
overflow-x: scroll;
}
.section:hover:before {
color: #909396;
}

View File

@@ -44,8 +44,8 @@
}
buildMessage.innerHTML = message
.replace( sRegEx, "<pre class=\"section\" data-name=\"$1\">" )
.replace( eRegEx, "</pre>" )
.replace( sRegEx, "<pre class=\"section\" data-name=\"$1\"><div><p>" )
.replace( eRegEx, "</p></div></pre>" )
.replace( /: (failed|ok)\n/g, ": <span class=\"status $1\">$1</span>\n" )
;