Decrease the spacing between lines of code block?
I'm using org-page's default theme (since the remaining two theme is not useable on some level), and I find the spacing between lines of code block is much bigger than usual, what do you think about this? Is a bigger line spacing good for reading in browser?
I am not a CSS guy, so I copied this theme from @mdo. You have the following two choices:
- decrease the spacing and send me a pull request
- create you own copy of this theme, and adjust the value in that copy. and set the following two variables to make org-page use your own theme(assuming you put the theme directory at ~/my-theme/mdo-modified):
(setq op/theme-root-directory "~/my-theme/")
(setq op/theme 'mdo-modified)
Hope that helps.
I am not a CSS guy
Me neither, I'm afraid this task is beyond me. God help us all.
Fell free to close this issue if you have no any plan to fix it.
I did some adjustment, does it look better now?
Not sure. Below is my test, the left is the latest org-page and the right is the older version
The font size of code block is bigger now, which is what you want. But I think increasing font size may cause long line broken much often, which will obviously reduce readability. Maybe you can try some code friendly fonts.
My two cents worth:
In my opinion in the pre/code block both font size and spacing are too big.
Without changing the body text size (using sans serif font), these settings work for me:
font-size: 14px;
line-height: 18px;