+ class="bg-$vp-c-bg border-$vp-c-default-soft hover:border-primary transition-border relative z-0 rounded-lg border-2 border-solid p-5 duration-500">
Emoji Legend
diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts
index 04b2aa4b9..a54ac720c 100644
--- a/docs/.vitepress/theme/index.ts
+++ b/docs/.vitepress/theme/index.ts
@@ -17,7 +17,6 @@
import type { Theme } from 'vitepress'
import Components from '@fmhy/components'
import DefaultTheme from 'vitepress/theme'
-import { loadProgress } from './composables/nprogress'
import Layout from './Layout.vue'
import Post from './PostLayout.vue'
@@ -33,6 +32,5 @@ export default {
app.use(Components)
app.component('Post', Post)
app.component('Feedback', Feedback)
- loadProgress(router)
}
} satisfies Theme
diff --git a/docs/.vitepress/theme/style.scss b/docs/.vitepress/theme/style.scss
index fe5d10206..504216d2a 100644
--- a/docs/.vitepress/theme/style.scss
+++ b/docs/.vitepress/theme/style.scss
@@ -20,8 +20,12 @@
--vp-button-alt-hover-bg: #484848;
--vp-button-alt-hover-text: #f0eeee;
- --vp-c-bg-elv: rgba(255, 255, 255, 0.7);
- --vp-c-bg-mark: rgb(232, 232, 232);
+ /* Colors: Background */
+ --vp-c-bg: #ffffff;
+ --vp-c-bg-alt: #f6f6f7;
+ --vp-c-bg-elv: #ffffff;
+ --vp-c-bg-soft: #f6f6f7;
+
/* Colors: Custom Block */
/** Info */
@@ -54,9 +58,10 @@
--vp-c-brand-soft: theme('colors.swarm.300');
/* Colors: Background */
- --vp-c-bg: rgb(26, 26, 26);
- --vp-c-bg-alt: rgb(23, 23, 23);
- --vp-c-bg-elv: rgba(23, 23, 23, 0.8);
+ --vp-c-bg: #1a1a1a;
+ --vp-c-bg-alt: #151515;
+ --vp-c-bg-elv: #1f1f1f;
+ --vp-c-bg-soft: #1f1f1f;
/* Colors: Custom Block */
/** Info */
@@ -103,11 +108,12 @@
text-decoration-style: solid;
}
+
::selection {
- background-color: #5586a6;
+ background-color: var(--vp-c-brand-400, #5586a6);
.dark & {
- background-color: #0f2c47;
+ background-color: var(--vp-c-brand-800, #0f2c47);
}
}
@@ -164,94 +170,6 @@
}
}
-.base64 {
- min-width: 100%;
- width: 0px;
- white-space: pre-wrap;
-}
-
-/* Make clicks pass-through */
-#nprogress {
- pointer-events: none;
-
- & .bar {
- background: var(--vp-c-brand-1);
- position: fixed;
- z-index: 1031;
- top: 0;
- left: 0;
- width: 100%;
- height: 2px;
- }
-
- /* Fancy blur effect */
- & .peg {
- display: block;
- position: absolute;
- right: 0px;
- width: 100px;
- height: 100%;
- box-shadow:
- 0 0 10px var(--vp-c-brand-1),
- 0 0 5px var(--vp-c-brand-1);
- opacity: 1;
-
- -webkit-transform: rotate(3deg) translate(0px, -4px);
- -ms-transform: rotate(3deg) translate(0px, -4px);
- transform: rotate(3deg) translate(0px, -4px);
- }
-
- & .spinner {
- display: block;
- position: fixed;
- z-index: 1031;
- top: 15px;
- right: 15px;
- }
-
- & .spinner-icon {
- width: 18px;
- height: 18px;
- box-sizing: border-box;
-
- border: solid 2px transparent;
- border-top-color: var(--vp-c-brand);
- border-left-color: var(--vp-c-brand);
- border-radius: 50%;
-
- -webkit-animation: nprogress-spinner 400ms linear infinite;
- animation: nprogress-spinner 400ms linear infinite;
- }
-}
-.nprogress-custom-parent {
- overflow: hidden;
- position: relative;
-}
-
-.nprogress-custom-parent #nprogress .spinner,
-.nprogress-custom-parent #nprogress .bar {
- position: absolute;
-}
-
-@-webkit-keyframes nprogress-spinner {
- 0% {
- -webkit-transform: rotate(0deg);
- }
-
- 100% {
- -webkit-transform: rotate(360deg);
- }
-}
-
-@keyframes nprogress-spinner {
- 0% {
- transform: rotate(0deg);
- }
-
- 100% {
- transform: rotate(360deg);
- }
-}
#VPContent strong > a {
font-weight: bold;
diff --git a/package.json b/package.json
index 164caa72d..6923c0472 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,7 @@
"og:dev": "x-satori -t ./docs/.vitepress/hooks/Template.vue -c ./.vitepress/hooks/satoriConfig.ts --dev"
},
"dependencies": {
+ "@bprogress/core": "^1.3.4",
"@fmhy/colors": "^0.0.11",
"@fmhy/components": "^0.0.3",
"@headlessui/vue": "^1.7.23",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 104008976..63ff99bdb 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -8,6 +8,9 @@ importers:
.:
dependencies:
+ '@bprogress/core':
+ specifier: ^1.3.4
+ version: 1.3.4
'@fmhy/colors':
specifier: ^0.0.11
version: 0.0.11
@@ -343,6 +346,9 @@ packages:
resolution: {integrity: sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ==}
engines: {node: '>=6.9.0'}
+ '@bprogress/core@1.3.4':
+ resolution: {integrity: sha512-q/AqpurI/1uJzOrQROuZWixn/+ARekh+uvJGwLCP6HQ/EqAX4SkvNf618tSBxL4NysC0MwqAppb/mRw6Tzi61w==}
+
'@cloudflare/kv-asset-handler@0.3.4':
resolution: {integrity: sha512-YLPHc8yASwjNkmcDMQMY35yiWjoKAKnhUbPRszBRS0YgH+IXtsMp61j+yTcnCE3oO2DgP0U3iejLC8FTtKDC8Q==}
engines: {node: '>=16.13'}
@@ -4430,6 +4436,8 @@ snapshots:
'@babel/helper-string-parser': 7.25.9
'@babel/helper-validator-identifier': 7.25.9
+ '@bprogress/core@1.3.4': {}
+
'@cloudflare/kv-asset-handler@0.3.4':
dependencies:
mime: 3.0.0