Skip to content

Commit

Permalink
Merge pull request #1 from hayden-MB/test
Browse files Browse the repository at this point in the history
merge in test branch
  • Loading branch information
hayden-MB authored Oct 23, 2024
2 parents 43fbc5b + 9102883 commit fd6ac60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions inst/resources/gitbook/css/plugin-fontsettings.css
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,3 @@ div.book.color-theme-2 {
font-weight: 600;
}

/* line-height */
.book .book-body .page-wrapper .page-inner section.normal {
line-height: attr(data-line-height);
}
4 changes: 2 additions & 2 deletions inst/resources/gitbook/js/plugin-fontsettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ gitbook.require(["gitbook", "lodash", "jQuery"], function(gitbook, _, $) {
$book[0].className = $book[0].className.replace(/\bcolor-theme-\S+/g, '');
$book.addClass("color-theme-"+fontState.theme);
}
$book[0].querySelector('section').dataset.lineHeight = fontState.spacing / 10;

var lineHeight = Math.max(fontState.spacing / 10, 1);
$book.find('section').css('line-height', lineHeight);
};

function init(config) {
Expand Down

0 comments on commit fd6ac60

Please sign in to comment.