mirror of
https://github.com/cupcakearmy/nicco.io.git
synced 2024-12-22 08:06:29 +00:00
styling for without image
This commit is contained in:
parent
80cbf9790c
commit
c255ea209a
@ -8,7 +8,7 @@
|
||||
<style>
|
||||
a {
|
||||
display: block;
|
||||
margin-bottom: 6em;
|
||||
margin-bottom: 5em;
|
||||
}
|
||||
a > :global(img) {
|
||||
height: 12em;
|
||||
@ -33,9 +33,16 @@
|
||||
a:hover > :global(div) {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
a.without {
|
||||
border: 2px solid var(--clr-primary);
|
||||
padding: 5%;
|
||||
width: calc(100% + 10%);
|
||||
transform: translateX(-5%);
|
||||
}
|
||||
</style>
|
||||
|
||||
<a href={`blog/${post.slug}`}>
|
||||
<a href={`blog/${post.slug}`} class:without={!post.featured}>
|
||||
{#if post.featured}
|
||||
<ImageFrame src={post.featured.url} alt={post.featured.description} />
|
||||
{/if}
|
||||
|
Loading…
Reference in New Issue
Block a user