2019-03-28 05:39:06 +07:00
|
|
|
import styled from 'react-emotion';
|
2019-02-03 17:23:33 +07:00
|
|
|
import { Link } from 'react-router-dom';
|
|
|
|
|
2019-06-20 19:37:28 +07:00
|
|
|
import Grid from '@material-ui/core/Grid';
|
|
|
|
import List from '@material-ui/core/List';
|
|
|
|
import ListItem from '@material-ui/core/ListItem';
|
|
|
|
import ListItemText from '@material-ui/core/ListItemText';
|
|
|
|
import MuiIconButton from '@material-ui/core/IconButton';
|
2019-03-28 05:39:06 +07:00
|
|
|
import Photo from '@material-ui/core/Avatar';
|
2019-06-20 19:37:28 +07:00
|
|
|
import Typography from '@material-ui/core/Typography';
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2019-03-28 05:39:06 +07:00
|
|
|
import { breakpoints } from '../../utils/styles/media';
|
|
|
|
import Ico from '../Icon';
|
2019-02-03 17:23:33 +07:00
|
|
|
import Label from '../Label';
|
2019-03-28 05:39:06 +07:00
|
|
|
import colors from '../../utils/styles/colors';
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2019-06-20 19:37:28 +07:00
|
|
|
export const OverviewItem = styled('span')`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
|
|
|
display: flex;
|
2019-03-28 05:39:06 +07:00
|
|
|
align-items: center;
|
|
|
|
margin: 0 0 0 16px;
|
|
|
|
color: ${colors.greyLight2};
|
|
|
|
font-size: 12px;
|
|
|
|
@media (max-width: ${breakpoints.medium}px) {
|
|
|
|
&:nth-child(3) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: ${breakpoints.small}px) {
|
|
|
|
&:nth-child(4) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-03-28 05:39:06 +07:00
|
|
|
export const Icon = styled(Ico)`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-03-28 05:39:06 +07:00
|
|
|
margin: 2px 10px 0px 0;
|
|
|
|
fill: ${colors.greyLight2};
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-06-20 19:37:28 +07:00
|
|
|
export const Published = styled('span')`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-03-28 05:39:06 +07:00
|
|
|
color: ${colors.greyLight2};
|
|
|
|
margin: 0px 5px 0px 0px;
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-06-20 19:37:28 +07:00
|
|
|
// @ts-ignore
|
2019-03-28 05:39:06 +07:00
|
|
|
export const Text = styled(Label)`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-03-28 05:39:06 +07:00
|
|
|
font-size: 12px;
|
|
|
|
font-weight: 500;
|
|
|
|
color: ${colors.greyLight2};
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-06-20 19:37:28 +07:00
|
|
|
export const Details = styled('span')`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-03-28 05:39:06 +07:00
|
|
|
margin-left: 5px;
|
|
|
|
line-height: 1.5;
|
2019-02-03 17:23:33 +07:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-06-20 19:37:28 +07:00
|
|
|
export const Author = styled('div')`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-03-28 05:39:06 +07:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-03-28 05:39:06 +07:00
|
|
|
export const Avatar = styled(Photo)`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-03-28 05:39:06 +07:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-03-28 05:39:06 +07:00
|
|
|
export const WrapperLink = styled(Link)`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-03-28 05:39:06 +07:00
|
|
|
text-decoration: none;
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-06-20 19:37:28 +07:00
|
|
|
export const PackageTitle = styled('span')`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-03-28 05:39:06 +07:00
|
|
|
font-weight: 600;
|
|
|
|
font-size: 20px;
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
color: ${colors.eclipse};
|
|
|
|
cursor: pointer;
|
2019-02-03 17:23:33 +07:00
|
|
|
|
2019-03-28 05:39:06 +07:00
|
|
|
&:hover {
|
|
|
|
color: ${colors.black};
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: ${breakpoints.small}px) {
|
|
|
|
font-size: 14px;
|
|
|
|
margin-bottom: 8px;
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-03-28 05:39:06 +07:00
|
|
|
export const GridRightAligned = styled(Grid)`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-03-28 05:39:06 +07:00
|
|
|
text-align: right;
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-03-28 05:39:06 +07:00
|
|
|
export const PackageList = styled(List)`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-03-28 05:39:06 +07:00
|
|
|
padding: 12px 0 12px 0;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: ${colors.greyLight3};
|
|
|
|
}
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-03-28 05:39:06 +07:00
|
|
|
export const IconButton = styled(MuiIconButton)`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-03-28 05:39:06 +07:00
|
|
|
padding: 6px;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-06-20 19:37:28 +07:00
|
|
|
export const TagContainer = styled('span')`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-03-28 05:39:06 +07:00
|
|
|
margin-top: 8px;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
display: block;
|
|
|
|
@media (max-width: ${breakpoints.medium}px) {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-03-28 05:39:06 +07:00
|
|
|
export const PackageListItem = styled(ListItem)`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-03-28 05:39:06 +07:00
|
|
|
padding-top: 0;
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-03-28 05:39:06 +07:00
|
|
|
export const PackageListItemText = styled(ListItemText)`
|
2019-02-03 17:23:33 +07:00
|
|
|
&& {
|
2019-03-28 05:39:06 +07:00
|
|
|
padding-right: 0;
|
2019-02-03 17:23:33 +07:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-03-28 05:39:06 +07:00
|
|
|
export const Description = styled(Typography)`
|
|
|
|
color: ${colors.greyDark2};
|
|
|
|
font-size: 14px;
|
|
|
|
padding-right: 0;
|
2019-02-03 17:23:33 +07:00
|
|
|
`;
|