Skip to content

Commit

Permalink
fix: 扫雷小游戏
Browse files Browse the repository at this point in the history
  • Loading branch information
camera-2018 committed Aug 19, 2023
1 parent ea699ec commit 850a692
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .vitepress/components/sweep.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useNow, useStorage } from '@vueuse/core'
import { watchEffect } from 'vue'
import MineBlock from './MineBlock.vue'
import Confetti from './Confetti.vue'
const play = new GamePlay(6, 6, 3)
const play = new GamePlay(9, 9, 10)
const now = $(useNow())
const timerMS = $computed(() => Math.round(((play.state.value.endMS || +now) - play.state.value.startMS) / 1000))
Expand Down Expand Up @@ -120,7 +120,7 @@ watchEffect(() => {
font-size: 1.5rem;
}
.btn {
background-color: var(--primary);
background-color: var(--vp-button-brand-bg);
border: 1px solid var(--vp-c-brand-light);
padding: 0.375rem 0.75rem;
font-size: 1rem;
Expand All @@ -135,6 +135,11 @@ watchEffect(() => {
border-color: var(--vp-c-brand-light);
transition: all 0.1s ease-in-out;
}
.btn:dark {
background-color: var(--vp-c-brand-dark);
border-color: var(--vp-c-brand-light);
transition: all 0.1s ease-in-out;
}
.p4 {
padding: 1rem;
}
Expand Down

0 comments on commit 850a692

Please sign in to comment.