File size: 2,681 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 |
// @flow
import theme from 'shared/theme';
import styled from 'styled-components';
import { FlexRow, FlexCol } from 'src/components/globals';
import { MEDIA_BREAK } from 'src/components/layout';
export const EmailListItem = styled.div`
padding: 8px 0 16px;
border-bottom: 2px solid ${theme.bg.wash};
&:last-of-type {
border-bottom: none;
}
input {
margin-right: 8px;
}
`;
export const CheckboxContent = styled.div`
display: flex;
flex-direction: column;
`;
export const View = styled.div`
display: flex;
flex-direction: column;
flex: 1;
align-self: stretch;
@media (max-width: ${MEDIA_BREAK}px) {
width: 100%;
}
`;
export const Form = styled.form`
display: inline-block;
flex-direction: column;
align-self: stretch;
flex: none;
max-width: 100%;
`;
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 Actions = styled(FlexRow)`
margin-top: 24px;
justify-content: flex-start;
flex-direction: row-reverse;
border-top: 1px solid ${theme.bg.border};
padding-top: 16px;
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;
> 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 GithubSignin = styled.div`
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
a {
margin-top: 8px;
}
`;
export const LogoutWrapper = styled.div`
display: block;
button {
width: 100%;
}
`;
|