@@ -10,12 +10,16 @@ body {
1010 line-height : 1.6 ;
1111 color : # 333 ;
1212 background-color : # f8f9fa ;
13+ overflow-x : hidden;
1314}
1415
1516/* Container layout */
1617.container {
1718 display : flex;
1819 min-height : 100vh ;
20+ width : 100% ;
21+ max-width : 100% ;
22+ overflow-x : hidden;
1923}
2024
2125/* Sidebar styles */
@@ -822,73 +826,102 @@ input:checked + .toggle-slider:before {
822826@media (max-width : 768px ) {
823827 .container {
824828 flex-direction : column;
829+ width : 100% ;
825830 }
826831
827832 .sidebar {
828833 width : 100% ;
829834 height : auto;
830835 position : relative;
831836 padding : 1rem ;
832- flex-direction : row ;
833- justify-content : space-between ;
837+ flex-direction : column ;
838+ justify-content : flex-start ;
834839 align-items : center;
835840 }
836841
837842 .sidebar h3 {
838843 margin-bottom : 0 ;
839844 font-size : 1.2rem ;
845+ width : 100% ;
846+ text-align : center;
847+ margin-bottom : 0.75rem ;
848+ }
849+
850+ .sidebar nav {
851+ width : 100% ;
840852 }
841853
842854 .sidebar nav ul {
843- display : flex;
844- justify-content : center;
845- flex-wrap : wrap;
855+ display : grid;
856+ grid-template-columns : repeat (2 , 1fr );
846857 gap : 0.5rem ;
858+ width : 100% ;
847859 }
848860
849861 .sidebar nav li {
850- margin : 0.25rem ;
862+ margin : 0 ;
863+ }
864+
865+ .sidebar nav a {
866+ text-align : center;
867+ padding : 0.5rem ;
868+ font-size : 0.9rem ;
869+ white-space : nowrap;
870+ overflow : hidden;
871+ text-overflow : ellipsis;
851872 }
852873
853874 .sidebar-footer {
854- margin-top : 0 ;
855- padding-top : 0 ;
856- border-top : none;
875+ margin-top : 1rem ;
876+ padding-top : 1rem ;
877+ border-top : 1px solid rgba (255 , 255 , 255 , 0.2 );
878+ width : 100% ;
857879 }
858880
859881 .logo-section {
860882 flex-direction : row;
861883 gap : 0.5rem ;
884+ justify-content : center;
862885 }
863886
864887 .mit-logo {
865- width : 40 px ;
888+ width : 35 px ;
866889 }
867890
868891 .organization-info {
869892 text-align : left;
870893 }
871894
872895 .org-name {
873- font-size : 0.8 rem ;
896+ font-size : 0.75 rem ;
874897 margin-bottom : 0.25rem ;
875898 }
876899
877900 .copyright , .license {
878- font-size : 0.7 rem ;
901+ font-size : 0.65 rem ;
879902 }
880903
881904 .main-content {
882905 margin-left : 0 ;
883- padding : 1rem ;
906+ padding : 0.5rem ;
907+ width : 100% ;
908+ max-width : 100% ;
909+ box-sizing : border-box;
884910 }
885911
886912 .about-section h1 {
887913 font-size : 2rem ;
888914 }
889915
890916 # leaderboard-table {
891- font-size : 0.85rem ;
917+ font-size : 0.75rem ;
918+ }
919+
920+ .table-container {
921+ margin-left : -1rem ;
922+ margin-right : -1rem ;
923+ border-radius : 0 ;
924+ width : calc (100% + 2rem );
892925 }
893926
894927 .leaderboard-controls {
@@ -929,7 +962,13 @@ input:checked + .toggle-slider:before {
929962
930963 # leaderboard-table th ,
931964 # leaderboard-table td {
932- padding : 0.5rem ;
965+ padding : 0.4rem 0.3rem ;
966+ font-size : 0.8rem ;
967+ }
968+
969+ # leaderboard-table th {
970+ font-size : 0.75rem ;
971+ padding : 0.6rem 0.3rem ;
933972 }
934973
935974 .resources-buttons {
@@ -949,10 +988,17 @@ input:checked + .toggle-slider:before {
949988 flex-direction : column;
950989 align-items : center;
951990 gap : 1rem ;
991+ padding : 0.75rem ;
952992 }
953993
954994 .sidebar nav ul {
955- justify-content : center;
995+ grid-template-columns : 1fr ;
996+ gap : 0.4rem ;
997+ }
998+
999+ .sidebar nav a {
1000+ font-size : 0.85rem ;
1001+ padding : 0.4rem ;
9561002 }
9571003
9581004 .logo-section {
@@ -964,9 +1010,33 @@ input:checked + .toggle-slider:before {
9641010 text-align : center;
9651011 }
9661012
1013+ .main-content {
1014+ padding : 0.25rem ;
1015+ }
1016+
9671017 .about-section , .leaderboard-section , .name-origin-section , .resources-section , .contribute-section {
968- padding : 1rem ;
969- margin-bottom : 1.5rem ;
1018+ padding : 0.75rem ;
1019+ margin-bottom : 0.75rem ;
1020+ margin-left : 0 ;
1021+ margin-right : 0 ;
1022+ border-radius : 6px ;
1023+ }
1024+
1025+ .table-container {
1026+ margin-left : -0.75rem ;
1027+ margin-right : -0.75rem ;
1028+ width : calc (100% + 1.5rem );
1029+ }
1030+
1031+ # leaderboard-table th ,
1032+ # leaderboard-table td {
1033+ padding : 0.3rem 0.2rem ;
1034+ font-size : 0.7rem ;
1035+ }
1036+
1037+ # leaderboard-table th {
1038+ font-size : 0.65rem ;
1039+ padding : 0.5rem 0.2rem ;
9701040 }
9711041
9721042 .description p {
0 commit comments