Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to shrink the left margin using cayman theme #17

Open
steveb-cirina opened this issue Jan 31, 2020 · 1 comment
Open

How to shrink the left margin using cayman theme #17

steveb-cirina opened this issue Jan 31, 2020 · 1 comment

Comments

@steveb-cirina
Copy link

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!

@yixuan
Copy link
Owner

yixuan commented May 12, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants