Newer
Older
1
2
3
4
5
6
7
8
9
10
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
62
63
64
65
66
67
import { th } from '@pubsweet/ui'
import styled from 'styled-components'
export const RootContainer = styled.div`
background-color: ${th('backgroundColorReverse')};
border: ${({ bordered }) => (bordered ? th('borderDefault') : 'none')};
display: flex;
flex-direction: column;
margin: 0 auto;
max-width: 550px;
min-width: 350px;
padding: calc(${th('subGridUnit')} * 2) calc(${th('subGridUnit')} * 4);
`
export const Title = styled.div`
color: ${th('colorPrimary')};
font-family: ${th('fontHeading')};
font-size: ${th('fontSizeHeading5')};
font-weight: bold;
margin: 10px auto;
text-align: center;
`
export const Subtitle = styled.div`
font-family: ${th('fontReading')};
font-size: ${th('fontSizeBase')};
font-weight: normal;
margin: 10px auto;
text-align: center;
`
export const Email = styled.div`
font-family: ${th('fontReading')};
font-size: ${th('fontSizeBase')};
font-weight: normal;
margin: 10px auto;
text-align: center;
`
export const FormContainer = styled.form``
export const Row = styled.div`
align-items: center;
display: flex;
flex-direction: row;
justify-content: space-evenly;
margin: calc(${th('subGridUnit')} * 2) 0;
`
export const RowItem = styled.div`
display: flex;
flex: 1;
flex-direction: ${({ vertical }) => (vertical ? 'column' : 'row')};
justify-content: ${({ centered }) => (centered ? 'center' : 'initial')};
`
export const Label = styled.div`
font-family: ${th('fontReading')};
font-size: ${th('fontSizeBaseSmall')};
text-transform: uppercase;
`
export const Err = styled.span`
color: ${th('colorError')};
font-family: ${th('fontReading')};
font-size: ${th('fontSizeBase')};
margin-top: calc(${th('gridUnit')}*-1);
text-align: center;
`
export const Textarea = styled.textarea`
width: 100%;
padding: calc(${th('subGridUnit')}*2);
font-size: ${th('fontSizeBaseSmall')};
font-family: ${th('fontWriting')};
border-color: ${({ hasError }) =>
hasError ? th('colorError') : th('colorPrimary')};
transition: all 300ms linear;
&:read-only {
background-color: ${th('colorBackgroundHue')};
}
`