File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 6
6
< figure class ="image is-5by4 " style ="background-image: url({{robot.image}}); "> </ figure >
7
7
< div class ="overlay ">
8
8
< 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 >
10
10
</ div >
11
11
</ a >
12
12
</ div >
Original file line number Diff line number Diff line change 208
208
#robots {
209
209
#robot-card {
210
210
position : relative ;
211
-
212
211
.image {
213
212
position : relative ;
214
213
background-size : cover ;
218
217
transition : filter 0.5s ease , transform 0.5s ease ;
219
218
filter : grayscale (100% );
220
219
}
221
-
222
220
.image ::before {
223
221
content : ' ' ;
224
222
position : absolute ;
229
227
background : rgba (0 , 0 , 0 , 0.7 );
230
228
pointer-events : none ;
231
229
}
232
-
233
230
.overlay {
234
231
position : absolute ;
235
232
top : 0 ;
244
241
pointer-events : none ;
245
242
transition : opacity 0.5s ease ;
246
243
}
247
-
248
244
.robot-link :hover .image {
249
245
filter : grayscale (0% );
250
246
background : rgba (0 , 0 , 0 , 0 );
251
247
}
252
-
253
-
248
+ .robot-link :hover .image ::before {
249
+ opacity : 0 ;
250
+ }
254
251
h2 {
255
252
color : var (--primary ) !important ;
256
253
}
257
-
258
254
h2 , p {
259
255
z-index : 2 ;
260
256
position : relative ;
261
257
transition : opacity 0.5s ease ;
262
258
pointer-events : none ;
263
259
}
264
-
265
- .robot-link :hover h2 , .robot-link :hover p {
260
+ .robot-link :hover h2 {
266
261
color : var (--white ) !important ;
267
262
}
268
263
}
You can’t perform that action at this time.
0 commit comments