hyperspace-desktop-client-w.../src/components/Post/Post.styles.tsx

100 lines
2.2 KiB
TypeScript
Raw Normal View History

2019-03-30 22:13:49 +01:00
import { Theme, createStyles } from "@material-ui/core";
export const styles = (theme: Theme) =>
createStyles({
2019-03-30 22:13:49 +01:00
post: {
marginTop: theme.spacing.unit,
marginBottom: theme.spacing.unit
},
postReblogChip: {
color: theme.palette.common.white,
"&:hover": {
2019-03-30 22:13:49 +01:00
backgroundColor: theme.palette.secondary.light
},
backgroundColor: theme.palette.secondary.main,
2019-03-30 22:13:49 +01:00
marginBottom: theme.spacing.unit
},
postContent: {
paddingTop: 0,
paddingBottom: 0,
"& a": {
textDecoration: "none",
2019-03-30 22:13:49 +01:00
color: theme.palette.secondary.light,
"&:hover": {
textDecoration: "underline"
2019-03-30 22:13:49 +01:00
},
"&.u-url.mention": {
textDecoration: "none",
color: "inherit",
fontWeight: "bold"
},
"&.mention.hashtag": {
textDecoration: "none",
color: "inherit",
fontWeight: "bold"
}
2019-03-30 22:13:49 +01:00
}
},
postCard: {
"& a:hover": {
textDecoration: "none"
2019-03-30 22:13:49 +01:00
}
},
postEmoji: {
2019-04-04 02:01:54 +02:00
height: theme.typography.fontSize
2019-03-30 22:13:49 +01:00
},
postMedia: {
height: 0,
paddingTop: "56.25%" // 16:9
2019-03-30 22:13:49 +01:00
},
postActionsReply: {
marginLeft: theme.spacing.unit,
marginRight: theme.spacing.unit
},
postFlexGrow: {
flexGrow: 1
},
postTypeIconDiv: {
marginRight: theme.spacing.unit * 2
},
postTypeIcon: {
color: theme.palette.grey[500]
},
postWarningIcon: {
marginRight: theme.spacing.unit,
2019-03-31 22:49:09 +02:00
color: "inherit"
2019-03-30 22:13:49 +01:00
},
postDidAction: {
color: theme.palette.secondary.main
},
postMention: {
marginRight: theme.spacing.unit,
marginBottom: theme.spacing.unit
2019-03-31 22:49:09 +02:00
},
nsfwCard: {
backgroundColor: theme.palette.error.main
2019-04-01 04:11:08 +02:00
},
postTags: {
paddingTop: theme.spacing.unit,
paddingBottom: theme.spacing.unit
2019-04-04 02:01:54 +02:00
},
postAuthorEmoji: {
height: theme.typography.fontSize,
verticalAlign: "middle"
},
heading: {
color: "inherit"
},
mobileOnly: {
[theme.breakpoints.up("sm")]: {
display: "none"
}
},
desktopOnly: {
display: "none",
[theme.breakpoints.up("sm")]: {
display: "block"
}
2019-03-30 22:13:49 +01:00
}
});