From 14adf692ab09dafc3ae703c9eccc0db2745c869e Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Fri, 7 Jan 2022 14:45:21 +0800 Subject: [PATCH] perf: theme --- babel.config.js | 6 - index.html | 128 +++++++++----------- package.json | 4 +- pnpm-lock.yaml | 53 +++++--- src/layout/components/navbar.vue | 7 +- src/layout/components/setting/index.vue | 2 +- src/layout/components/sidebar/hamBurger.vue | 7 ++ vite.config.ts | 3 + 8 files changed, 108 insertions(+), 102 deletions(-) delete mode 100644 babel.config.js diff --git a/babel.config.js b/babel.config.js deleted file mode 100644 index 7e3c18b7e..000000000 --- a/babel.config.js +++ /dev/null @@ -1,6 +0,0 @@ -const productPlugins = []; -process.env.NODE_ENV === "production" && - productPlugins.push("transform-remove-console"); -module.exports = { - plugins: [...productPlugins] -}; diff --git a/index.html b/index.html index 6e52c8c00..94a5f5d8e 100644 --- a/index.html +++ b/index.html @@ -27,94 +27,78 @@ display: flex; justify-content: center; align-items: center; - background: #000; overflow: hidden; font-family: "Reggae One", cursive; } - p { - font-size: 8vw; - overflow: hidden; - -webkit-text-stroke: 3px #7272a5; + .loader, + .loader:before, + .loader:after { + border-radius: 50%; + width: 2.5em; + height: 2.5em; + -webkit-animation-fill-mode: both; + animation-fill-mode: both; + -webkit-animation: loadAnimation 1.8s infinite ease-in-out; + animation: loadAnimation 1.8s infinite ease-in-out; } - span { - display: block; - font-size: 20px; - overflow: hidden; - color: green; - text-align: center; + .loader { + color: #406eeb; + font-size: 10px; + margin: 80px auto; + position: relative; + text-indent: -9999em; + -webkit-transform: translateZ(0); + -ms-transform: translateZ(0); + transform: translateZ(0); + -webkit-animation-delay: -0.16s; + animation-delay: -0.16s; } - p::before { - content: " "; - width: 100%; - height: 100%; - position: absolute; - left: 0; - top: 0; - background-image: linear-gradient(45deg, #ff269b, #2ab5f5, #ffbf00); - mix-blend-mode: multiply; - } - - p::after { + .loader:before, + .loader:after { content: ""; - background: radial-gradient(circle, #fff, #000 50%); - background-size: 25% 25%; position: absolute; - top: -100%; - left: -100%; - right: 0; - bottom: 0; - mix-blend-mode: color-dodge; - animation: mix 2s linear infinite; + top: 0; } - @keyframes mix { - to { - transform: translate(50%, 50%); + .loader:before { + left: -3.5em; + -webkit-animation-delay: -0.32s; + animation-delay: -0.32s; + } + + .loader:after { + left: 3.5em; + } + + @-webkit-keyframes loadAnimation { + 0%, + 80%, + 100% { + box-shadow: 0 2.5em 0 -1.3em; + } + + 40% { + box-shadow: 0 2.5em 0 0; + } + } + + @keyframes loadAnimation { + 0%, + 80%, + 100% { + box-shadow: 0 2.5em 0 -1.3em; + } + + 40% { + box-shadow: 0 2.5em 0 0; } } -
Pure-Admin
- -