🎨 - Reformat code

This commit is contained in:
RemiSaurel
2022-08-29 14:33:35 +02:00
parent c9386b2e67
commit f98e77f552
5 changed files with 31 additions and 18 deletions
+2
View File
@@ -106,9 +106,11 @@ button:disabled {
#container { #container {
flex-direction: column; flex-direction: column;
} }
#todo-container { #todo-container {
width: 100%; width: 100%;
} }
#right-side { #right-side {
margin-right: 32px; margin-right: 32px;
margin-left: 32px; margin-left: 32px;
-1
View File
@@ -144,7 +144,6 @@ export default {
resetStats() { resetStats() {
this.resetDone = true; this.resetDone = true;
this.$store.commit('resetStats'); this.$store.commit('resetStats');
console.log(this.resetDone)
}, },
}, },
mounted() { mounted() {
+11 -2
View File
@@ -38,6 +38,7 @@
<script> <script>
import Stats from "@/components/Infos"; import Stats from "@/components/Infos";
const MINUTES = 25; const MINUTES = 25;
const RANGE_MINUTES = 5; const RANGE_MINUTES = 5;
const SECONDS = 0; const SECONDS = 0;
@@ -99,7 +100,9 @@ export default {
} }
this.disableButton("start"); this.disableButton("start");
let all = document.querySelectorAll("#presetTime button"); let all = document.querySelectorAll("#presetTime button");
for (let el of all) { el.disabled = true; } for (let el of all) {
el.disabled = true;
}
}, },
pauseSession() { pauseSession() {
this.sessionStarted = false; this.sessionStarted = false;
@@ -122,7 +125,9 @@ export default {
this.prettyTime(); this.prettyTime();
clearTimeout(this.timeout); clearTimeout(this.timeout);
let all = document.querySelectorAll("#presetTime button, #start"); let all = document.querySelectorAll("#presetTime button, #start");
for (let el of all) { el.disabled = false; } for (let el of all) {
el.disabled = false;
}
this.disableButton("pause") this.disableButton("pause")
this.unlockArrows() this.unlockArrows()
}, },
@@ -327,6 +332,7 @@ export default {
margin: 12px 4px 12px 4px; margin: 12px 4px 12px 4px;
display: inline-block; display: inline-block;
} }
/* ********** */ /* ********** */
/* RESPONSIVE */ /* RESPONSIVE */
/* ********** */ /* ********** */
@@ -335,9 +341,11 @@ export default {
#container { #container {
margin-top: 16px; margin-top: 16px;
} }
#message { #message {
font-size: 1.6rem; font-size: 1.6rem;
} }
.pomodoro { .pomodoro {
margin-right: 8px; margin-right: 8px;
width: 50%; width: 50%;
@@ -348,6 +356,7 @@ export default {
#time { #time {
font-size: 38px; font-size: 38px;
} }
#colon { #colon {
margin-right: 8px; margin-right: 8px;
margin-left: 8px; margin-left: 8px;
+3 -1
View File
@@ -2,7 +2,8 @@
<div id="settings-container"> <div id="settings-container">
<div id="color-palette" class="bubble-container"> <div id="color-palette" class="bubble-container">
<div v-for="color in colors" :key="color.id"> <div v-for="color in colors" :key="color.id">
<div class="bubble-item" :id="color" :style="{backgroundColor: color, borderColor: activeColor}" @click="setBackgroundColor($event, color)"></div> <div class="bubble-item" :id="color" :style="{backgroundColor: color, borderColor: activeColor}"
@click="setBackgroundColor($event, color)"></div>
</div> </div>
</div> </div>
</div> </div>
@@ -80,6 +81,7 @@ export default {
justify-content: center; justify-content: center;
margin-top: 8px; margin-top: 8px;
} }
.bubble-item { .bubble-item {
margin-top: 0; margin-top: 0;
margin-right: 4px; margin-right: 4px;
+1
View File
@@ -221,6 +221,7 @@ export default {
padding-right: 16px; padding-right: 16px;
padding-left: 16px; padding-left: 16px;
} }
#liste { #liste {
padding-bottom: 8px; padding-bottom: 8px;
padding-left: 16px; padding-left: 16px;