Skip to content

Commit 8afcb7e

Browse files
Update custom.scss
1 parent 20f89d1 commit 8afcb7e

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

_sass/custom/custom.scss

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@
117117
gap: 5px; /* Adds spacing between the arrow and the text */
118118
}
119119

120-
/* Adding "Previous" text dynamically below the arrow */
120+
/* Adding "Previous" text dynamically below the left arrow */
121121
.nav-item:first-of-type::after {
122-
content: "Previous"; /* Inserts "Previous" text */
122+
content: "Previous"; /* Inserts "Previous" text for the left button */
123123
font-size: 16px; /* Sets text size */
124124
font-weight: bold; /* Makes text bold */
125125
color: #d3d3d3; /* Light gray color */
@@ -128,9 +128,9 @@
128128
transition: opacity 0.3s ease; /* Smooth fade-in effect on hover */
129129
}
130130

131-
/* Adding "Next" text dynamically below the arrow for the last button */
131+
/* Adding "Next" text dynamically below the right arrow */
132132
.nav-item:last-of-type::after {
133-
content: "Next"; /* Inserts "Next" text */
133+
content: "Next"; /* Inserts "Next" text for the right button */
134134
font-size: 16px;
135135
font-weight: bold;
136136
color: #d3d3d3; /* Light gray color */
@@ -157,8 +157,11 @@
157157
}
158158

159159
/* Hover effects for dynamically inserted text */
160-
.nav-button:hover .nav-item:first-of-type::after,
160+
.nav-button:hover .nav-item:first-of-type::after {
161+
opacity: 1; /* Makes "Previous" text fully visible on hover */
162+
}
163+
161164
.nav-button:hover .nav-item:last-of-type::after {
162-
opacity: 1; /* Makes text fully visible on hover */
165+
opacity: 1; /* Makes "Next" text fully visible on hover */
163166
}
164167

0 commit comments

Comments
 (0)