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 put changes in a theme #1074

Closed
andreiM101 opened this issue Oct 18, 2018 · 4 comments
Closed

how to put changes in a theme #1074

andreiM101 opened this issue Oct 18, 2018 · 4 comments

Comments

@andreiM101
Copy link

Describe the feature you'd like
I modified the page-content CSS as described in #1067. I assume that at the next update the change will be lost.
Is it possible to save this as a theme in order to avoid being override at the next update?

Describe the benefits this feature would bring to BookStack users
Any change to the aspect can be saved in case of an update if it is saved as a theme.

If it is already implemented please tell how I can do it.
Thanks

@ssddanbrown
Copy link
Member

@andreiM101 instead of modifying the styles directly you can simply add the css to the 'Custom HTML head content' setting within the admin settings area. You'll need to wrap it in style blocks like so:

<style>
.page-content { max-width: 1000px; }
</style> 

@andreiM101
Copy link
Author

It is working, thanks.
These 'Custom HTML' it will be carried over in an update?

@qianmengnet
Copy link
Contributor

<style>
.page-content { max-width: 1000px; }
.container.small { max-width: 1000px; }
</style>

This will change the width of the chapter list to 1000px. This setting is written to the database.

@ssddanbrown
Copy link
Member

@andreiM101 Yes, 'Custom HTML head content' will persist across updates.

Since that's solved it I'll close this issue.

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

No branches or pull requests

3 participants