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