Skip to content

Commit a88d4f8

Browse files
committed
feat: adjust mark style
1 parent a7411b4 commit a88d4f8

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

custom.css

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
--ct-code-font-family: "Fira Code", Monaco, Menlo, Consolas, "COURIER NEW",
1616
monospace;
17-
--ct-inline-code-font-size: 0.85em;
17+
--ct-inline-code-font-size: 0.8em;
1818
--ct-inline-code-font-style: inherit;
1919
--ct-inline-code-border-radius: 2px;
2020
--ct-inline-code-padding: 2px 5px;
@@ -564,11 +564,16 @@ a.priority:before {
564564
/* highlight */
565565

566566
mark {
567-
font-family: var(--ct-page-title-font-family);
568567
border-radius: var(--ct-mark-border-radius);
569-
background: var(--ct-mark-background);
570-
color: var(--ct-mark-color);
568+
background: transparent;
569+
padding: 0;
571570
font-size: inherit;
571+
text-decoration-style: solid;
572+
text-decoration: underline;
573+
text-decoration-color: var(--ct-warning-color);
574+
text-decoration-thickness: 4px;
575+
text-decoration-skip-ink: none;
576+
text-underline-offset: -1px;
572577
}
573578

574579
code,
@@ -817,9 +822,6 @@ html[data-theme="light"] {
817822

818823
--ct-page-reference-color: var(--ls-active-primary-color);
819824

820-
--ct-mark-background: var(--ct-highlight-color);
821-
--ct-mark-color: var(--ct-bold-color);
822-
823825
--ls-icon-color: var(--ls-primary-text-color);
824826

825827
--ct-block-reference-background: rgba(16, 107, 163, 0.1);
@@ -880,9 +882,6 @@ html[data-theme="dark"] {
880882

881883
--ct-page-reference-color: var(--ls-active-primary-color);
882884

883-
--ct-mark-background: var(--ct-highlight-color);
884-
--ct-mark-color: #000;
885-
886885
--ls-icon-color: var(--ls-primary-text-color);
887886

888887
--ct-block-reference-background: rgba(16, 107, 163, 0.2);

0 commit comments

Comments
 (0)