import styled from 'styled-components' import { Heading } from '@pubsweet/ui' 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 PageHeading = styled(Heading)` color: ${th('colorText')}; margin-bottom: 1rem; ` export const Content = styled.div` box-shadow: ${th('boxShadow')}; background-color: ${th('colorBackground')}; border-radius: ${th('borderRadius')}; ` 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 Container = styled.div` background: ${th('colorBackgroundHue')}; padding: ${grid(2)}; overflow-y: scroll; ` 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; `