Newer
Older
import styled from 'styled-components'
import { grid, th } from '@pubsweet/ui-toolkit'
export const Section = styled.div`
padding: ${grid(2)} ${grid(3)};
&:not(:last-of-type) {
margin-bottom: ${grid(6)};
}
`
11
12
13
14
15
16
17
18
19
20
21
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
56
57
58
59
60
61
export const Content = styled.div`
box-shadow: ${th('boxShadow')};
background-color: ${th('colorBackground')};
border-radius: ${th('borderRadius')};
`
export const SectionContent = styled(Section)`
padding: 0;
box-shadow: ${th('boxShadow')};
background-color: ${th('colorBackground')};
border-radius: ${th('borderRadius')};
`
export const PaddedContent = styled(Content)`
padding: ${grid(2)} ${grid(3)};
margin-top: ${grid(3)};
margin-bottom: ${grid(3)};
`
export const Container = styled.div`
background: ${th('colorBackgroundHue')};
padding: ${grid(2)};
overflow-y: scroll;
`
export const Title = styled.h2`
font-size: ${th('fontSizeHeading5')};
font-weight: 500;
`
export const SectionHeader = styled.div`
padding: ${grid(2)} ${grid(3)};
border-bottom: 1px solid ${th('colorFurniture')};
`
export const SectionRow = styled.div`
border-bottom: 1px solid ${th('colorFurniture')};
padding: ${grid(2)} ${grid(3)};
`
export const SectionRowGrid = styled(SectionRow)`
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
grid-gap: ${grid(2)};
`
export const SectionAction = styled.div`
grid-column: 3;
justify-self: end;
`
const Page = styled.div`
padding: ${grid(2)};
`
const Heading = styled.div`
color: ${th('colorPrimary')};
font-family: ${th('fontReading')};
font-size: ${th('fontSizeHeading3')};
line-height: ${th('lineHeightHeading3')};
`
export { Page, Heading }
export const HeadingWithAction = styled.div`
display: grid;
grid-template-columns: 1fr auto;
align-items: center;
`