fixed light mode bug
This commit is contained in:
@@ -162,7 +162,7 @@ function createInterval() {
|
||||
|
||||
|
||||
if (currentCoin.value.x === snake.value.cell.x && currentCoin.value.y === snake.value.cell.y) {
|
||||
snake.value.length++
|
||||
snake.value.length + 10
|
||||
currentCoin.value = spawnCoin()
|
||||
score.value++
|
||||
|
||||
|
||||
@@ -63,17 +63,4 @@ button:focus-visible {
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
color: #213547;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
a:hover {
|
||||
color: #747bff;
|
||||
}
|
||||
button {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user