style: spacing, colors, typography

This commit is contained in:
Ayo 2023-06-10 19:45:22 +02:00
parent c49f6be27c
commit e9c819876a

View file

@ -140,7 +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;
border-bottom: 1px solid antiquewhite; border-bottom: 1px solid #eee;
:global(a) { :global(a) {
text-decoration: none; text-decoration: none;
@ -151,22 +151,22 @@ const {postDivSelector, skipSave = false} = Astro.props;
} }
:global(.post-card) { :global(.post-card) {
padding: 1rem; padding: 1rem 0;
: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.5rem 0; margin: 0.25rem 1rem 0.25rem 0;
:global(img, svg) { :global(img, svg) {
width: 60px; width: 70px;
height: 60px; height: 70px;
object-fit: cover; object-fit: cover;
border-radius: 50%; border-radius: 5px;
border: 3px solid antiquewhite; border: 1px solid #eee;
} }
:global(svg) { :global(svg) {
color: antiquewhite; color: #ccc;
padding: 0.5rem; padding: 0.5rem;
} }
} }
@ -175,7 +175,7 @@ const {postDivSelector, skipSave = false} = Astro.props;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
min-height: calc(60px + 1rem); min-height: calc(70px + 0.5rem);
} }
:global(.post-card__title, .post-card__description) { :global(.post-card__title, .post-card__description) {
display: -webkit-box; display: -webkit-box;
@ -183,11 +183,13 @@ const {postDivSelector, skipSave = false} = Astro.props;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
overflow: hidden; overflow: hidden;
} }
:global(.post-card__meta, .post-card__description){
font-size: smaller;
color: #555;
}
:global(.post-card__meta) { :global(.post-card__meta) {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: smaller;
color: #555;
* { * {
flex: 1; flex: 1;