This commit is contained in:
Unisko PENG, 2023-01-15 20:30:45 +08:00
parent b9a9278133
commit 341142b8a5
2 changed files with 17 additions and 6 deletions

View File

@ -1,5 +1,15 @@
var honkit_link = $('a[class=gitbook-link]');
require(['gitbook', 'jQuery'], function(gitbook, $) {
var honkit_link = $('a[class=gitbook-link]');
var text = honkit_link.text();
honkit_link.parent().html(`<span style="align: center;">${text}</span>`);
var text = honkit_link.text();
honkit_link.parent().html(`<span style="align: center;">${text}</span>`);
//
gitbook.events.bind('page.change', function() {
setTimeout(() => {
var el = $('div.book-body');
el.attr('style', '');
}, 300);
});
});

View File

@ -31,9 +31,6 @@ i.fa {
}
@media only screen and (min-width: 1024px) {
div.book-header {
top: 30px;
}
.nav-list .nav-item a {
font-size: small !important;
}
@ -50,4 +47,8 @@ i.fa {
div.book-headr {
top: 5px;
}
a.navigation {
display: none;
}
}