Skip to content

Commit cf2a892

Browse files
committed
[refactoring] Centralize edit button margins
1 parent 75d45ea commit cf2a892

File tree

8 files changed

+6
-32
lines changed

8 files changed

+6
-32
lines changed

src/assets/css/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ button, .btn-group {
2020
margin: 0.25em;
2121
}
2222

23+
.btn-edit {
24+
margin-left: 0.3em;
25+
margin-right: 0.3em;
26+
}
27+
2328
.game-controller-container {
2429
text-align: center;
2530
}

src/components/common/DualSwitch.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="switch btn-group-toggle btn-group">
2+
<div class="btn-group-toggle btn-group">
33
<label v-b-tooltip.hover
44
:title="leftTitle"
55
:class="{btn:true, 'btn-active': (selectedValue === leftValue), 'btn-passive': (selectedValue !== leftValue)}"
@@ -46,10 +46,6 @@
4646

4747
<style scoped>
4848
49-
.switch {
50-
margin: 0.25em;
51-
}
52-
5349
.btn-active {
5450
background-color: green;
5551
border-color: green;

src/components/common/EditableLabelDuration.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,4 @@
4747
input {
4848
text-align: center;
4949
}
50-
51-
.btn-edit {
52-
margin-left: 0.3em;
53-
margin-right: 0.3em;
54-
}
5550
</style>

src/components/common/EditableLabelNumber.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,4 @@
6565
input {
6666
text-align: center;
6767
}
68-
69-
.btn-edit {
70-
margin-left: 0.5em;
71-
margin-right: 0.3em;
72-
}
7368
</style>

src/components/common/EditableLabelSelect.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@
5252
</script>
5353

5454
<style scoped>
55-
.btn-edit {
56-
margin-left: 0.3em;
57-
margin-right: 0.3em;
58-
}
5955
select {
6056
width: auto !important;
6157
}

src/components/common/EditableLabelText.vue

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,4 @@
5454
input {
5555
text-align: center;
5656
}
57-
58-
.btn-edit {
59-
margin-left: 0.3em;
60-
margin-right: 0.3em;
61-
}
6257
</style>

src/components/settings/team/TeamBallPlacement.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,4 @@
3636
</script>
3737

3838
<style scoped>
39-
.btn-edit {
40-
margin-left: 0.3em;
41-
margin-right: 0.3em;
42-
}
4339
</style>

src/components/team/TeamBotSubstitution.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,4 @@
3535
</script>
3636

3737
<style scoped>
38-
.btn-edit {
39-
margin-left: 0.3em;
40-
margin-right: 0.3em;
41-
}
4238
</style>

0 commit comments

Comments
 (0)