Skip to content

Commit ab860cd

Browse files
Update custom.scss
1 parent e9b2b80 commit ab860cd

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

_sass/custom/custom.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@
4545
flex-shrink: 0; /* Prevents shrinking */
4646
width: 290px; /* Fixed width */
4747
height: 160px; /* Fixed height */
48-
overflow: hidden; /* Prevents overflow */
48+
overflow: hidden; /* Prevents content overflow */
4949
margin: 0;
5050
}
5151

5252
.image-container img {
53-
display: block; /* Removes inline spacing */
54-
width: 100%; /* Ensures the image fills its container width */
53+
display: block; /* Removes inline spacing issues */
54+
width: 100%; /* Ensures the image fills the container width */
5555
height: 100%; /* Ensures the image height matches the container */
56-
object-fit: cover; /* Makes the image fit neatly */
57-
mask-image: linear-gradient(to right, black, transparent); /* Left-to-right fade */
58-
-webkit-mask-image: linear-gradient(to right, black, transparent); /* WebKit compatibility */
56+
object-fit: cover; /* Ensures the image fits neatly */
57+
mask-image: linear-gradient(to left, transparent, black); /* Fixes the fade direction */
58+
-webkit-mask-image: linear-gradient(to left, transparent, black); /* WebKit compatibility */
5959
mask-size: cover; /* Ensures the mask spans the entire image */
60-
-webkit-mask-size: cover; /* Ensures compatibility with WebKit */
60+
-webkit-mask-size: cover; /* Ensures WebKit compatibility */
6161
}
6262

6363
/* Left-to-right fade effect */

0 commit comments

Comments
 (0)