pengx17 / logseq-dev-theme

</> Logseq dev theme
https://pengx17.github.io/knowledge-garden/
MIT License
373 stars 65 forks source link

Change Font-Size Code Block #62

Closed Figmenta1991 closed 2 years ago

Figmenta1991 commented 2 years ago

I cannot find the css parameter to change the code block font size. I can change the "inline code font size" with something such as --ct-inline-code-font-size: 1.5em; But I cannot change, let's say the "out code font size" or the font size of a block of code.

Can anyone help me? Thanks a lot!

pengx17 commented 2 years ago

Please change font properties in .CodeMirror rules. E.g.:

.CodeMirror {
   font-family: "Fira Mono";
   font-size: ...
}
Marven11 commented 2 years ago

I have the same problem but css above doesn't work. My problem was solved by using:

.CodeMirror pre.CodeMirror-line,
.CodeMirror-gutter,
.CodeMirror-gutters,
.CodeMirror-linenumber,
.CodeMirror-scroll,
.CodeMirror-sizer,
.CodeMirror {
  font-size: 22px !important;
  line-height: 1.5;
}