Newer
Older
import styled from 'styled-components'
import { th, grid } from '@pubsweet/ui-toolkit'
export const Table = styled.table`
width: 100%;
border-radius: ${th('borderRadius')};
border-collapse: collapse;
font-size: ${th('fontSizeBaseSmall')};
overflow: hidden;
td {
width: 25%;
}
`
export const ManuscriptsTable = styled(Table)`
@media (max-width: 1400px) {
margin-top: 0;
}
`
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
export const Header = styled.thead`
text-align: left;
font-variant: all-small-caps;
border-bottom: 1px solid ${th('colorFurniture')};
background-color: ${th('colorSecondaryBackground')};
th {
padding: ${grid(1)} ${grid(3)};
}
`
export const Row = styled.tr`
max-height: ${grid(8)};
border-bottom: 1px solid ${th('colorFurniture')};
&:hover {
background-color: ${th('colorBackgroundHue')};
}
`
export const Cell = styled.td`
padding-bottom: ${grid(2)};
padding-top: calc(${grid(2)} - 1px);
padding-left: ${grid(3)};
padding-right: ${grid(3)};
button {
font-size: ${th('fontSizeBaseSmall')};
}
`
export const LastCell = styled(Cell)`
text-align: right;
`