noatpad / typora-theme-ursine

A Typora theme, inspired by Bear
MIT License
715 stars 86 forks source link

Change the line feed gap #46

Closed Mara-Li closed 4 years ago

Mara-Li commented 4 years ago

Hello ! Quick question about the theme x). I really didn't love line feed gap, so i want change it for have no espace between my line when I do enter (so I must use "two jump" for have a blank line). How can i change that in the theme ?

Thanks for you response !

noatpad commented 4 years ago

Hi there, I'm not sure what exactly you mean by "line feed gap". Is that the space between paragraphs when you press Enter?

Mara-Li commented 4 years ago

Yeap !

noatpad commented 4 years ago

Well if it's only paragraphs, you can have add a small rule at the bottom of the css file that goes like so:

#write p + p {
    margin: 0;
}

This'll take off the vertical spacing between paragraphs, or you can tweak it the value to your liking (the default value the theme uses is margin: 0.5rem 0)

Mara-Li commented 4 years ago

Well, it's not possible to change the width between the two ? I test your code but it's always too big for my taste. image

noatpad commented 4 years ago

Mmm, try changing the rule to:

#write p {
    margin: 0;
}

I think that does better in hindsight. This is what I can get if I use that:

image
Mara-Li commented 4 years ago

Okay ! Thanks you so much for your help ! Your theme is so good btw x)

noatpad commented 4 years ago

Thank you and no prob! Glad to be of help!~