more styling

pull/2420/head
John McLear 2014-12-30 14:53:44 +01:00
parent 716b1c6113
commit 90e83ed6b5
1 changed files with 13 additions and 6 deletions

View File

@ -469,32 +469,39 @@ exports.getPadHTMLDocument = function (padId, revNum, noDocType, callback)
'line-height: 17px; }' + 'line-height: 17px; }' +
'ul.indent { list-style-type: none; }' + '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; }' + 'body > ol { counter-reset: first second; }' +
'ol > li:before {' + 'ol > li:before {' +
'content: counter(first) ". " ;'+ 'content: counter(first) ". " ;'+
'counter-increment: first;}' + 'counter-increment: first;}' +
'ol > li > ol > li:before {' + 'ol > ol > li:before {' +
'content: counter(first) "." counter(second) ". " ;'+ 'content: counter(first) "." counter(second) ". " ;'+
'counter-increment: second;}' + 'counter-increment: second;}' +
'ol > li > ol > li > ol > li:before {' + 'ol > ol > ol > li:before {' +
'content: counter(first) "." counter(second) "." counter(third) ". ";'+ 'content: counter(first) "." counter(second) "." counter(third) ". ";'+
'counter-increment: 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) ". ";'+ 'content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) ". ";'+
'counter-increment: 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) ". ";'+ 'content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) ". ";'+
'counter-increment: 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) ". ";'+ 'content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) ". ";'+
'counter-increment: 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 + stylesForExportCSS +
'</style>\n' + '</head>\n') + '</style>\n' + '</head>\n') +
'<body>'; '<body>';