Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS changes to author info section #2035

Merged
merged 7 commits into from
Apr 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions src/web/src/components/Posts/PostInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import AdminButtons from '../AdminButtons';
const useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
margin: '0',
marginLeft: '2rem',
padding: '0',
display: 'flex',
borderLeft: '1.5px solid #999999',
flexDirection: 'column',
justifyContent: 'center',
borderLeft: '2.5px solid #707070',
PedroFonsecaDEV marked this conversation as resolved.
Show resolved Hide resolved
width: '100%',
[theme.breakpoints.up('lg')]: {
width: '22rem',
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-add the breakpoint to utilize the whitespace on larger screens.

#2026 (comment)

Expand All @@ -19,6 +20,7 @@ const useStyles = makeStyles((theme: Theme) =>
shapeOutside: 'circle(50%) border-box',
shapeMargin: '1rem',
borderRadius: '50%',
marginLeft: '1rem',
},
circle: {
display: 'block',
Expand All @@ -30,14 +32,15 @@ const useStyles = makeStyles((theme: Theme) =>
},
authorNameContainer: {
width: '100%',
height: '3rem',
marginLeft: '1.5rem',
},
author: {
width: '100%',
wordWrap: 'break-word',
fontSize: '2em',
lineHeight: '1.5em',
fontSize: '1.6em',
lineHeight: '1em',
fontWeight: 'bold',
marginLeft: '.5em',
color: theme.palette.text.primary,
},
link: {
Expand All @@ -48,8 +51,8 @@ const useStyles = makeStyles((theme: Theme) =>
},
},
published: {
marginLeft: '.5em',
fontSize: '1.5em',
marginLeft: '1.5rem',
fontSize: '1.2em',
fontWeight: 'lighter',
textDecoration: 'none',
color: theme.palette.text.primary,
Expand All @@ -76,11 +79,11 @@ const PostDesktopInfo = ({ authorName, postDate, blogUrl, postUrl }: Props) => {
<PostAvatar name={authorName} blog={blogUrl} />
</div>
<div className={classes.authorNameContainer}>
<h1 className={classes.author}>
<p className={classes.author}>
<a className={classes.link} href={blogUrl}>
{authorName}
</a>
</h1>
</p>
</div>
<div>
<a href={postUrl} rel="bookmark" className={classes.published}>
Expand Down