fix(cli): tweak highlight diagnostic tooltip
This commit is contained in:
@@ -4,9 +4,11 @@ span {
|
|||||||
&.error {
|
&.error {
|
||||||
--col: 255, 0, 0;
|
--col: 255, 0, 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.warning {
|
&.warning {
|
||||||
--col: 250, 160, 0;
|
--col: 250, 160, 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.info {
|
&.info {
|
||||||
--col: 150, 190, 250;
|
--col: 150, 190, 250;
|
||||||
}
|
}
|
||||||
@@ -19,12 +21,12 @@ span {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:hover:not(:has(.with-msg:hover)) {
|
&:hover:not(:has(.with-msg:hover)) {
|
||||||
.message {
|
&>.message {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.message {
|
&>.message {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: calc(100% + 0.2em);
|
top: calc(100% + 0.2em);
|
||||||
left: -.2em;
|
left: -.2em;
|
||||||
@@ -33,7 +35,8 @@ span {
|
|||||||
padding: 0.2em 0.4em;
|
padding: 0.2em 0.4em;
|
||||||
border-radius: .2em;
|
border-radius: .2em;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
width: 300%;
|
width: max-content;
|
||||||
|
max-width: 60vw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user