Fix: editor formatting (#137)

* reduce space between list items

* reduce spacing

* Make inline code readable in dark mode
* Disable spellcheck in code

* fix numbered list in toggle block
This commit is contained in:
Philip Okugbe
2024-08-04 10:06:22 +02:00
committed by GitHub
parent 4967849e3a
commit e0d74fcb0e
5 changed files with 40 additions and 12 deletions

View File

@ -86,4 +86,22 @@
font-weight: 700;
}
}
:not(pre) > code {
font-family: "JetBrainsMono", var(--mantine-font-family-monospace);
line-height: var(--mantine-line-height);
padding: 2px calc(var(--mantine-spacing-xs) / 2);
border-radius: var(--mantine-radius-sm);
margin: 0;
@mixin where-light {
background-color: var(--code-bg, var(--mantine-color-gray-1));
color: var(--mantine-color-black);
}
@mixin where-dark {
background-color: var(--mantine-color-dark-8);
color: var(--mantine-color-gray-4);
}
}
}

View File

@ -20,6 +20,11 @@
outline: none;
}
p {
margin-top: 0.65em;
margin-bottom: 0.65em;
}
ul,
ol {
padding: 0 1rem;
@ -27,6 +32,12 @@
margin-bottom: 0.25rem;
}
ul p,
ol p {
margin-top: 0;
margin-bottom: 0;
}
h1,
h2,
h3,
@ -80,15 +91,9 @@
outline: 2px solid #70cff8;
}
.node-mathInline {
.katex-display {
margin: 0;
}
}
& > .react-renderer {
margin-top: var(--mantine-spacing-xl);
margin-bottom: var(--mantine-spacing-xl);
margin-top: var(--mantine-spacing-sm);
margin-bottom: var(--mantine-spacing-sm);
&:first-child {
margin-top: 0;

View File

@ -50,8 +50,7 @@
[data-type="detailsContainer"] {
flex: 1;
margin-left: 0.2em;
overflow-x: hidden;
padding: 4px;
word-break: break-word;
overflow-wrap: break-word;