Skip to content
Snippets Groups Projects
Commit ee0c7ec7 authored by echicken's avatar echicken :chicken:
Browse files

Added pre.list class, inherits background colour from parent element; non-ANSI...

Added pre.list class, inherits background colour from parent element; non-ANSI file extdescs are put in pre.list blocks.
parent c697354a
No related branches found
No related tags found
No related merge requests found
...@@ -70,6 +70,11 @@ pre.ansi { ...@@ -70,6 +70,11 @@ pre.ansi {
line-height : 1; line-height : 1;
} }
pre.list {
background-color : inherit;
border : none;
}
.icon { .icon {
margin: 0 1em 1em 0; margin: 0 1em 1em 0;
} }
......
...@@ -33,7 +33,7 @@ if (typeof http_request.query.dir !== 'undefined' && ...@@ -33,7 +33,7 @@ if (typeof http_request.query.dir !== 'undefined' &&
} else if (file.extdesc.search(/(\x1B\[|[\xA8-\xFE])/) > -1) { } else if (file.extdesc.search(/(\x1B\[|[\xA8-\xFE])/) > -1) {
file.extdesc = '<pre class="ansi">' + html_encode(file.extdesc, true, false, true, true) + '</pre>'; file.extdesc = '<pre class="ansi">' + html_encode(file.extdesc, true, false, true, true) + '</pre>';
} else { } else {
file.extdesc = '<pre>' + file.extdesc + '</pre>'; file.extdesc = '<pre class="list">' + file.extdesc + '</pre>';
} }
writeln( writeln(
format( format(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment