Fix for important

This commit is contained in:
somebody
2022-10-11 16:16:09 -05:00
parent 3e97b8a69d
commit 44ca71d1a5
2 changed files with 10 additions and 8 deletions

View File

@@ -1886,16 +1886,12 @@ body {
#tooltip-text { #tooltip-text {
content: attr(tooltip); content: attr(tooltip);
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
position: fixed; position: fixed;
transition: opacity 0s linear 0.5s; transition: opacity 0s linear 0.5s;
border: 3px ridge grey;
width: 200px;
white-space: normal; white-space: normal;
opacity: 1; opacity: 1;
padding: 0px 2px; padding: 0px 2px;
color: var(--tooltip_text); color: var(--tooltip_text);
background-color: var(--tooltip_background); background-color: var(--tooltip_background);
@@ -1904,10 +1900,16 @@ body {
z-index: 9999999; z-index: 9999999;
} }
.tooltip-standard {
border: 3px ridge grey;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
width: 200px;
}
.tooltip-context-token { .tooltip-context-token {
border: none !important; border: none;
font-family: monospace !important; font-family: monospace;
max-width: min-content !important; max-width: min-content;
} }

View File

@@ -4996,7 +4996,7 @@ let load_substitutions;
el.addEventListener("mouseenter", function(event) { el.addEventListener("mouseenter", function(event) {
tooltip.innerText = text; tooltip.innerText = text;
let specialClass = null; let specialClass = "tooltip-standard";
// Kinda lame // Kinda lame
if (this.classList.contains("context-token")) specialClass = "tooltip-context-token"; if (this.classList.contains("context-token")) specialClass = "tooltip-context-token";