Fixed bullet styles and added code highlight on comments

This commit is contained in:
Dan Brown 2017-09-10 16:14:04 +01:00
parent 874386ceab
commit 9a3bc27ef4
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
2 changed files with 6 additions and 6 deletions

View File

@ -57,7 +57,7 @@ const modeMap = {
* Highlight pre elements on a page
*/
function highlight() {
let codeBlocks = document.querySelectorAll('.page-content pre');
let codeBlocks = document.querySelectorAll('.page-content pre, .comment-box .content pre');
for (let i = 0; i < codeBlocks.length; i++) {
highlightElem(codeBlocks[i]);
}
@ -75,7 +75,7 @@ function highlightElem(elem) {
mode = getMode(langName);
}
elem.innerHTML = elem.innerHTML.replace(/<br\s*[\/]?>/gi ,'\n');
let content = elem.textContent;
let content = elem.textContent.trim();
CodeMirror(function(elt) {
elem.parentNode.replaceChild(elt, elem);

View File

@ -549,10 +549,10 @@ body.flexbox-support #entity-selector-wrap .popup-body .form-group {
.content {
padding: $-s;
font-size: 0.666em;
}
.content p {
font-size: $fs-m;
margin: .5em 0;
p, ul {
font-size: $fs-m;
margin: .5em 0;
}
}
.reply-row {
padding: $-xs $-s;