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

Override hit marking in grid HTML templates #548

Open
amir-zeldes opened this issue Dec 10, 2016 · 0 comments
Open

Override hit marking in grid HTML templates #548

amir-zeldes opened this issue Dec 10, 2016 · 0 comments

Comments

@amir-zeldes
Copy link
Collaborator

Hit marking in grid HTML templates is overridden if we make hyperlinks in grid cells, which is a main use case for this feature. For example, the hit below is a lemma search, which is marked in KWIC, but the links in the grid hide the hit marking:

capture

The desired behavior is for hit marking to override general styling for links, as shown here:

capture2

This behavior can be achieved by adding the following CSS to styles.css:

td[class*=v-table-cell-content-match] a {
    color: inherit !important;
}

This makes hit cells of any match number inherit color from the td. This change is live on the GU ANNIS and seems to be working well.

@thomaskrause - I'm happy to commit this change to dev if you think it's a good solution, but if you have a cleaner idea please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant