File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change 204
204
}
205
205
}
206
206
}
207
-
208
207
#robots {
209
208
#robot-card {
210
209
position : relative ;
210
+
211
211
.image {
212
212
position : relative ;
213
213
background-size : cover ;
214
214
background-position : center ;
215
- // rounded corners
216
215
border-radius : 10px ;
217
- // hide any image which goes outside the corner radius
218
216
overflow : hidden ;
219
- // black and white image with a nice fade to color
220
217
transition : filter 0.5s ease , transform 0.5s ease ;
221
218
filter : grayscale (100% );
222
- z-index : 1 ;
223
219
}
220
+
224
221
.overlay {
225
- // for text on top of the image
226
222
position : absolute ;
227
223
top : 0 ;
228
224
left : 0 ;
235
231
background-color : rgba (0 , 0 , 0 , 0.5 );
236
232
text-align : center ;
237
233
pointer-events : none ;
238
- z-index : 2 ;
234
+ transition : opacity 0.5 s ease ;
239
235
}
240
236
241
- // upon hover, make image color
242
237
.robot-link :hover .image {
243
238
filter : grayscale (0% );
244
239
}
245
-
240
+
246
241
.robot-link :hover .overlay {
247
242
opacity : 0 ;
248
243
}
249
244
250
- h2 {
251
- color : var (--primary ) !important ; // text is accent color
252
- }
253
-
254
245
h2 , p {
246
+ color : var (--primary ) !important ;
255
247
z-index : 2 ;
256
248
position : relative ;
257
249
transition : opacity 0.5s ease ;
250
+ pointer-events : none ; /* Ensure text isn't interactable */
251
+ }
252
+
253
+ .robot-link :hover h2 , .robot-link :hover p {
254
+ opacity : 0 ;
258
255
}
259
256
}
260
257
}
261
258
259
+
262
260
#blog {
263
261
.hero-body {
264
262
padding : 3rem 0.25rem 1rem 0.25rem ;
You can’t perform that action at this time.
0 commit comments