Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
deminearchiver committed May 24, 2024
1 parent 1edc4f6 commit ed2d7e1
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions app/src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ const { Content } = await post.render();
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 24px;
overflow: hidden;
border-radius: 28px;

&.with-cover {
aspect-ratio: 16 / 9;
}
&.card {
gap: 48px;
border: 1px solid var(--color-outline-variant);
border-radius: 28px;
}
}

Expand All @@ -121,17 +121,15 @@ const { Content } = await post.render();
object-fit: contain;
border-radius: 28px;
z-index: -1;
}

:root[data-theme="dark"] .cover {
filter: brightness(0.4);
mask-image: linear-gradient(0deg, transparent, black);
}

.actions {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 24px 24px 0 24px;
}


Expand All @@ -141,7 +139,13 @@ const { Content } = await post.render();
flex-direction: column;
align-items: stretch;
justify-content: flex-end;
padding: 0 8px;
padding: 24px;
}

.header.with-cover .details {
border-radius: 28px 28px 0 0;
backdrop-filter: blur(8px);
background-image: linear-gradient(0deg, transparent, color-mix(in srgb, var(--color-surface) 38%, transparent));
}

.date {
Expand Down

0 comments on commit ed2d7e1

Please sign in to comment.