Scrollability added to scoreboard prototype

This commit is contained in:
Lucas Patenaude
2024-04-03 16:39:29 -06:00
parent 0ec2f4106e
commit 8d702ab6ac
9 changed files with 86 additions and 55 deletions

View File

@@ -1,21 +1,19 @@
#scoreboard-container {
display: flex;
transition: transform 0.5s ease;
}
.scoreboard-container {
overflow-x: auto; /* Enable horizontal scrolling */
white-space: nowrap; /* Prevent cards from wrapping to the next line */
}
.league-container {
display: flex;
justify-content: flex-start; /* Align cards to the left */
display: inline-block; /* Change display property to inline-block to prevent stretching */
border: 1px solid rgb(206, 202, 202);
}
/* Styling for each card representing a live game */
#game-card {
flex: 0 0 auto;
display: inline-block; /* Display cards as inline-block to allow them to sit next to each other */
border: 1px solid #ccc;
padding: 20px; /* Increase padding to increase the apparent height */
margin: 10px 10px;
min-height: 100px; /* Set a minimum height for the cards */
padding: 20px;
margin: 10px 0; /* Remove horizontal margin */
min-height: 100px;
min-width: 150px;
box-sizing: border-box; /* Include padding and border in the element's total width and height */
box-sizing: border-box;
}