Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom selection highlights? #2

Open
dginev opened this issue Aug 2, 2022 · 0 comments
Open

Custom selection highlights? #2

dginev opened this issue Aug 2, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@dginev
Copy link
Owner

dginev commented Aug 2, 2022

I stumbled on a blog that had enabled custom selection highlights which seemed nice. For ar5iv, they would be roughly equivalent to:

:root {
  --background_contrast_pop: rgba(157, 157, 171, 0.4);
}

[data-theme="dark"] .ltx_document ::selection, .ltx_document ::-moz-selection {
  background-color: var(--background_contrast_pop, #724714);
}
[data-theme="light"] .ltx_document ::selection, .ltx_document ::-moz-selection {
  background-color: var(--background_contrast_pop, #8db8eb);
}

Some early testing comments:

  • The MathML support is a bit inconsistent in Firefox, it looks like <mo> elements are not covered?
  • The Firefox selections seem to encounter some lag with the custom rule - especially on a large document. Is that annoying to lay users?
  • Also if desired, what are the most reasonable colors?

Shelving it as an issue for now, but if anyone wants to take over and experiment - feel free and let me know.

@dginev dginev added enhancement New feature or request help wanted Extra attention is needed labels Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant