diff --git a/ProjectSourceCode/src/resources/css/league-pages/league-page.css b/ProjectSourceCode/src/resources/css/league-pages/league-page.css index bef94de..94b3efc 100644 --- a/ProjectSourceCode/src/resources/css/league-pages/league-page.css +++ b/ProjectSourceCode/src/resources/css/league-pages/league-page.css @@ -90,6 +90,11 @@ ============================================= */ +#table-and-top-scorers-containers { + display: flex; + flex-direction: row; +} + /* Styling for Standings and Top Scorers Cards */ #table-stats-container, #top-scorers-stats-container { @@ -121,9 +126,12 @@ */ /* Width of Screen is Less Than 950px */ -@media (max-width: 950px) +@media (max-width: 1230px) { - + #table-and-top-scorers-containers { + display: flex; + flex-direction: column; + } } \ No newline at end of file diff --git a/ProjectSourceCode/src/resources/css/league-pages/league-table.css b/ProjectSourceCode/src/resources/css/league-pages/league-table.css index 1543607..72a15f3 100644 --- a/ProjectSourceCode/src/resources/css/league-pages/league-table.css +++ b/ProjectSourceCode/src/resources/css/league-pages/league-table.css @@ -1,4 +1,5 @@ -#league-table-and-information-container { +/* Container for all table elements */ +#league-table-container { width: 60%; justify-content: center; align-items: center; @@ -6,10 +7,7 @@ transition: transform 0.3s ease; /* Add smooth transition effect */ } -#standings-table { - width: 100%; - padding: 15px; -} + #table-stats-container { width: 100%; @@ -19,7 +17,13 @@ border-bottom: 3px solid red; /* Add red bottom border */ } -#club-logo-row { +#standings-table { + width: 100%; + padding: 15px; +} + +/* */ +#club-logo-column { width: 25px; } @@ -30,7 +34,7 @@ } -#club-name { +#club-name-column { cursor: pointer; } @@ -62,8 +66,9 @@ } } -@media (max-width: 950px) { - #league-table-and-information-container { - width: 100%; /* Set the width to 60% when window width is less than 1161px */ - } +@media (max-width: 1230px) { + #league-table-container { + align-items: center; + width: 75%; + } } \ No newline at end of file diff --git a/ProjectSourceCode/src/resources/css/league-pages/top-scorers.css b/ProjectSourceCode/src/resources/css/league-pages/top-scorers.css index b23fb12..0b8a4eb 100644 --- a/ProjectSourceCode/src/resources/css/league-pages/top-scorers.css +++ b/ProjectSourceCode/src/resources/css/league-pages/top-scorers.css @@ -1,6 +1,5 @@ #top-scorers-container { - flex: 1; - width: 100%; + width: 35%; /* Add any other styling you need for the top scorers container */ } @@ -28,4 +27,11 @@ #club-name-column { padding-right: 15px; +} + +@media (max-width: 1230px) { + #top-scorers-container { + align-items: center; + width: 75%; + } } \ No newline at end of file diff --git a/ProjectSourceCode/src/views/pages/leagues-page.hbs b/ProjectSourceCode/src/views/pages/leagues-page.hbs index 5c4fbd0..3b924c8 100644 --- a/ProjectSourceCode/src/views/pages/leagues-page.hbs +++ b/ProjectSourceCode/src/views/pages/leagues-page.hbs @@ -38,8 +38,8 @@ {{#each league.standings}} {{table.league_position}} - - {{table.team_name}} + + {{table.team_name}} {{games_played}} {{wins}} {{losses}}