File size: 3,043 Bytes
1e92f2d |
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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
import styled from 'styled-components';
import theme from 'shared/theme';
import Card from 'src/components/card';
import { FlexRow, FlexCol, Truncate } from 'src/components/globals';
import { MEDIA_BREAK } from 'src/components/layout';
export const StyledCard = styled(Card)`
padding: 16px;
`;
export const Form = styled.form`
display: inline-block;
flex-direction: column;
align-self: stretch;
flex: none;
max-width: 100%;
`;
export const FormTitle = styled.h1`
font-size: 20px;
color: ${theme.text.default};
font-weight: 800;
line-height: 1.2;
flex: 1 0 auto;
${Truncate};
`;
export const Subtitle = styled.h4`
font-size: 14px;
color: ${theme.text.alt};
line-height: 1.3;
width: 100%;
${Truncate};
`;
export const Description = styled.p`
font-size: 14px;
color: ${theme.text.default};
padding: 8px 0 16px;
line-height: 1.4;
a {
color: ${theme.brand.default};
}
`;
export const TertiaryActionContainer = styled(FlexRow)`
justify-content: flex-start;
flex-grow: 1;
`;
export const DeleteCoverWrapper = styled(FlexRow)`
justify-content: flex-end;
flex-grow: 1;
height: 0px;
`;
export const DeleteCoverButton = styled.button`
position: relative;
top: 7px;
left: 10px;
background-color: ${theme.text.placeholder};
color: ${theme.text.reverse};
border: none;
border-radius: 50%;
outline: none;
padding: 4px;
height: 24px;
width: 24px;
cursor: pointer;
z-index: 8;
&:hover {
background-color: ${theme.warn.alt};
}
`;
export const Actions = styled(FlexRow)`
margin: 24px -16px 0;
width: calc(100% + 32px);
padding: 16px 16px 0;
justify-content: flex-start;
flex-direction: row-reverse;
border-top: 1px solid ${theme.bg.border};
button + button {
margin-left: 8px;
}
`;
export const PhotoPreview = styled.div`
position: relative;
width: 48px;
height: 48px;
object-fit: cover;
border-radius: 4px;
background-image: url('${props => props.src}')
`;
export const GeneralNotice = styled.span`
padding: 8px 12px;
font-size: 12px;
font-weight: 500;
color: ${theme.text.alt};
background: ${theme.bg.wash};
border-radius: 4px;
margin-top: 24px;
line-height: 1.4;
display: inline-block;
`;
export const ImageInputWrapper = styled(FlexCol)`
position: relative;
flex: 0 0 auto;
margin-top: 8px;
margin-bottom: 24px;
max-width: 342px;
> label:nth-of-type(2) {
position: absolute;
bottom: -24px;
left: 16px;
}
`;
export const Location = styled(FlexRow)`
font-weight: 500;
color: ${theme.text.alt};
font-size: 14px;
margin-bottom: 8px;
> div {
color: ${theme.text.placeholder};
}
> span {
padding: 0 4px;
color: ${theme.text.placeholder};
}
> a:hover {
color: ${theme.brand.alt};
text-decoration: underline;
}
@media (max-width: ${MEDIA_BREAK}px) {
display: none;
}
`;
export const Loading = styled.span`
display: inline-block;
position: absolute;
right: 19px;
top: 45px;
`;
export const GithubSignin = styled.div``;
|