@@ -530,43 +530,29 @@ table.sml-table {
530530 text-decoration : none ;
531531}
532532
533+ /* Container for icon and label */
533534.nav-item {
534535 display : flex ;
535536 flex-direction : column ;
536537 align-items : center ;
537538 gap : 5px ;
538- position : relative ;
539- width : 50px ;
540- height : 50px ;
541539}
542540
543- /* Inject the previous icon */
544- .nav-button.prev .nav- item::before {
541+ /* Common styling for the arrow injected via ::before */
542+ .nav-item ::before {
545543 content : " " ;
546544 display : block ;
547545 width : 50px ;
548546 height : 50px ;
549- background-image : url (" data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3E%3Cpath%20d='M30%2020L20%2030L30%2040'%20stroke='%23264caf'%20stroke-width='3'%20fill='none'/%3E%3C/svg%3E" );
550- background-size : contain ;
551547 background-repeat : no-repeat ;
548+ background-position : center ;
549+ background-size : 100% 100% ;
552550 transition : transform 0.3s ease ;
551+ transform-origin : center ;
553552}
554553
555- /* Inject the next icon */
556- .nav-button.next .nav-item ::before {
557- content : " " ;
558- display : block ;
559- width : 50px ;
560- height : 50px ;
561- background-image : url (" data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%3E%3Cpath%20d='M20%2020L30%2030L20%2040'%20stroke='%23264caf'%20stroke-width='3'%20fill='none'/%3E%3C/svg%3E" );
562- background-size : contain ;
563- background-repeat : no-repeat ;
564- transition : transform 0.3s ease ;
565- }
566-
567- /* Label styling */
568- .nav-button.prev .nav-item ::after ,
569- .nav-button.next .nav-item ::after {
554+ /* Common styling for the text label injected via ::after */
555+ .nav-item ::after {
570556 font-size : 12px ;
571557 font-weight : bold ;
572558 color : #716e76 ;
@@ -575,6 +561,17 @@ table.sml-table {
575561 transition : opacity 0.3s ease ;
576562}
577563
564+ /* Detailed arrow insertion for the Previous button */
565+ .nav-button.prev .nav-item ::before {
566+ background-image : url (" data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cpath d='M30 20L20 30L30 40' stroke='%23264caf' stroke-width='3' fill='none'/%3E%3C/svg%3E" );
567+ }
568+
569+ /* Detailed arrow insertion for the Next button */
570+ .nav-button.next .nav-item ::before {
571+ background-image : url (" data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cpath d='M20 20L30 30L20 40' stroke='%23264caf' stroke-width='3' fill='none'/%3E%3C/svg%3E" );
572+ }
573+
574+ /* Text for the buttons */
578575.nav-button.prev .nav-item ::after {
579576 content : " Previous" ;
580577}
@@ -583,25 +580,22 @@ table.sml-table {
583580 content : " Next" ;
584581}
585582
586- /* Hover effects */
583+ /* Hover effects to scale the icon and fade in the text label */
587584.nav-button :hover .nav-item ::before {
588585 transform : scale (1.2 );
589586}
590-
591587.nav-button :hover .nav-item ::after {
592588 opacity : 1 ;
593589}
594590
595- /* Disabled button styles */
591+ /* Disabled button styles (if needed) */
596592.nav-button.no-link {
597593 pointer-events : none ;
598594 cursor : default ;
599595}
600-
601596.nav-button.no-link .nav-item ::before {
602597 filter : brightness (0.7 );
603598}
604-
605599.nav-button.no-link .nav-item ::after {
606600 color : #d3d3d3 ;
607601}
0 commit comments