74 lines
1.3 KiB
CSS
74 lines
1.3 KiB
CSS
.span {
|
|
background: #DDD;
|
|
font-size: 1em;
|
|
border: 1px solid white;
|
|
display: inline-block;
|
|
position: relative;
|
|
}
|
|
|
|
.tooltip {
|
|
--background: lightsalmon;
|
|
--arrow-width: 0.6em;
|
|
--arrow-height: 0.4em;
|
|
display: none;
|
|
position: absolute;
|
|
left: calc(100% + var(--arrow-width));
|
|
top: -500%;
|
|
bottom: -500%;
|
|
margin: auto 0;
|
|
width: max-content;
|
|
height: max-content;
|
|
background: var(--background);
|
|
padding: 0.5em;
|
|
border-radius: 0.7em;
|
|
z-index: 1;
|
|
}
|
|
|
|
.span:hover > .tooltip {
|
|
display: initial;
|
|
}
|
|
|
|
.tooltip::before {
|
|
content: "";
|
|
border-style: solid;
|
|
top: -500%;
|
|
bottom: -500%;
|
|
margin: auto 0;
|
|
height: max-content;
|
|
border-width: var(--arrow-height) var(--arrow-width) var(--arrow-height) 0;
|
|
border-color: transparent var(--background) transparent transparent;
|
|
position: absolute;
|
|
left: calc(var(--arrow-width) * -1 + 1px);
|
|
}
|
|
|
|
.img {
|
|
display: inline-block;
|
|
width: 1em;
|
|
height: 1em;
|
|
margin-inline-end: 0.2em;
|
|
transform: translateY(0.1em);
|
|
}
|
|
|
|
.strong {
|
|
font-weight: 600;
|
|
margin-block: 1em 0.4em;
|
|
}
|
|
|
|
.strong:first-child {
|
|
margin-block-start: 0;
|
|
}
|
|
|
|
.leftClick {
|
|
height: 1em;
|
|
transform: translateY(0.1em);
|
|
}
|
|
|
|
.rightClick {
|
|
height: 1em;
|
|
transform: scaleX(-1) translateY(0.1em);
|
|
}
|
|
|
|
.clickBtn {
|
|
fill: red;
|
|
}
|