UNPKG

react-pivot

Version:

React-Pivot is a data-grid component with pivot-table-like functionality for data display, filtering, and exploration.

158 lines (131 loc) 2.54 kB
.reactPivot { margin-top: 40px; padding: 10px 20px 20px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); } .reactPivot select { color: #555; height: 28px; border: none; margin-right: 5px; margin-top: 5px; background-color: #FFF; border: 1px solid #CCC; } .reactPivot-results table { width: 100%; clear: both; text-align: left; border-spacing: 0; } .reactPivot-results th.asc:after, .reactPivot-results th.desc:after { font-size: 50%; opacity: 0.5; } .reactPivot-results th.asc:after { content: ' ▲' } .reactPivot-results th.desc:after { content: ' ▼' } .reactPivot-results td { border-top: 1px solid #ddd; padding: 8px; } .reactPivot-results td.reactPivot-indent { border: none; } .reactPivot-results tr:hover td { background: #f5f5f5 } .reactPivot-results tr:hover td.reactPivot-indent { background: none; } .reactPivot-solo { opacity: 0; margin-left: 6px; } .reactPivot-solo:hover {font-weight: bold} td:hover .reactPivot-solo {opacity: 0.5} .reactPivot-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 10px 0; } .reactPivot-controls { display: flex; flex-wrap: wrap; gap: 5px; align-items: flex-start; justify-content: flex-end; flex: 0 0 auto; } .reactPivot-controls > * { margin: 0; } .reactPivot-controls select { margin: 0; width: 120px; } .reactPivot-toolbar select { margin-top: 0; } .reactPivot-csvExport { display: flex; align-items: flex-start; flex: 0 0 auto; } .reactPivot-csvExport button { background-color: #FFF; border: 1px solid #CCC; height: 28px; color: #555; cursor: pointer; padding: 0 12px; border-radius: 0; margin-top: 0; white-space: nowrap; flex-shrink: 0; } .reactPivot-dimensions { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; text-align: left; flex: 1 1 300px; min-width: 0; } .reactPivot-dimensions select { margin: 0; } .reactPivot-hideColumn { opacity: 0 } th:hover .reactPivot-hideColumn { opacity: 0.5; margin-right: 4px; margin-bottom: 2px; } .reactPivot-hideColumn:hover { font-weight: bold; cursor: pointer; } .reactPivot-pageNumber { padding: 2px; margin: 4px; cursor: pointer; color: gray; font-size: 14px; } .reactPivot-pageNumber:hover { font-weight: bold; border-bottom: black solid 1px; color: black; } .reactPivot-pageNumber.is-selected { font-weight: bold; border-bottom: black solid 1px; color: black; } .reactPivot-paginate { margin-top: 24px; }