Damien Dotta
Damien Dotta

Reputation: 939

How to increase width of the sidebar menu in bookdown

I'd like to increase the width of the sidebar menu in my bookdown.
I need more space for my chapter headings...
Here's a basic example

I tried :

.book-summary {
  width: 650px;
}

But it's certainly more complicated... especially to make it work with the toggle button.
Maybe a css trick ?

Thanks in advance !

Upvotes: 2

Views: 808

Answers (1)

Radovan Miletić
Radovan Miletić

Reputation: 2821

As a common ground, we can take an github example of "bookdown: Authoring Books and Technical Documents with R Markdown" and add css below to it style.css (here):

.book.with-summary .book-header.fixed {
    left: 650px;
}

.book.with-summary .book-body {
    left: 650px;
}

.book .book-summary {
    width: 650px;
}

Does this helps?

Upvotes: 2

Related Questions