Skip to content

Commit 9374b57

Browse files
Update custom.scss
1 parent 32aff69 commit 9374b57

1 file changed

Lines changed: 12 additions & 44 deletions

File tree

_sass/custom/custom.scss

Lines changed: 12 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
// Slug
22

3-
@mixin faded($offset, $blur-radius, $spread-radius) {
4-
&.faded-left:before {
5-
content: '';
6-
position: absolute;
7-
top: 0;
8-
left: 0;
9-
width: 100%;
10-
height: 100%;
11-
background: linear-gradient(to right, rgba(0, 0, 0, 0) $offset, rgba(0, 0, 0, 1) 100%);
12-
pointer-events: none;
13-
}
14-
}
15-
163
.slug {
174
display: flex;
185
align-items: center;
@@ -50,7 +37,7 @@
5037
font-size: 0.9rem;
5138
font-weight: normal;
5239
margin: 0 0 5px 0;
53-
color: #ffc39c;
40+
color: #ffcc00;
5441
text-transform: uppercase;
5542
}
5643

@@ -61,39 +48,20 @@
6148
}
6249

6350
.image-container {
64-
position: relative;
65-
flex-shrink: 0;
66-
width: 290px;
67-
height: 160px;
68-
overflow: hidden;
69-
margin: 0;
70-
padding: 0;
71-
}
72-
73-
.image-container::before {
74-
content: '';
75-
position: absolute;
76-
top: 0;
77-
left: 0;
78-
width: 20%; /* Adjust this to control the width of the faded area */
79-
height: 100%;
80-
background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
81-
pointer-events: none; /* Ensures it doesn’t block clicks or interactions */
82-
z-index: 2; /* Places it above the image */
51+
flex-shrink: 0;
52+
width: 290px;
53+
height: 160px;
54+
overflow: hidden;
55+
margin: 0;
56+
padding: 0;
8357
}
8458

8559
.image-container img {
86-
display: block;
87-
width: 100%;
88-
height: 100%;
89-
object-fit: cover;
90-
margin: 0;
91-
position: relative; /* Keeps the image underneath the pseudo-element */
92-
z-index: 1;
93-
}
94-
95-
.image-container.faded-left img {
96-
opacity: 0.6; /* Controls the fade effect; adjust as necessary */
60+
display: block;
61+
width: 100%;
62+
height: 100%;
63+
object-fit: cover;
64+
margin: 0;
9765
}
9866

9967
/* Responsive Design */

0 commit comments

Comments
 (0)