Scoreboard spacing updated
This commit is contained in:
@@ -2,42 +2,38 @@
|
||||
display: inline-block; /* Display cards as inline-block to allow them to sit next to each other */
|
||||
border: 1px solid #ccc;
|
||||
padding: 10px;
|
||||
margin: 10px 2px; /* Remove horizontal margin */
|
||||
margin: 10px 10px; /* Remove horizontal margin */
|
||||
min-height: 100px;
|
||||
min-width: 250px;
|
||||
min-width: 200px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Add these styles to your existing CSS file or create a new one */
|
||||
.card-body {
|
||||
.score-card-body {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.left-side {
|
||||
width: 70%;
|
||||
flex: 70%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.right-side {
|
||||
flex: 30%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.team {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.team p {
|
||||
margin: 5px;
|
||||
margin-right: 10px; /* Adjust this value to control the space between team name and score */
|
||||
}
|
||||
|
||||
.right-side {
|
||||
width: 30%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.score p {
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="card" id="game-card">
|
||||
<div class="card-body">
|
||||
<div class="score-card-body">
|
||||
|
||||
<!-- Left side (70%) -->
|
||||
<div class="left-side">
|
||||
|
||||
@@ -3,6 +3,12 @@
|
||||
|
||||
<!-- Insert a game card -->
|
||||
{{> scoreboard-header/game-card}}
|
||||
{{> scoreboard-header/game-card}}
|
||||
{{> scoreboard-header/game-card}}
|
||||
{{> scoreboard-header/game-card}}
|
||||
{{> scoreboard-header/game-card}}
|
||||
{{> scoreboard-header/game-card}}
|
||||
{{> scoreboard-header/game-card}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user