HanryYu / typora-blubook-theme

Blubook, a flat typora theme.
Apache License 2.0
513 stars 47 forks source link

uneven space alignment #45

Closed guesswh0 closed 3 years ago

guesswh0 commented 3 years ago

Source Mode:

Screen Shot 2021-03-01 at 16 01 21

View Mode: (Blubook theme)

Screen Shot 2021-03-01 at 16 02 15

View Mode: (Github theme)

Screen Shot 2021-03-01 at 16 03 16
Higurashi-kagome commented 3 years ago

Thanks for your feedback! Try to change L442 to font-family: inherit;. It might be helpful. Tell me if it works, please.

guesswh0 commented 3 years ago

Thanks to you for quick reply! Well changing font-family didn't solved the issue. Alignment is still with slight slope.

guesswh0 commented 3 years ago

Just type this simple example in Typora Source Mode, alignment of text is done with 'spaces' not 'tabs'. Writing example here will be rendered differently by github.

guesswh0 commented 3 years ago
`a`       123  
`ab`     123  
`abc`   123  

Remove code block after copying to typora

Higurashi-kagome commented 3 years ago

Thanks, it's helpful @guesswh0 . It seems to be caused by the font-size style of the code element:

Details ![demo](https://user-images.githubusercontent.com/51501079/109496132-34570500-7acb-11eb-8a50-1901774b1275.gif)

But I don’t know how to fix the alignment problem while keeping the font unchanged now. @FishionYu

guesswh0 commented 3 years ago

Well, seems like its come from typora`s space and tab inconsistence. Thank you. Love your theme anyway.

Higurashi-kagome commented 3 years ago

Thanks for your kindness.

Higurashi-kagome commented 3 years ago

Hi @guesswh0👋! Fixed this in #46, could have a try for the new css file.