style: colors and spacing (#33)
This commit is contained in:
parent
cbb0aea38a
commit
5d23320d04
1 changed files with 15 additions and 6 deletions
|
@ -97,6 +97,8 @@ const {postDivSelector, skipSave = false} = Astro.props;
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div class="post-card__content">
|
<div class="post-card__content">
|
||||||
|
${
|
||||||
|
(source || published) ? `
|
||||||
<div class="post-card__meta">
|
<div class="post-card__meta">
|
||||||
${
|
${
|
||||||
source ? `
|
source ? `
|
||||||
|
@ -110,8 +112,8 @@ const {postDivSelector, skipSave = false} = Astro.props;
|
||||||
`
|
`
|
||||||
: ''
|
: ''
|
||||||
}
|
}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
`: ''}
|
||||||
<h3 class="post-card__title">${title}</h3>
|
<h3 class="post-card__title">${title}</h3>
|
||||||
${
|
${
|
||||||
description ? `
|
description ? `
|
||||||
|
@ -138,8 +140,7 @@ const {postDivSelector, skipSave = false} = Astro.props;
|
||||||
float: left;
|
float: left;
|
||||||
width: calc(100% + 40px);
|
width: calc(100% + 40px);
|
||||||
margin-left: -40px;
|
margin-left: -40px;
|
||||||
padding: 1rem;
|
border-bottom: 1px solid antiquewhite;
|
||||||
border-bottom: 1px solid #eee;
|
|
||||||
|
|
||||||
:global(a) {
|
:global(a) {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@ -150,24 +151,32 @@ const {postDivSelector, skipSave = false} = Astro.props;
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.post-card) {
|
:global(.post-card) {
|
||||||
|
padding: 1rem;
|
||||||
|
|
||||||
:global(.post-card__image) {
|
:global(.post-card__image) {
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 0.5rem;
|
margin-right: 0.5rem;
|
||||||
margin: 0.5rem 1rem 0 0;
|
margin: 0.5rem 1rem 0.5rem 0;
|
||||||
|
|
||||||
:global(img, svg) {
|
:global(img, svg) {
|
||||||
width: 60px;
|
width: 60px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 3px solid #eee;
|
border: 3px solid antiquewhite;
|
||||||
}
|
}
|
||||||
:global(svg) {
|
:global(svg) {
|
||||||
color: #888;
|
color: antiquewhite;
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
:global(.post-card__content) {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: calc(60px + 1rem);
|
||||||
|
}
|
||||||
:global(.post-card__title, .post-card__description) {
|
:global(.post-card__title, .post-card__description) {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
|
|
Loading…
Reference in a new issue