You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.css
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -587,14 +587,22 @@
587
587
}
588
588
589
589
/* Cmd/Ctrl+F match highlights. Every hit carries the same tint the rest of the app
590
-
* paints a search match with; the active one is ringed rather than recolored, so the
591
-
* two read as one family and neither needs a token that only exists here. */
590
+
* paints a search match with. */
592
591
.rich-markdown-nodes .rich-find-match {
593
592
background-color:var(--highlight-match-bg);
594
593
color:var(--highlight-match-text);
595
594
border-radius:2px;
596
595
}
597
596
597
+
/* The active hit is a stronger fill of the same hue, never a ring: an outline drawn
598
+
* around a run of text traces the line box, so on a heading it reads as a stray
599
+
* rectangle rather than as emphasis. Filling instead keeps the two states one family.
600
+
*
601
+
* The ink is fixed rather than tokenized because the fill is: `--brand-secondary` is
602
+
* the same blue in both themes, so a theme-flipping text token would go white on light
603
+
* blue in dark mode. Same reasoning as the note card's active search mark, which pairs
604
+
* its solid fill with a fixed dark ink for exactly this reason. */
0 commit comments