-
Notifications
You must be signed in to change notification settings - Fork 655
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
Selected links unreadable with same-color selection #82
Comments
It's a shame we can't use LESS or SCSS to shift the color slightly ;) Should we just have two color settings? Main and alternate? |
I think some trickery with a second background layer or a absolute positioned pseudo element could work to darken the selection while still keeping the base-color. |
What about a text-shadow? |
I oppose text-shadow wherever possible :) |
I've been poking around with secondary background layers and pseudo elements (both of which won't work on ::-moz-selection) but then noticed that probly the best fix is actually pretty simple: /* text selection */
::selection {
background: /*[[base-color]]*/ #4183C4 !important;
color: #fff !important;
}
::-moz-selection {
background: /*[[base-color]]*/ #4183C4 !important;
color: #fff !important;
} |
We might have to come up with a different color based on what's selected, like
a::-moz-selection
. A shame you can't combine these selectors with anything.The text was updated successfully, but these errors were encountered: