Skip to content

Commit cd4e652

Browse files
committed
iqjoiqjsojs
1 parent cb628ab commit cd4e652

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

_includes/robot-card.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<figure class="image is-5by4" style="background-image: url({{robot.image}});"></figure>
77
<div class="overlay">
88
<h2 class="has-text-weight-bold is-size-3">{{ robot.year }}</h2>
9-
<p class="has-text-white-ter has-text-weight-normal">{{ robot.name }}</p>
9+
<p class="has-text-grey has-text-weight-normal">{{ robot.name }}</p>
1010
</div>
1111
</a>
1212
</div>

assets/css/style.scss

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@
208208
#robots {
209209
#robot-card {
210210
position: relative;
211-
212211
.image {
213212
position: relative;
214213
background-size: cover;
@@ -218,7 +217,6 @@
218217
transition: filter 0.5s ease, transform 0.5s ease;
219218
filter: grayscale(100%);
220219
}
221-
222220
.image::before {
223221
content: '';
224222
position: absolute;
@@ -229,7 +227,6 @@
229227
background: rgba(0, 0, 0, 0.7);
230228
pointer-events: none;
231229
}
232-
233230
.overlay {
234231
position: absolute;
235232
top: 0;
@@ -244,25 +241,23 @@
244241
pointer-events: none;
245242
transition: opacity 0.5s ease;
246243
}
247-
248244
.robot-link:hover .image {
249245
filter: grayscale(0%);
250246
background: rgba(0, 0, 0, 0);
251247
}
252-
253-
248+
.robot-link:hover .image::before {
249+
opacity: 0;
250+
}
254251
h2 {
255252
color: var(--primary) !important;
256253
}
257-
258254
h2, p {
259255
z-index: 2;
260256
position: relative;
261257
transition: opacity 0.5s ease;
262258
pointer-events: none;
263259
}
264-
265-
.robot-link:hover h2, .robot-link:hover p {
260+
.robot-link:hover h2 {
266261
color: var(--white) !important;
267262
}
268263
}

0 commit comments

Comments
 (0)