Skip to content

Commit

Permalink
apearance tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
hayden-MB committed Oct 21, 2024
1 parent e6a4943 commit 3855a03
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
10 changes: 7 additions & 3 deletions inst/resources/gitbook/css/plugin-fontsettings.css
Original file line number Diff line number Diff line change
Expand Up @@ -307,17 +307,21 @@ div.book.color-theme-2 {
}

.book.line-height-1 .book-body .page-inner section{
line-height: 1.7;
line-height: 1.5;
}

.book.line-height-2 .book-body .page-inner section{
line-height: 2.0;
line-height: 1.7;
}

.book.line-height-3 .book-body .page-inner section{
line-height: 2.5;
line-height: 2.0;
}

.book.line-height-4 .book-body .page-inner section{
line-height: 2.5;
}

.book.line-height-5 .book-body .page-inner section{
line-height: 3.0;
}
29 changes: 20 additions & 9 deletions inst/resources/gitbook/js/plugin-fontsettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ gitbook.require(["gitbook", "lodash", "jQuery"], function(gitbook, _, $) {

var SPACE = {
"1.0":0,
"1.7":1,
"2.0":2,
"2.5":3,
"3.0":4,
"1.5":1,
"1.7":2,
"2.0":3,
"2.5":4,
"3.0":5,
};

// Save current font settings
Expand Down Expand Up @@ -160,28 +161,38 @@ gitbook.require(["gitbook", "lodash", "jQuery"], function(gitbook, _, $) {
}

],

[
{
text: '1.0',
onClick: _.partial(changeSpacing, 0)
},
{
text: '1.7',
text: '1.5',
onClick: _.partial(changeSpacing, 1)
},
{
text: '2.0',
text: '1.7',
onClick: _.partial(changeSpacing, 2)
},
],
[
{
text: '2.8',
text: '2.0',
onClick: _.partial(changeSpacing, 3)
},


{
text: '3.0',
text: '2.5',
onClick: _.partial(changeSpacing, 4)
},
{
text: '3.0',
onClick: _.partial(changeSpacing, 5)
}
]
],

]
});

Expand Down

0 comments on commit 3855a03

Please sign in to comment.