Comments and styling added to league page. More debugging and optimization needed. Table and top scorers are no longer aligned at larger widths
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#league-page-body {
|
#league-page-body {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 100v;
|
width: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
#league-information-container {
|
#league-information-container {
|
||||||
@@ -72,14 +72,10 @@
|
|||||||
box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
|
box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1161px) {
|
@media (max-width: 950px) {
|
||||||
#league-stats-container {
|
#league-stats-containers {
|
||||||
flex-direction: column;
|
flex-direction: column; /* Change flex direction to column */
|
||||||
}
|
|
||||||
|
|
||||||
#league-table-and-information-container,
|
|
||||||
#top-scorers-container {
|
|
||||||
width: 100%; /* Both containers take full width */
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -11,6 +11,10 @@
|
|||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#table-stats-container {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
#table-stats-container th {
|
#table-stats-container th {
|
||||||
border-bottom: 3px solid red; /* Add red bottom border */
|
border-bottom: 3px solid red; /* Add red bottom border */
|
||||||
}
|
}
|
||||||
@@ -57,3 +61,9 @@
|
|||||||
text-decoration: underline; /* Add underline effect */
|
text-decoration: underline; /* Add underline effect */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 950px) {
|
||||||
|
#league-table-and-information-container {
|
||||||
|
width: 100%; /* Set the width to 60% when window width is less than 1161px */
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
#top-scorers-container {
|
#top-scorers-container {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
width: 100%;
|
||||||
/* Add any other styling you need for the top scorers container */
|
/* Add any other styling you need for the top scorers container */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,16 +8,18 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Container to display all stats for league <- bottom rest of the container -->
|
<!-- Container to display all stats for league <- bottom rest of the container -->
|
||||||
<div class="container" id="league-stats-containers">
|
<div id="table-and-top-scorers-containers" class="stats-container">
|
||||||
|
|
||||||
<!-- Container to display league table <- split 50% -->
|
<!-- Container to display league table <- split 50% -->
|
||||||
<div class="container" id="league-table-and-information-container">
|
<div id="league-table-container" class="stats-container">
|
||||||
|
|
||||||
|
<!-- Put header above table container -->
|
||||||
<div id="table-header-container" class="header">
|
<div id="table-header-container" class="header">
|
||||||
<h2>Table</h2>
|
<h2>Table</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="table-stats-container" class="container">
|
<!-- Container containing all league table stats -->
|
||||||
|
<div id="table-stats-container" class="stats-container">
|
||||||
<table id="standings-table">
|
<table id="standings-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -52,12 +54,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Container to display top scorers for league <- Split 50% -->
|
<!-- Container to display top scorers for league <- Split 50% -->
|
||||||
<div id="top-scorers-container" class="container">
|
<div id="top-scorers-container" class="stats-container">
|
||||||
<div id="top-scorers-header-container" class="header">
|
<div id="top-scorers-header-container" class="header">
|
||||||
<h2>Top Scorers</h2>
|
<h2>Top Scorers</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="top-scorers-stats-container" class="container">
|
<div id="top-scorers-stats-container" class="stats-container">
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user