Refactor post list view
This commit is contained in:
parent
2ee6ed8104
commit
391cc98e35
4 changed files with 10 additions and 9 deletions
|
|
@ -26,7 +26,7 @@ class PostItem extends React.Component {
|
||||||
|
|
||||||
<div className="posts-info">
|
<div className="posts-info">
|
||||||
<span className="posts-info__date" title={publicationDate}>
|
<span className="posts-info__date" title={publicationDate}>
|
||||||
{publicationDate}
|
{publicationDate} {post.author && `By ${post.author}`}
|
||||||
</span>
|
</span>
|
||||||
<a
|
<a
|
||||||
className="posts-info__link"
|
className="posts-info__link"
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
.posts-info {
|
.posts-info {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
width: 20%;
|
margin: 10px 0;
|
||||||
|
gap: 15px;
|
||||||
|
|
||||||
&__date {
|
&__date {
|
||||||
align-self: center;
|
align-self: center;
|
||||||
|
|
@ -12,4 +12,8 @@
|
||||||
&__link {
|
&__link {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
& .gg-link {
|
||||||
|
transform: rotate(-45deg) scale(var(--ggs, 0.9));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&__name {
|
&__name {
|
||||||
padding: 20px 0 10px 0;
|
padding: 0 10px 10px 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,9 @@
|
||||||
|
|
||||||
&__item {
|
&__item {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
flex-direction: column-reverse;
|
||||||
|
|
||||||
padding: 10px 0 10px 0;
|
padding: 10px;
|
||||||
|
|
||||||
border-radius: 2px;
|
|
||||||
border-bottom: 2px solid $azureish-white;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue