Skip to content

Commit

Permalink
Add shadow, border radius, and border around release images
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjago committed Jun 6, 2024
1 parent 508b33e commit fe16871
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
mask-size: contain;
mask-repeat: no-repeat;
}

.img-all-around-shadow img {
box-shadow: 0 0 1rem -0.25rem rgba(0, 0, 0, 0.25);
}
2 changes: 1 addition & 1 deletion layouts/releases/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h1 class="text-7xl text-center font-bold mt-16 mb-4">
>
<h2>{{ .Title }}</h2>
</a>
<div class="prose prose-h3:text-lg prose-h3:mt-0 mt-8">
<div class="prose prose-h3:text-xl prose-h3:mt-0 prose-img:rounded-lg prose-img:border prose-img:border-gray-200 img-all-around-shadow mt-8">
{{ .Content }}
</div>
</article>
Expand Down
2 changes: 1 addition & 1 deletion layouts/releases/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1 class="text-4xl font-bold mb-4">{{ .Title }}</h1>
<p class="mb-2">Dashify <strong>{{ .Params.Version }}</strong></p>
<p class="mb-8">Released <time datetime='{{ .Date.Format "2006-01-02" }}' class="font-semibold">{{ .Date.Format "2 January 2006" }}</time></p>
<article class="prose max-w-none">
<article class="prose prose-img:rounded-lg prose-img:border prose-img:border-gray-200 img-all-around-shadow max-w-none">
{{ .Content }}
</article>
<div class="bg-[#9D6095E3] mt-28 text-xl mx-auto text-center py-12 px-8 text-gray-50 rounded-lg">
Expand Down

0 comments on commit fe16871

Please sign in to comment.