From d599c1e7409ac78167c43ba36c017af21e6a8f63 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 12 Apr 2021 13:06:00 +0900 Subject: [PATCH] Tweak UI --- src/client/components/form/form.scss | 36 +++++++++-------- src/client/pages/settings/theme.vue | 60 +++++++++++++++++++--------- src/client/scripts/theme.ts | 4 +- src/client/style.scss | 4 +- 4 files changed, 64 insertions(+), 40 deletions(-) diff --git a/src/client/components/form/form.scss b/src/client/components/form/form.scss index d9486430be..b8d1429c9d 100644 --- a/src/client/components/form/form.scss +++ b/src/client/components/form/form.scss @@ -9,32 +9,34 @@ } } -._formLabel { - position: sticky; - top: var(--stickyTop, 0px); - background: var(--bg); - z-index: 2; +._formLabel, +._formCaption { font-size: 80%; - margin: -8px calc(var(--formXPadding) * -1) 0 calc(var(--formXPadding) * -1); - padding: 8px calc(16px + var(--formXPadding)) 8px calc(16px + var(--formXPadding)); color: var(--fgTransparentWeak); - background: var(--X17); - -webkit-backdrop-filter: blur(10px); - backdrop-filter: blur(10px); &:empty { display: none; } } -._formCaption { - font-size: 80%; - padding: 8px 16px 0 16px; - opacity: 0.8; +._formLabel { + position: sticky; + top: var(--stickyTop, 0px); + z-index: 2; + margin: -8px calc(var(--formXPadding) * -1) 0 calc(var(--formXPadding) * -1); + padding: 8px calc(16px + var(--formXPadding)) 8px calc(16px + var(--formXPadding)); + background: var(--X17); + -webkit-backdrop-filter: blur(10px); + backdrop-filter: blur(10px); +} - &:empty { - display: none; - } +._themeChanging_ ._formLabel { + transition: none !important; + background: transparent; +} + +._formCaption { + padding: 8px 16px 0 16px; } ._formItem { diff --git a/src/client/pages/settings/theme.vue b/src/client/pages/settings/theme.vue index 4aba6ea4de..75f27d12e7 100644 --- a/src/client/pages/settings/theme.vue +++ b/src/client/pages/settings/theme.vue @@ -1,24 +1,5 @@