UNPKG

644 BJavaScriptView Raw
1import styled from 'styled-components';
2
3const Table = styled.div`
4 display: flex;
5 flex-direction: column;
6 margin: auto;
7 font-size: .9rem;
8`;
9
10export 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
17export const TableRow = styled.div`
18 display: flex;
19 background-color: ${props => props.theme.bahTableRowColor};
20`;
21
22export const TableCol = styled.div`
23 flex-grow: ${props => props.flexGrow || 1};
24 flex-basis: 0;
25 margin: 2px 8px 2px 4px;
26`;
27
28export default Table;