Skip to content

Commit a1afff2

Browse files
committed
fix: removed FART Flash of replaced theme
1 parent 366867a commit a1afff2

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en" {{ HTML_ATTRS }}>
2+
<html lang="en" {{ HTML_ATTRS }} class="hidden">
33

44
<head {{ HEAD_ATTRS }}>
55
<script>(function (w, d, s, l, i) {

components/navbar.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ export default {
176176
'dark'
177177
)
178178
document.cookie = `darkMode=${this.darkMode}; Secure; max-age=31536000; path=/;`
179+
document.documentElement.classList.remove('hidden')
179180
},
180181
},
181182
}

styles/global.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ body {
1616
font-family: 'Open Sans', sans-serif;
1717
}
1818

19+
.hidden {
20+
display: none;
21+
visibility: hidden;
22+
}
23+
1924
.page-root {
2025
@apply flow-root w-full;
2126
}

0 commit comments

Comments
 (0)