File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 */
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 */
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
You can’t perform that action at this time.
0 commit comments