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

Restyle test.html show-tokens with hover class names and fatter borders. #3812

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions test.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,30 @@
}

.show-tokens .token {
border: 1px solid;
padding: 6px 1px;
border: 2px solid;
padding: 4px 5px;
display: inline-block;
position: relative;
}
.show-tokens .token:has(> .token):hover {
border-color: cornflowerblue;
}
.show-tokens .token:has(> .token):hover::before {
content: attr(class);
position: absolute;
font-size: 60%;
left: 0;
top: -15px;
}
.show-tokens .token:not(:has(> .token)):hover::before {
content: attr(class);
position: absolute;
font-size: 60%;
left: 0;
bottom: -15px;
}
.show-tokens .token > .token {
padding: 4px 1px;
padding: 3px 1px;
}
.show-tokens .token > .token > .token {
padding: 2px 1px;
Expand Down
Loading