Table.styled.ts 574 B

1234567891011121314151617181920212223242526
  1. import styled from 'styled-components';
  2. interface Props {
  3. isFullwidth?: boolean;
  4. }
  5. export const Table = styled.table<Props>`
  6. width: ${(props) => (props.isFullwidth ? '100%' : 'auto')};
  7. & td {
  8. border-top: 1px #f1f2f3 solid;
  9. font-size: 14px;
  10. font-weight: 400;
  11. padding: 8px 8px 8px 24px;
  12. color: ${({ theme }) => theme.table.td.color.normal};
  13. vertical-align: middle;
  14. max-width: 350px;
  15. word-wrap: break-word;
  16. }
  17. & tbody > tr {
  18. &:hover {
  19. background-color: ${({ theme }) => theme.table.tr.backgroundColor.hover};
  20. }
  21. }
  22. `;