From 90e83ed6b5a1676495db6c704a31c1f5b56bc22e Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 30 Dec 2014 14:53:44 +0100 Subject: [PATCH] more styling --- src/node/utils/ExportHtml.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/node/utils/ExportHtml.js b/src/node/utils/ExportHtml.js index e23efb486..4b2843c20 100644 --- a/src/node/utils/ExportHtml.js +++ b/src/node/utils/ExportHtml.js @@ -469,32 +469,39 @@ exports.getPadHTMLDocument = function (padId, revNum, noDocType, callback) 'line-height: 17px; }' + 'ul.indent { list-style-type: none; }' + - 'ol { list-style-type: none; }' + + 'ol { list-style-type: none; padding-left:0;}' + 'body > ol { counter-reset: first second; }' + 'ol > li:before {' + 'content: counter(first) ". " ;'+ 'counter-increment: first;}' + - 'ol > li > ol > li:before {' + + 'ol > ol > li:before {' + 'content: counter(first) "." counter(second) ". " ;'+ 'counter-increment: second;}' + - 'ol > li > ol > li > ol > li:before {' + + 'ol > ol > ol > li:before {' + 'content: counter(first) "." counter(second) "." counter(third) ". ";'+ 'counter-increment: third;}' + - 'ol > li > ol > li > ol > li > ol > li:before {' + + 'ol > ol > ol > ol > li:before {' + 'content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) ". ";'+ 'counter-increment: fourth;}' + - 'ol > li > ol > li > ol > li > ol > li > ol > li:before {' + + 'ol > ol > ol > ol > ol > li:before {' + 'content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) ". ";'+ 'counter-increment: fifth;}' + - 'ol > li > ol > li > ol > li > ol > li > ol > li > ol > li:before {' + + 'ol > ol > ol > ol > ol > ol > li:before {' + 'content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) ". ";'+ 'counter-increment: sixth;}' + + 'ol{ text-indent: 0px; }' + + 'ol > ol{ text-indent: 10px; }' + + 'ol > ol > ol{ text-indent: 20px; }' + + 'ol > ol > ol > ol{ text-indent: 30px; }' + + 'ol > ol > ol > ol > ol{ text-indent: 40px; }' + + 'ol > ol > ol > ol > ol > ol{ text-indent: 50px; }' + + stylesForExportCSS + '\n' + '\n') + '';