Thanks for your awesome theme and the code you shared by request of @tav.
I’ve altered it so that the headers and line-height are not as big as they are default.
It now looks like this:
The code for this is:
.cc-pretty-preview .markdown-preview-section hr {
margin-top: 0;
margin-bottom: 0;
}
.cc-pretty-preview .markdown-preview-view h1 {
font-size: 1.6rem !important;
line-height: 2.0rem;
margin-top: 0;
margin-bottom: 0.25em;
}
.cc-pretty-preview .markdown-preview-view h2 {
font-size: 1.45rem !important;
line-height: 1.85rem;
margin-top: 0;
margin-bottom: 0.25em;
}
.cc-pretty-preview .markdown-preview-view h3 {
font-size: 1.3rem !important;
line-height: 1.7rem;
margin-top: 0;
margin-bottom: 0.25em;
}
.cc-pretty-preview .markdown-preview-view h4 {
font-size: 1.15rem !important;
line-height: 1.55rem;
margin-top: 0;
margin-bottom: 0.25em;
}
.cc-pretty-preview .markdown-preview-view h5 {
margin-top: 0;
margin-bottom: 0.25em;
}
.cc-pretty-preview .markdown-preview-view h6 {
margin-top: 0;
margin-bottom: 0.25em;
}
.cc-pretty-preview .markdown-preview-section div:not([data-tag-name^="h"]) + div[data-tag-name="hr"] > hr {
margin-top: calc(var(--editor-line-height-rem) * -1);
}
What I would love to achieve it that the editor looks the same. Does anyone know what code I need to use for this? Is there a list of font sizes (variables) somewhere in the CSS that I can change?
I’ve tried to change the sizes and line heights via the dev tools, but the changes I made lead to markdown symbols like xx to be at a different position and selecting text also gave strange results… the selection had a different position than the text I was selecting.
Thanks for any ideas.