Skip to content

Commit

Permalink
fix: move css for project_gallery into SCSS for project related styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean1572 committed Apr 25, 2024
1 parent 53ad7de commit 31198c3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
24 changes: 2 additions & 22 deletions _layouts/project_gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ <h1 class="page-heading">{{ page.title }}</h1>

<div class="project-gallery">
{%- for project_data in page.blurbs -%}
<div class="project-container">
<div class="project-gallery_container">
<a href={{ project_data.redict }}>
<img src="{{ project_data.photo | absolute_url }}" class="gallery_img" decoding="async"
<img src="{{ project_data.photo | absolute_url }}" class="project-gallery_img" decoding="async"
alt="">
</a>
<div description>
Expand All @@ -27,24 +27,4 @@ <h1 class="page-heading">{{ page.title }}</h1>
</div>
{%- endfor -%}
</div>

<style>
.project-gallery {
display: flex;
flex: auto;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
gap: 10px;
}

.project-container {
width: 250px;
}

img {
width: 250px;
height: 250px;
}
</style>
</div>
18 changes: 18 additions & 0 deletions _sass/minima/_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,24 @@
text-align: center;
}

.project-gallery {
display: flex;
flex: auto;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
gap: 10px;
}

.project-gallery_container {
width: 250px;
}

.project-gallery_img {
width: 250px;
height: 250px;
}

iframe {
display: block;
margin-left: auto;
Expand Down

0 comments on commit 31198c3

Please sign in to comment.