@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
125 lines (108 loc) • 3.72 kB
CSS
/* Main pagination container, aligned with space between elements, wraps on smaller screens. */
.rgx-theme .rgx-table-pagination {
margin-top: 10px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}
/* Pagination info section, styled with font size, color, and weight. */
.rgx-theme .rgx-table-pagination-info {
font-size: 14px;
font-weight: 500;
}
/* Rows per page section with label and select element aligned horizontally. */
.rgx-theme .rgx-table-pagination-row-per-page {
display: flex;
align-items: center;
}
/* Styling for rows per page select dropdown. */
.rgx-theme .rgx-table-pagination-rows-per-page-select {
height: 30px;
padding: 5px;
border: 1px solid #ddd;
background-color: #f9f9f9;
cursor: pointer;
font-size: 14px;
font-weight: 500;
}
/* Disabled select element appearance, with a "not-allowed" cursor. */
.rgx-theme .rgx-table-pagination-rows-per-page-select:disabled {
cursor: not-allowed;
}
/* Rows per page section label and select element, styled with margins and font weight. */
.rgx-theme .rgx-table-pagination-rows-per-page {
display: flex;
align-items: center;
margin-right: 10px;
font-weight: 500;
}
/* Label within rows per page section, with spacing and font styling. */
.rgx-theme .rgx-table-pagination-rows-per-page-label {
font-size: 14px;
margin-right: 10px;
}
/* Pagination control buttons container with flexible wrapping and spacing. */
.rgx-theme .rgx-table-pagination-controls {
display: flex;
flex-wrap: wrap;
gap: 5px;
}
/* Individual pagination button styling, including padding, background, and hover effects. */
.rgx-theme .rgx-table-pagination-button {
padding: 4px 10px 3px 10px;
border: 1px solid #ddd;
background-color: #f9f9f9;
cursor: pointer;
transition: background-color 0.3s;
font-size: 14px;
font-weight: 500;
}
/* Hover effect for pagination buttons, changing background color. */
.rgx-theme .rgx-table-pagination-button:hover {
background-color: #ddd;
}
/* Disabled pagination button styling with light background and "not-allowed" cursor. */
.rgx-theme .rgx-table-pagination-ellipsis:disabled {
background-color: #f1f1f1;
cursor: not-allowed ;
border: 1px solid #ddd;
}
/* Active pagination button styling with custom background and border color. */
.rgx-theme .rgx-table-pagination-button.rgx-table-pagination-active {
background-color: #007bff;
color: white;
border-color: #007bff;
}
/* Individual pagination button styling, including padding, background, and hover effects. */
.rgx-theme .rgx-table-pagination-button-icon {
padding: 4.8px 5px 1.6px 5px;
border: 1px solid #ddd;
background-color: #f9f9f9;
cursor: pointer;
transition: background-color 0.3s;
font-size: 14px;
font-weight: 500;
}
/* Hover effect for pagination buttons, changing background color. */
.rgx-theme .rgx-table-pagination-button-icon:hover {
background-color: #ddd;
}
/* Disabled pagination button styling with light background and "not-allowed" cursor. */
.rgx-theme .rgx-table-pagination-button-icon:disabled {
background-color: #eee;
cursor: not-allowed;
}
/* Active pagination button styling with custom background and border color. */
.rgx-theme .rgx-table-pagination-button-icon.rgx-table-pagination-active {
background-color: #007bff;
color: white;
border-color: #007bff;
}
/* Ellipsis button for pagination, styled to be transparent with a gray color. */
.rgx-theme .rgx-table-pagination-ellipsis {
background-color: transparent;
color: #888;
cursor: not-allowed;
}