Skip to content

Commit

Permalink
make all images in projects centered
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean1572 committed Apr 12, 2024
1 parent 7f47286 commit 2e9e26a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _layouts/project.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1 class="page-heading">{{ page.title }}</h1>
{%- endif -%}


<div class="project-content e-content" itemprop="articleBody">
<div class="project-content">
{{ content }}
</div>
</article>
10 changes: 9 additions & 1 deletion _sass/minima/_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,12 @@
.captioned-img-container {
width: fit-content;
margin: auto;
}
}

.project-content img {
max-width: 100%;
vertical-align: middle;
display: block;
margin-left: auto;
margin-right: auto;
}

0 comments on commit 2e9e26a

Please sign in to comment.