prettydoc icon indicating copy to clipboard operation
prettydoc copied to clipboard

How to shrink the left margin using cayman theme

Open steveb-cirina opened this issue 5 years ago • 1 comments

Hi

I am using the "cayman" theme with the following YAML:

output:
  prettydoc::html_pretty:
    toc: true
    theme: cayman

I find that the left margin (the white space before the content) is quite large, is there a way to shrink (resize) this ?

I have googled this but didn't find anything that helped.

Thanks!

steveb-cirina avatar Jan 31 '20 00:01 steveb-cirina

For the current unpublished version in the master branch, you can add a customized CSS with the following content:

.main-content, .toc {
    max-width: 80rem;
}

You may adjust the value according to your own need. The default value in the theme is 64rem.

yixuan avatar May 12 '20 17:05 yixuan