File size: 2,289 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 |
// @flow
import styled, { createGlobalStyle } from 'styled-components';
import theme from 'shared/theme';
import { Link } from 'react-router-dom';
import { tint, zIndex } from 'src/components/globals';
export const Container = styled.div``;
export const LinkWrapper = styled(Link)``;
export const Column = styled.div``;
export const AvatarWrapper = styled.div``;
export const GlobalThreadAttachmentStyles = createGlobalStyle`
.attachment-container {
h3 {
font-size: 16px;
font-weight: 500;
color: ${theme.text.default};
max-width: 100%;
line-height: 1.4;
margin-bottom: -4px;
margin-top: 0;
}
img {
border-radius: 100px;
}
${Container} {
position: relative;
list-style-type: none;
border-left: 1px solid ${theme.bg.border};
border-right: 1px solid ${theme.bg.border};
border-radius: 0px;
background: ${theme.bg.default};
padding: 8px 12px;
z-index: 0;
display: flex;
a {
text-decoration: none;
}
> a {
display: block;
padding: 8px 12px;
}
&:hover {
background: ${tint(theme.bg.wash, 1)};
}
&:only-child {
border-radius: 4px;
border-top: 1px solid ${theme.bg.border};
border-bottom: 1px solid ${theme.bg.border};
margin: 8px 0;
}
&:not(:first-child):not(:last-child) {
border-top: 1px solid ${theme.bg.border};
}
&:first-child:not(:last-child) {
border-radius: 4px 4px 0 0;
border-top: 1px solid ${theme.bg.border};
margin-top: 8px;
}
&:last-child:not(:first-child) {
border-radius: 0 0 4px 4px;
border-bottom: 1px solid ${theme.bg.border};
border-top: 1px solid ${theme.bg.border};
margin-bottom: 8px;
}
}
${LinkWrapper} {
position: absolute;
display: inline-block;
height: 100%;
width: 100%;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: ${zIndex.card};
&:hover {
cursor: pointer;
}
}
${Column} {
display: flex;
flex-direction: column;
}
${AvatarWrapper} {
padding-top: 4px;
margin-right: 12px;
}
}
`;
|