@deepbag/react-grid-x
Version:
ReactGridX is a customizable and flexible React table component that supports pagination, dynamic rendering of table data, and customizable column rendering. It provides an easy-to-use interface for displaying tabular data with configurable columns, pagin
46 lines (42 loc) • 1.07 kB
CSS
/* Defines the container for elements with tooltips */
.rgx-theme .rgx-tooltip-container {
position: relative;
display: inline-block;
}
/* Styles the tooltip text, hidden by default */
.rgx-theme .rgx-tooltip-text {
visibility: hidden;
width: fit-content;
max-width: 200px;
background-color: rgba(0, 0, 0, 0.75);
color: #fff;
text-align: center;
border-radius: 5px;
padding: 5px 10px;
position: absolute;
z-index: 1;
opacity: 0;
transition: opacity 0.3s ease-in-out;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
white-space: wrap;
margin-bottom: 8px;
font-size: 14px;
}
/* Adds the arrow to the tooltip */
.rgx-theme .rgx-tooltip-text::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border-width: 6px;
border-style: solid;
border-color: rgba(0, 0, 0, 0.75) transparent transparent transparent;
}
/* Makes the tooltip visible when hovering over the container */
.rgx-theme .rgx-tooltip-container:hover .rgx-tooltip-text {
visibility: visible;
opacity: 1;
}