Skip to content

Commit 6e41739

Browse files
committed
fix: text alignment in menu, and styling images a little
1 parent 7bd4f58 commit 6e41739

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

_includes/news.liquid

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@
3030
{% if item.image %}
3131
{% assign full_url = "https://www.evl.uic.edu/output/originals/" | append: item.image %}
3232
<div style="width: 250px; height:187px;overflow: hidden;">
33-
<a class="news-title" href="{{ item.url | relative_url }}">
34-
<img src="{{ full_url }}" alt="{{ item.title }}" style="width: 100%; height: 100%; object-fit: cover;" />
33+
<a class="news-title zoom" href="{{ item.url | relative_url }}">
34+
<img src="{{ full_url }}" alt="{{ item.title }}" style="width: 100%; height: 100%; object-fit: cover;"
35+
class="img-fluid img-thumbnail rounded z-depth-1"/>
3536
</a>
3637
</div>
3738
{% else %}
3839
<div style="width: 250px; height:187px;overflow: hidden;">
39-
<img src="{{ 'assets/img/new-logo-small-480.webp' | relative_url }}" alt="{{ item.title }}" style="width: 100%; height: 100%; object-fit: cover;" />
40+
<a class="news-title zoom" href="{{ item.url | relative_url }}">
41+
<img src="{{ 'assets/img/new-logo-small-480.webp' | relative_url }}" alt="{{ item.title }}" style="width: 100%; height: 100%; object-fit: cover;"
42+
class="img-fluid img-thumbnail rounded z-depth-1"/>
43+
</a>
4044
</div>
4145
{% endif %}
4246
</td>
@@ -114,7 +118,7 @@
114118
{% assign full_url = "https://www.evl.uic.edu/output/originals/" | append: item.image %}
115119
<div style="width: 300px; height:200px;overflow: hidden;">
116120
<a class="news-title" href="{{ item.url | relative_url }}">
117-
<img src="{{ full_url }}" alt="{{ item.title }}" style="width: 100%; height: 100%; object-fit: cover;" />
121+
<img src="{{ full_url }}" alt="{{ item.title }}" style="width: 100%; height: 100%; object-fit: cover;"/>
118122
</a>
119123
</div>
120124
{% else %}

_sass/_base.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ swiper-container {
11861186
align-items: center;
11871187
flex-direction: row;
11881188
border-radius: 4px;
1189-
text-align: center;
1189+
text-align: left;
11901190
font-style: normal;
11911191
border: none;
11921192
font-weight: 300;
@@ -1466,3 +1466,7 @@ h2.year-divider {
14661466
margin-top: 2rem;
14671467
text-align: right;
14681468
}
1469+
1470+
.zoom:hover {
1471+
transform: scale(1.05);
1472+
}

0 commit comments

Comments
 (0)