2025-04-19 22:01:15 +02:00

179 lines
2.8 KiB
CSS

.tiptap {
margin-top: 0;
color: var(--text-primary);
width: 100%;
}
.tiptap ul,
.tiptap ol {
padding: 0 1rem;
margin: 1.25rem 1rem 1.25rem 0.4rem;
}
.tiptap ul li p,
.tiptap ol li p {
margin-top: 0.25em;
margin-bottom: 0.25em;
}
/* Heading styles */
.tiptap h1,
.tiptap h2,
.tiptap h3,
.tiptap h4,
.tiptap h5,
.tiptap h6 {
line-height: 1.1;
margin-top: 2.5rem;
text-wrap: pretty;
color: var(--text-primary);
}
.tiptap h1,
.tiptap h2 {
margin-top: 3.5rem;
margin-bottom: 1.5rem;
}
.tiptap h1 {
font-size: 1.4rem;
}
.tiptap h2 {
font-size: 1.2rem;
}
.tiptap h3 {
font-size: 1.1rem;
}
.tiptap h4,
.tiptap h5,
.tiptap h6 {
font-size: 1rem;
}
/* Code and preformatted text styles */
.tiptap code {
background-color: var(--background-default);
border-radius: 0.4rem;
color: var(--text-primary);
font-size: 0.85rem;
padding: 0.25em 0.3em;
text-wrap: pretty;
}
.tiptap pre {
background: var(--background-default);
border-radius: 0.5rem;
color: var(--text-primary);
font-family: 'JetBrainsMono', monospace;
margin: 1.5rem 0;
padding: 0.75rem 1rem;
outline: none;
text-wrap: wrap;
}
.tiptap pre code {
background: none;
color: inherit; /* Inherit text color from the parent pre block */
font-size: 0.8rem;
padding: 0;
text-wrap: pretty;
}
.tiptap blockquote {
border-left: 3px solid var(--gray-3);
margin: 1.5rem 0;
padding-left: 1rem;
color: var(--text-primary);
text-wrap: pretty;
}
.tiptap hr {
border: none;
border-top: 1px solid var(--gray-2);
margin: 1rem 0;
}
.ProseMirror:focus-visible {
outline: none !important;
}
.tiptap p {
font-size: 16px;
color: var(--text-primary);
margin: 0px;
}
.tiptap p.is-editor-empty:first-child::before {
color: var(--text-primary);
content: attr(data-placeholder);
float: left;
height: 0;
pointer-events: none;
}
.tiptap p:empty::before {
content: '';
display: inline-block;
}
.tiptap a {
color: cadetblue;
}
.tiptap img {
display: block;
max-width: 100%;
}
.isReply p {
font-size: 12px !important;
}
.tiptap [data-type='mention'] {
box-decoration-break: clone;
color: var(--text-secondary);
padding: 0.1rem 0.3rem;
}
.unread-divider {
border-bottom: 1px solid var(--text-primary);
border-radius: 2px;
color: var(--text-primary);
display: flex;
justify-content: center;
width: 90%;
}
.mention-item {
cursor: pointer;
}
.dropdown-menu {
display: flex;
flex-direction: column;
gap: 0.1rem;
padding: 0.4rem;
position: relative;
max-height: 200px;
overflow: auto;
button {
align-items: center;
background-color: transparent;
display: flex;
gap: 0.25rem;
text-align: left;
font-size: 16px;
width: 100%;
border: none;
color: var(--text-primary);
&:hover,
&:hover.is-selected {
background-color: var(--background-default);
}
}
}