File tree Expand file tree Collapse file tree 7 files changed +21
-40
lines changed Expand file tree Collapse file tree 7 files changed +21
-40
lines changed Original file line number Diff line number Diff line change 1- <div class =" grid-sizer" ></div >
2- <div class =" grid-item" >
1+ <div class =" col" >
32 <a href =" {% if project .redirect %}{{ project .redirect }}{% else %}{{ project .url | relative_url }}{% endif %}" >
4- <div class =" card hoverable" >
3+ <div class =" card h-100 hoverable" >
54 {% if project .img %}
65 {%
76 include figure .liquid
87 loading ="eager"
98 path =project .img
109 sizes = "250px"
1110 alt ="project thumbnail"
11+ class ="card-img-top"
1212 %}
1313 {% endif %}
1414 <div class =" card-body" >
15- <h2 class =" card-title text-lowercase " >{{ project .title }}</h2 >
15+ <h2 class =" card-title" >{{ project .title }}</h2 >
1616 <p class =" card-text" >{{ project .description }}</p >
1717 <div class =" row ml-1 mr-1 p-0" >
1818 {% if project .github %}
Original file line number Diff line number Diff line change 1- <div class =" card-item col" >
1+ <div class =" col mb-4 " >
22 <a href =" {% if project .redirect %}{{ project .redirect }}{% else %}{{ project .url | relative_url }}{% endif %}" >
3- <div class =" card hoverable" >
4- <div class =" row g-0 " >
3+ <div class =" card h-100 hoverable" >
4+ <div class =" row no-gutters " >
55 {% if project .img %}
6- <div class =" card-img col-md-6" >
7- {% include figure .liquid loading ="eager" path =project .img sizes ="(min-width: 768px) 156px, 50vw" alt ="project thumbnail" %}
6+ <div class =" col-md-6" >
7+ {% include figure .liquid loading ="eager" path =project .img sizes ="(min-width: 768px) 156px, 50vw" alt ="project thumbnail" class = "card-img" %}
88 </div >
99 {% endif %}
1010 <div class =" {% if project .img %}col-md-6{% else %}col-md-12{% endif %}" >
1111 <div class =" card-body" >
12- <h3 class =" card-title text-lowercase " >{{ project .title }}</h3 >
12+ <h3 class =" card-title" >{{ project .title }}</h3 >
1313 <p class =" card-text" >{{ project .description }}</p >
1414 <div class =" row ml-1 mr-1 p-0" >
1515 {% if project .github %}
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ pagination:
6464{% assign is_even = featured_posts.size | modulo: 2 %}
6565<div class =" row row-cols-{% if featured_posts.size <= 2 or is_even == 0 %}2{% else %}3{% endif %} " >
6666{% for post in featured_posts %}
67- <div class =" card-item col" >
67+ <div class =" col mb-4 " >
6868<a href =" {{ post.url | relative_url }} " >
6969<div class =" card hoverable " >
7070<div class =" row g-0 " >
Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ horizontal: false
2222 <!-- Generate cards for each project -->
2323 {% if page.horizontal %}
2424 <div class =" container " >
25- <div class="row row-cols-2">
25+ <div class="row row-cols-1 row-cols-md- 2">
2626 {% for project in sorted_projects %}
2727 {% include projects_horizontal.liquid %}
2828 {% endfor %}
2929 </div>
3030 </div >
3131 {% else %}
32- <div class =" grid " >
32+ <div class =" row row-cols-1 row-cols-md-3 " >
3333 {% for project in sorted_projects %}
3434 {% include projects.liquid %}
3535 {% endfor %}
@@ -48,14 +48,14 @@ horizontal: false
4848{% if page.horizontal %}
4949
5050 <div class =" container " >
51- <div class="row row-cols-2">
51+ <div class="row row-cols-1 row-cols-md- 2">
5252 {% for project in sorted_projects %}
5353 {% include projects_horizontal.liquid %}
5454 {% endfor %}
5555 </div>
5656 </div >
5757 {% else %}
58- <div class =" grid " >
58+ <div class =" row row-cols-1 row-cols-md-3 " >
5959 {% for project in sorted_projects %}
6060 {% include projects.liquid %}
6161 {% endfor %}
Original file line number Diff line number Diff line change 11---
22layout : page
33title : project 1
4- description : a project with a background image
4+ description : with background image
55img : assets/img/12.jpg
66importance : 1
77category : work
Original file line number Diff line number Diff line change 11---
22layout : page
3- title : project 3
3+ title : project 3 with very long name
44description : a project that redirects to another website
55img : assets/img/7.jpg
66redirect : https://unsplash.com
Original file line number Diff line number Diff line change @@ -164,22 +164,17 @@ ul.task-list input[type="checkbox"] {
164164.card {
165165 background-color : var (--global-card-bg-color );
166166
167- img {
167+ .card- img {
168168 width : 100% ;
169+ padding-top : 1.25rem ;
169170 }
170171
171172 .card-title {
172173 color : var (--global-text-color );
173174 }
174175
175- .card-item {
176- width : auto ;
177- margin-bottom : 10px ;
178-
179- .row {
180- display : flex ;
181- align-items : center ;
182- }
176+ .card-body {
177+ padding : 1.25rem 1.25rem 0 1.25rem ;
183178 }
184179}
185180
@@ -628,16 +623,6 @@ footer.sticky-bottom {
628623 }
629624 }
630625
631- .card-item {
632- width : auto ;
633- margin-bottom : 10px ;
634-
635- .row {
636- display : flex ;
637- align-items : center ;
638- }
639- }
640-
641626 .grid-sizer ,
642627 .grid-item {
643628 width : 250px ;
@@ -1087,10 +1072,6 @@ nav[data-toggle="toc"] {
10871072 }
10881073 }
10891074
1090- .card-item {
1091- margin-bottom : 10px ;
1092- }
1093-
10941075 .post-meta {
10951076 color : var (--global-text-color-light );
10961077 font-size : 0.875rem ;
You can’t perform that action at this time.
0 commit comments