feat: passing link mode.name to lint marker's classname, added .bg-ta…
Resolves #4783 #2049
open a link in a new tab link hint is now visually distinguishable from open in current tab.
It can be achieved by exposing the mode's name directly to link_hint's classname. Since all the mode names are kebab-cased, it's fully compatible with CSS classnames. Also, other modes can be modified by adding additional styles in CSS.
I adjusted the hue slightly from the original color to choose a new one. Please feel free to share any thoughts or preferences regarding the color.
| mode | before | after |
|---|---|---|
| open in current tab | ||
| open in new tab |
Honestly, I like the flexibility of at least having a way for the user to add a custom style for new tab links. Whether the default style should be different may be a point of contention, but unless there is already another way to add a different style to new tab links, I think it would be beneficial to add one.
If you feel the default styles for new tabs don't match the PR, I'll remove them. The core goal of this PR is to provide the ability to specify different tab styles for different link types.