1 | import styled from 'styled-components';
|
2 |
|
3 | const Table = styled.div`
|
4 | display: flex;
|
5 | flex-direction: column;
|
6 | margin: auto;
|
7 | font-size: .9rem;
|
8 | `;
|
9 |
|
10 | export const TableHeader = styled.div`
|
11 | display: flex;
|
12 | background-color: ${props => props.theme.bahTableHeaderColor};
|
13 | font-weight: 700;
|
14 | border-bottom: 1px solid ${props => props.theme.bahTableHeaderBorderColor};
|
15 | `;
|
16 |
|
17 | export const TableRow = styled.div`
|
18 | display: flex;
|
19 | background-color: ${props => props.theme.bahTableRowColor};
|
20 | `;
|
21 |
|
22 | export const TableCol = styled.div`
|
23 | flex-grow: ${props => props.flexGrow || 1};
|
24 | flex-basis: 0;
|
25 | margin: 2px 8px 2px 4px;
|
26 | `;
|
27 |
|
28 | export default Table;
|