DocSpace-buildtools/packages/asc-web-components/table-container/StyledTableContainer.js

62 lines
1.0 KiB
JavaScript
Raw Normal View History

2021-07-09 08:59:20 +00:00
import styled from "styled-components";
2021-07-13 08:07:50 +00:00
const StyledTableContainer = styled.table`
2021-07-09 08:59:20 +00:00
width: 100%;
2021-07-13 08:07:50 +00:00
max-width: 100%;
margin-top: -18px;
border-collapse: collapse;
2021-07-09 08:59:20 +00:00
.table-column {
user-select: none;
position: relative;
min-width: 10%;
}
.resize-handle {
display: block;
cursor: ew-resize;
height: 10px;
2021-07-13 08:07:50 +00:00
margin: 14px 4px 0 auto;
2021-07-09 08:59:20 +00:00
z-index: 1;
border-right: 2px solid #d0d5da;
2021-07-09 08:59:20 +00:00
}
.header-container {
height: 38px;
display: flex;
align-items: center;
2021-07-09 08:59:20 +00:00
}
.content-container {
overflow: hidden;
}
.children-wrap {
display: flex;
flex-direction: column;
}
.table-cell {
height: 47px;
border-bottom: 1px solid #eceef1;
}
`;
2021-07-13 08:07:50 +00:00
const StyledTableRow = styled.tr`
2021-07-09 08:59:20 +00:00
height: 47px;
max-height: 47px;
border-bottom: 1px solid #eceef1;
`;
2021-07-13 08:07:50 +00:00
const StyledTableHeader = styled.thead``;
const StyledTableBody = styled.tbody``;
const StyledTableCell = styled.td``;
export {
StyledTableContainer,
StyledTableRow,
StyledTableBody,
StyledTableHeader,
StyledTableCell,
};