react-tooltip
Version:
react tooltip component
89 lines (73 loc) • 1.67 kB
CSS
:root {
--rt-color-white: #fff;
--rt-color-dark: #222;
--rt-color-success: #8dc572;
--rt-color-error: #be6464;
--rt-color-warning: #f0ad4e;
--rt-color-info: #337ab7;
--rt-opacity: 0.9;
}
.core-styles-module_tooltip__3vRRp {
visibility: hidden;
position: absolute;
top: 0;
left: 0;
pointer-events: none;
opacity: 0;
transition: opacity 0.3s ease-out;
will-change: opacity, visibility;
}
.core-styles-module_fixed__pcSol {
position: fixed;
}
.core-styles-module_arrow__cvMwQ {
position: absolute;
background: inherit;
}
.core-styles-module_noArrow__xock6 {
display: none;
}
.core-styles-module_clickable__ZuTTB {
pointer-events: auto;
}
.core-styles-module_show__Nt9eE {
visibility: visible;
opacity: var(--rt-opacity);
}
/** end - core styles **/
.styles-module_tooltip__mnnfp {
padding: 8px 16px;
border-radius: 3px;
font-size: 90%;
width: max-content;
}
.styles-module_arrow__K0L3T {
width: 8px;
height: 8px;
transform: rotate(45deg);
}
/** Types variant **/
.styles-module_dark__xNqje {
background: var(--rt-color-dark);
color: var(--rt-color-white);
}
.styles-module_light__Z6W-X {
background-color: var(--rt-color-white);
color: var(--rt-color-dark);
}
.styles-module_success__A2AKt {
background-color: var(--rt-color-success);
color: var(--rt-color-white);
}
.styles-module_warning__SCK0X {
background-color: var(--rt-color-warning);
color: var(--rt-color-white);
}
.styles-module_error__JvumD {
background-color: var(--rt-color-error);
color: var(--rt-color-white);
}
.styles-module_info__BWdHW {
background-color: var(--rt-color-info);
color: var(--rt-color-white);
}