pxt-core
Version:
Microsoft MakeCode provides Blocks / JavaScript / Python tools and editors
70 lines (61 loc) • 1.47 kB
text/less
.pxt-tooltip {
color: @white;
background-color: var(--pxt-primary-background) ;
border: 1px solid var(--pxt-primary-accent) ;
padding: .75rem 1rem ;
font-size: 1rem ;
line-height: 1.25rem ;
}
.pxt-tooltip {
&.place-top {
&:after {
border-top-color: var(--pxt-primary-accent) ;
}
}
&.place-bottom {
&:after {
border-bottom-color: var(--pxt-primary-accent) ;
}
}
&.place-left {
&:after {
border-left-color: var(--pxt-primary-accent) ;
}
}
&.place-right {
&:after {
border-right-color: var(--pxt-primary-accent) ;
}
}
}
/*******************************
Clickable DOM Tooltip
*******************************/
.tooltip, .tooltip:before {
display: none;
position: absolute;
line-height: 1.4285em;
background: @white;
color: @black;
text-align: center;
z-index: 44;
transition: all .1s ease;
cursor: pointer;
}
.tooltip.show, .tooltip.show:before {
display: block;
}
.tooltip {
transform: translateX(-50%);
padding: .833em 1em;
margin-top: .5em;
border-radius: .28571429rem;
}
.tooltip:before {
content: "";
top: -.35rem;
left: 50%;
width: .71428571em;
height: .71428571em;
transform: rotate(45deg) scale(1);
}