fix: prevent highlighted text from appearing italicized
- Add explicit styles for mark elements - Force normal font-style with \!important - Add subtle padding and border-radius for highlights - Ensure text color inheritance for proper contrast 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
15ce9caae9
commit
e8a965650b
1 changed files with 13 additions and 0 deletions
|
|
@ -330,6 +330,19 @@ input[type='checkbox'] {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Highlight Styles */
|
||||||
|
.tiptap mark {
|
||||||
|
font-style: normal !important;
|
||||||
|
padding: 0.125rem 0;
|
||||||
|
border-radius: 0.25rem;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tiptap mark[data-color] {
|
||||||
|
background-color: var(--highlight-color);
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
/* Math Equations (KaTeX) */
|
/* Math Equations (KaTeX) */
|
||||||
.katex:hover {
|
.katex:hover {
|
||||||
background-color: var(--code-bg);
|
background-color: var(--code-bg);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue