2023-07-06 14:22:44 +03:00
|
|
|
import { themeColors } from 'constants/theme';
|
|
|
|
|
import styled from 'styled-components';
|
|
|
|
|
|
2023-07-18 14:48:34 +03:00
|
|
|
interface TableHeaderCellStyledProps {
|
|
|
|
|
isDragColumn: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-06 14:22:44 +03:00
|
|
|
export const TableStyled = styled.table`
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-top: 1px solid rgba(253, 253, 253, 0.12);
|
|
|
|
|
border-radius: 2px 2px 0 0;
|
|
|
|
|
border-collapse: separate;
|
|
|
|
|
border-spacing: 0;
|
|
|
|
|
border-inline-start: 1px solid rgba(253, 253, 253, 0.12);
|
|
|
|
|
border-inline-end: 1px solid rgba(253, 253, 253, 0.12);
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const TableCellStyled = styled.td`
|
|
|
|
|
padding: 0.5rem;
|
|
|
|
|
border-inline-end: 1px solid rgba(253, 253, 253, 0.12);
|
|
|
|
|
border-top: 1px solid rgba(253, 253, 253, 0.12);
|
|
|
|
|
background-color: ${themeColors.lightBlack};
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const TableRowStyled = styled.tr`
|
|
|
|
|
&:hover {
|
|
|
|
|
${TableCellStyled} {
|
|
|
|
|
background-color: #1d1d1d;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2023-07-18 14:48:34 +03:00
|
|
|
export const TableHeaderCellStyled = styled.th<TableHeaderCellStyledProps>`
|
2023-07-06 14:22:44 +03:00
|
|
|
padding: 0.5rem;
|
|
|
|
|
border-inline-end: 1px solid rgba(253, 253, 253, 0.12);
|
|
|
|
|
background-color: #1d1d1d;
|
2023-07-18 14:48:34 +03:00
|
|
|
${({ isDragColumn }): string => (isDragColumn ? 'cursor: col-resize;' : '')}
|
|
|
|
|
|
2023-07-06 14:22:44 +03:00
|
|
|
&:first-child {
|
|
|
|
|
border-start-start-radius: 2px;
|
|
|
|
|
}
|
|
|
|
|
&:last-child {
|
|
|
|
|
border-start-end-radius: 2px;
|
|
|
|
|
border-inline-end: none;
|
|
|
|
|
}
|
|
|
|
|
`;
|