Show goggles badges on block overview tooltip

This commit is contained in:
Mononaut
2024-03-22 07:13:21 +00:00
parent 00a94f9e3c
commit d6f1b51fa6
6 changed files with 158 additions and 72 deletions

View File

@@ -10,6 +10,7 @@
padding: 10px 15px;
text-align: left;
min-width: 320px;
max-width: 320px;
pointer-events: none;
z-index: 11;
@@ -18,8 +19,14 @@
}
}
.td-width {
padding-right: 10px;
th, td {
&.label {
width: 30%;
}
&.value {
width: 70%;
text-align: end;
}
}
.badge.badge-accelerated {
@@ -29,6 +36,46 @@
animation: acceleratePulse 1s infinite;
}
.tags {
display: flex;
flex-wrap: wrap;
row-gap: 0.25em;
margin-top: 0.2em;
max-width: 100%;
.badge {
border-radius: 0.2rem;
padding: 0.2em 0.5em;
margin-right: 0.25em;
}
.filter-tag {
background: #181b2daf;
border: solid 1px #105fb0;
color: white;
transition: background-color 300ms;
&.matching {
background-color: #105fb0;
}
}
&.any-mode {
.filter-tag {
border: solid 1px #1a9436;
&.matching {
background-color: #1a9436;
}
}
}
.goggles-icon {
height: 0.9em;
margin-top: -5px;
margin-right: 0.2em;
}
}
@keyframes acceleratePulse {
0% { background-color: #653b9c; box-shadow: #ad7de57f 0px 0px 12px -2px; }
50% { background-color: #8457bb; box-shadow: #ad7de5 0px 0px 18px -2px;}