From 03ad57e1e4e5a8fe6bf93e4b40c37b3927491a4d Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 16 Apr 2021 23:04:25 +0900 Subject: [PATCH] Tweak UI --- src/client/components/form/suspense.vue | 32 +++++++++----- src/client/components/global/loading.vue | 55 ++++++++++++++++++------ src/client/pages/user-ap-info.vue | 10 ++--- 3 files changed, 69 insertions(+), 28 deletions(-) diff --git a/src/client/components/form/suspense.vue b/src/client/components/form/suspense.vue index 4b47cb959..e22b09ada 100644 --- a/src/client/components/form/suspense.vue +++ b/src/client/components/form/suspense.vue @@ -1,16 +1,20 @@ diff --git a/src/client/components/global/loading.vue b/src/client/components/global/loading.vue index 5d0c10c08..17d71b5c7 100644 --- a/src/client/components/global/loading.vue +++ b/src/client/components/global/loading.vue @@ -1,5 +1,5 @@ @@ -14,6 +14,11 @@ export default defineComponent({ type: Boolean, required: false, default: false + }, + colored: { + type: Boolean, + required: false, + default: true } } }); @@ -32,6 +37,11 @@ export default defineComponent({ .yxspomdl { padding: 32px; text-align: center; + cursor: wait; + + &.colored { + color: var(--accent); + } &.inline { display: inline; @@ -41,24 +51,43 @@ export default defineComponent({ width: 32px; height: 32px; } + + > .ring { + &:before, + &:after { + width: 32px; + height: 32px; + } + } } > .ring { + position: relative; display: inline-block; - opacity: 0.7; vertical-align: middle; - } - > .ring:after { - content: " "; - display: block; - box-sizing: border-box; - width: 48px; - height: 48px; - border-radius: 50%; - border: solid 4px; - border-color: currentColor transparent transparent transparent; - animation: ring 0.5s linear infinite; + &:before, + &:after { + content: " "; + display: block; + box-sizing: border-box; + width: 48px; + height: 48px; + border-radius: 50%; + border: solid 4px; + } + + &:before { + border-color: currentColor; + opacity: 0.3; + } + + &:after { + position: absolute; + top: 0; + border-color: currentColor transparent transparent transparent; + animation: ring 0.5s linear infinite; + } } } diff --git a/src/client/pages/user-ap-info.vue b/src/client/pages/user-ap-info.vue index d86437830..3f2920402 100644 --- a/src/client/pages/user-ap-info.vue +++ b/src/client/pages/user-ap-info.vue @@ -1,8 +1,8 @@