Skip to content

Commit 2792114

Browse files
committed
[styling] Add borders around views
1 parent 8141357 commit 2792114

File tree

5 files changed

+38
-1
lines changed

5 files changed

+38
-1
lines changed

src/assets/css/style.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,9 @@ button, .btn-group {
3030
}
3131

3232
.game-controller-view {
33-
margin: 0.5em;
33+
margin: 0.25em;
34+
padding: 0.25em;
35+
border-style: dashed;
36+
border-radius: 10px;
37+
border-width: 0.1em;
3438
}

src/components/game-events/GameEventsView.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div class="game-controller-view">
33
<h2>Game Events</h2>
4+
<hr>
45
<div class="game-events">
56
<CurrentEvents/>
67
<hr>

src/components/manual-control/ManualControlView.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div class="game-controller-view">
33
<h2>Manual Control</h2>
4+
<hr>
45
<table>
56
<tr>
67
<td colspan="2">

src/components/protocol/ProtocolView.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div class="game-controller-view">
33
<h2>Game Protocol</h2>
4+
<hr>
45
<EventTable :current-page="currentPage" :per-page="perPage" :events="events"/>
56
<div class="event-controls-container">
67

src/components/team/TeamOverviewView.vue

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div class="game-controller-view">
33
<h2>Team Overview</h2>
4+
<hr>
45
<table>
56
<tr>
67
<th class="team-yellow">{{teamYellow.name}}</th>
@@ -155,6 +156,35 @@
155156
<style scoped>
156157
.label-column {
157158
font-weight: bold;
159+
}
160+
161+
td {
158162
padding: 0.5em;
159163
}
164+
165+
table {
166+
border-collapse: collapse;
167+
}
168+
169+
table td, table th {
170+
border: 1px solid black;
171+
}
172+
173+
table tr:first-child th {
174+
border-top: 0;
175+
}
176+
177+
table tr:last-child td {
178+
border-bottom: 0;
179+
}
180+
181+
table tr td:first-child,
182+
table tr th:first-child {
183+
border-left: 0;
184+
}
185+
186+
table tr td:last-child,
187+
table tr th:last-child {
188+
border-right: 0;
189+
}
160190
</style>

0 commit comments

Comments
 (0)