2022-08-28 20:12:09 +02:00
|
|
|
import styled from 'styled-components';
|
2023-01-11 19:08:14 +01:00
|
|
|
import { media } from '../lib/responsive';
|
2022-08-28 20:12:09 +02:00
|
|
|
|
|
|
|
export const Table = styled.table`
|
2023-10-29 13:09:53 +01:00
|
|
|
display: block;
|
|
|
|
overflow-x: auto;
|
2022-08-28 20:12:09 +02:00
|
|
|
width: 100%;
|
|
|
|
border-collapse: collapse;
|
|
|
|
margin: 24px 0;
|
|
|
|
td,
|
|
|
|
th {
|
2023-03-19 21:23:43 +01:00
|
|
|
border: solid 2px var(--g6);
|
2022-08-28 20:12:09 +02:00
|
|
|
font-size: 16px;
|
|
|
|
line-height: 25.6px;
|
|
|
|
padding: 12px 20px;
|
2023-03-19 21:23:43 +01:00
|
|
|
color: var(--g1);
|
2022-08-28 20:12:09 +02:00
|
|
|
${media.lg} {
|
|
|
|
padding: 12px 30px 12px 60px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
thead td,
|
|
|
|
thead th {
|
2023-03-19 21:23:43 +01:00
|
|
|
color: var(--g0);
|
|
|
|
background: var(--g7);
|
2022-08-28 20:12:09 +02:00
|
|
|
font-weight: 700;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
tbody tr:nth-child(even) td {
|
2023-03-19 21:23:43 +01:00
|
|
|
background: var(--g7);
|
2022-08-28 20:12:09 +02:00
|
|
|
}
|
|
|
|
`;
|