Skip to content

Commit 75d45ea

Browse files
committed
[refactoring] Centralize text alignment and view margins
1 parent f046c74 commit 75d45ea

File tree

9 files changed

+18
-20
lines changed

9 files changed

+18
-20
lines changed

src/App.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,5 @@
6565
}
6666
6767
.view {
68-
text-align: center;
6968
}
7069
</style>

src/assets/css/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@
1919
button, .btn-group {
2020
margin: 0.25em;
2121
}
22+
23+
.game-controller-container {
24+
text-align: center;
25+
}
26+
27+
.game-controller-view {
28+
margin: 0.5em;
29+
}

src/components/AutonomousControl.vue

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template>
22
<div id="container">
3-
<ManualControl class="view"/>
4-
<TeamOverview class="view"/>
5-
<Events class="view"/>
6-
<div class="view">
3+
<ManualControl class="game-controller-view"/>
4+
<TeamOverview class="game-controller-view"/>
5+
<Events class="game-controller-view"/>
6+
<div class="game-controller-view">
77
<h2>Game Events</h2>
88
<div class="game-events">
99
<CurrentEvents/>
@@ -55,8 +55,4 @@
5555
max-height: 85vh;
5656
}
5757
58-
.view {
59-
margin: 0.5em;
60-
}
61-
6258
</style>

src/components/events/NewEvent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="view">
2+
<div class="game-controller-container">
33
<p>
44
Choose a game event and issue it in the current match. Most events are usually issued automatically
55
by automatic referees,

src/components/settings/AutonomousSettings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="view">
2+
<div class="game-controller-container">
33
<div class="auto-refs-connected" v-b-tooltip.hover :title="autoRefs">
44
<p>
55
<b>{{autoRefsConnected}}</b> autoRefs connected.

src/components/settings/EventBehavior.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="view">
2+
<div class="game-controller-container">
33
<table>
44
<tr v-for="eventType in eventTypes" :key="eventType">
55
<td align="left">{{eventType}}</td>
@@ -49,5 +49,4 @@
4949
</script>
5050

5151
<style scoped>
52-
5352
</style>

src/components/settings/MatchSettings.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="view">
2+
<div class="game-controller-container">
33
<p>
44
<label>First kickoff team: </label>
55
<DualSwitch
@@ -126,8 +126,4 @@
126126
</script>
127127

128128
<style scoped>
129-
button {
130-
margin-right: 0.25em;
131-
margin-left: 0.25em;
132-
}
133129
</style>

src/components/settings/Settings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="view">
2+
<div class="game-controller-container">
33
<a v-b-modal.settings-modal>
44
<font-awesome-icon icon="cog" class="fa-lg"></font-awesome-icon>
55
</a>

src/components/settings/TeamSettings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="view">
2+
<div class="game-controller-container">
33
<table class="table-layout">
44
<tr>
55
<th class="team-yellow">Yellow</th>

0 commit comments

Comments
 (0)