UNPKG

oneframe-react

Version:

Oneframe React ## Components, Hooks, Helper Functions & State Management

178 lines (153 loc) 4.2 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const styled_components_1 = __importDefault(require("styled-components")); exports.default = styled_components_1.default.div ` width: 100%; //overflow-x: scroll; margin: 0; @media (max-width: 768px) { overflow: auto; } .custom-table-root { min-width: 700px; padding: 0; margin-top: 0; } .custom-table-head, .custom-table-footer, .custom-table-body { padding: 0; display: flex; align-items: center; justify-content: space-between; } .custom-table-footer { justify-content: flex-end; .MuiTableCell-root { border: none; } .MuiTablePagination-root { .MuiTablePagination-caption { //display: none; } } } .custom-table-head { position: sticky; position: -webkit-sticky; top: 0; z-index: 1; .custom-table-cell { font-size: 10px; font-weight: 600; text-transform: uppercase; &.cursor { cursor: pointer; } } } .custom-table-row { width: 100%; display: flex; flex-direction: column; } .custom-table-body { flex-direction: column; padding: 0; .custom-table-row { > .custom-table-row-list { display: flex; align-items: center; width: 100%; height: 100%; min-height: 50px; justify-content: space-between; } > .expandable-content { display: flex; align-items: center; flex-direction: row; color: #364658; justify-content: space-between; overflow: hidden; } &.open { background: #f2faff !important; > .detail { display: flex; } } &.loading { height: 400px; font-size: 50px; font-weight: lighter; display: flex; align-items: center; justify-content: center; color: #565c70; } } } .custom-table-cell { width: 100%; height: 100%; display: flex; align-items: center; flex-shrink: 1; position: relative; padding: 5px; font-size: 13px; font-weight: 500; overflow-x: hidden; &.expand-icon { max-width: 50px; button { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 !important; i { font-size: 15px; opacity: 0.6; transition: 300ms all; } svg { opacity: 0.6; transition: 300ms all; } } &.active { button { i, svg { opacity: 0.9; transform: rotate(90deg); } } } &.expand-reverse { button { i, svg { transform: rotate(180deg); } } &.active { button { i, svg { opacity: 0.9; transform: rotate(90deg); } } } } } } `;