org-page icon indicating copy to clipboard operation
org-page copied to clipboard

Decrease the spacing between lines of code block?

Open xuchunyang opened this issue 11 years ago • 5 comments

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?

xuchunyang avatar Dec 04 '14 23:12 xuchunyang

I am not a CSS guy, so I copied this theme from @mdo. You have the following two choices:

  1. decrease the spacing and send me a pull request
  2. 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.

sillykelvin avatar Dec 22 '14 07:12 sillykelvin

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.

xuchunyang avatar Dec 22 '14 07:12 xuchunyang

I did some adjustment, does it look better now?

sillykelvin avatar Dec 26 '14 13:12 sillykelvin

Not sure. Below is my test, the left is the latest org-page and the right is the older version screen shot 2014-12-27 at 6 00 09 pm 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.

xuchunyang avatar Dec 27 '14 10:12 xuchunyang

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;

heikkil avatar Mar 25 '15 10:03 heikkil