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

style: Rely on box-shadow to provide the secondary underline #2283

Merged
merged 1 commit into from Feb 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 1 addition & 15 deletions frontend/components/token-classifier/results/TextSpanStatic.vue
Expand Up @@ -193,28 +193,14 @@ $hue: 360;
padding-bottom: 3px;
border-bottom: 5px solid $rcolor;
position: relative;
&:after {
content: "";
border-top: 1px solid darken($rcolor, 50%);
position: absolute;
top: 26px;
left: 0;
right: 0;
}
box-shadow: 0px 1px 0px darken($rcolor, 50%);
}
&.annotation :deep(.highlight__tooltip:after) {
border-color: $rcolor transparent transparent transparent;
}
&.prediction :deep(.highlight__tooltip:after) {
border-color: transparent transparent $rcolor transparent;
}
&.excluded :deep() {
.highlight__content {
&:after {
content: none;
}
}
}
&.active,
&.tag:hover {
border: 2px solid darken($rcolor, 50%);
Expand Down