summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-07-26 13:44:05 +0300
committerAndrew Dolgov <[email protected]>2017-07-26 13:44:05 +0300
commit23d5d2a4762ee01f9bddf8d9e94dc3d3912a9148 (patch)
tree84818003295a55a7936556fc3451b0ed9d39548f
parent33c48998aa0c98c8ed060bfbe7d2f49cc544aab9 (diff)
tweak chapter display a bit
-rw-r--r--css/read.css4
-rw-r--r--read.html8
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;
}
diff --git a/read.html b/read.html
index 8071db4..e8a668f 100644
--- a/read.html
+++ b/read.html
@@ -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'));