Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Change max width of content #172

Open
ghost opened this issue Apr 1, 2017 · 4 comments
Open

Change max width of content #172

ghost opened this issue Apr 1, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 1, 2017

I tried to change the maximal width of the content. The width of the container containing all the content is somehow limited. I could not find the css rule limiting the content width (to override it in my theme). How is the width limited?

Addendum: I think the idea of limiting the content width is good to improve readability, but as long as #23 is not solved, I'd prefer to use all available space.

@ghost
Copy link
Author

ghost commented Apr 4, 2017

I finally found the class that contains the style for the content-width. Adding the following code to the theme in use allows changing the max-width of the content.

.CodeMirror-sizer {
	max-width: yourvalue;
	width: yourvalue;
}

Also, the default value is 900px and I think it should rather be a value in em, e.g. 58.5em, to compensate different font sizes in different themes.

@CrazyAlexNT
Copy link

I realize this is a very old answer. But there are still no settings in the editor. Maybe someone else has come across this situation. I put this block in theme.less, but there is no result. This no longer works, or I misunderstood - where do I need to enter the block?

@CrazyAlexNT
Copy link

/tmp/Abricotine/themes/default.css - works! :-)

@brrd
Copy link
Owner

brrd commented May 13, 2023

/tmp/Abricotine/themes/default.css - works! :-)

Here is the correct way to do : https://github.com/brrd/abricotine/blob/master/docs/themes.md
Then refresh theme from the Development menu (or CTRL+F5).

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

No branches or pull requests

2 participants