diff options
author | Andrew Dolgov <[email protected]> | 2017-07-26 13:44:05 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-07-26 13:44:05 +0300 |
commit | 23d5d2a4762ee01f9bddf8d9e94dc3d3912a9148 (patch) | |
tree | 84818003295a55a7936556fc3451b0ed9d39548f | |
parent | 33c48998aa0c98c8ed060bfbe7d2f49cc544aab9 (diff) |
tweak chapter display a bit
-rw-r--r-- | css/read.css | 4 | ||||
-rw-r--r-- | read.html | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/css/read.css b/css/read.css index a52c31d..38471db 100644 --- a/css/read.css +++ b/css/read.css @@ -122,6 +122,10 @@ body.night .loading { overflow : auto; } +.toc_list b.pull-right { + margin-right : 8px; +} + .toc_sublist { margin-left : 16px; } @@ -451,8 +451,8 @@ try { var a = $("<a>") .attr('href', '#') - .html(row.label + " <b>(Loc. " + - book.pagination.pageFromCfi(row.cfi) + ")</b>") + .html(row.label + " <b class='pull-right'>" + + book.pagination.pageFromCfi(row.cfi) + "</b>") .attr('data-cfi', row.cfi) .click(function() { book.gotoCfi(a.attr('data-cfi')); @@ -468,8 +468,8 @@ var a = $("<a>") .attr('href', '#') - .html(row.label + " <b>(Loc. " + - book.pagination.pageFromCfi(row.cfi) + ")</b>") + .html(row.label + " <b class='pull-right'>" + + book.pagination.pageFromCfi(row.cfi) + "</b>") .attr('data-cfi', row.cfi) .click(function() { book.gotoCfi(a.attr('data-cfi')); |