Skip to content

Commit 37b957b

Browse files
Removed unused code from event.html (old a tag).
Changed background for on event hover to be less opaque so that the image is visible and added image scaling on hover.
1 parent 37adc32 commit 37b957b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

_includes/event.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ <h2 class="section-title">Recent Events</h2>
3838
<div class="events__spacer"></div>
3939
<div class="events__img-container">
4040
<div class="events__img-overlay">
41-
<!--<a class="events__link" href="{{ post.link }}" target="_blank">-->
4241
<a class="events__link" href="{{ post.url }}">
4342
<i class="events__icon fas fa-external-link-square-alt"></i>
4443
</a>

_sass/style.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ a {
284284
.events__title-container {
285285
width: 100%;
286286
height: 100%;
287-
background: rgba(0, 0, 0, 0.9);
287+
background: rgba(0, 0, 0, 0.7);
288288
}
289289

290290
.events__img-title {
@@ -345,6 +345,15 @@ a {
345345
opacity: 1;
346346
}
347347

348+
.events__img {
349+
transition: all 0.5s ease-in-out;
350+
}
351+
352+
353+
.events__img-container:hover > .events__img {
354+
-webkit-transform: scale(1.05);
355+
}
356+
348357
.events__icon {
349358
font-size: 2em;
350359
position: relative;

0 commit comments

Comments
 (0)