Skip to content
Snippets Groups Projects
Commit 8a9cfc9e authored by Audrey Hamelers's avatar Audrey Hamelers
Browse files

style edit

parent 6b66bbe5
No related branches found
No related tags found
2 merge requests!93Shared data model,!94Dev
......@@ -30,6 +30,10 @@ const Alert = withTheme(({ children, theme }) => (
</Icon>
))
const CloseEdit = styled(Close)`
margin: calc(${th('gridUnit')} * 6) auto calc(${th('gridUnit')} * 2);
`
const ErrorReport = styled.p`
white-space: pre-wrap;
font-style: italic;
......@@ -135,11 +139,11 @@ class Submit extends React.Component {
} else if (editing) {
return (
<Page>
<Close>
<CloseEdit>
<CloseButton
onClick={() => this.setState({ editing: null })}
/>
</Close>
</CloseEdit>
{editing.props['data-upload'] ? (
<div>
<H2>Files</H2>
......
import React from 'react'
import styled from 'styled-components'
import { th } from '@pubsweet/ui-toolkit'
import { Icon, Action } from '@pubsweet/ui'
const Close = styled.p`
display: flex;
align-items: center;
justify-content: flex-end
margin: calc(${th('gridUnit')} * 6) auto calc(${th('gridUnit')} * 2);
justify-content: flex-end;
`
const CloseButton = ({ size = 4, ...props }) => (
......
......@@ -15,7 +15,6 @@ export const Modal = styled.div`
box-sizing: border-box;
margin: calc(${th('gridUnit')} * 4) auto;
& > p:first-child {
margin: 0;
& + h2 {
margin-top: 0;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment