From f68f05eb81297b703279393b5987befaa11a6487 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sat, 2 Nov 2024 20:46:51 +0900 Subject: [PATCH] =?UTF-8?q?enh(frontend):=20=E6=96=9C=E7=B7=9A=E3=83=87?= =?UTF-8?q?=E3=82=B6=E3=82=A4=E3=83=B3=E3=81=AE=E8=AA=BF=E6=95=B4,=20Mk.*C?= =?UTF-8?q?ardMini=E3=81=AE=E6=94=B9=E4=BF=AE=20(taiyme#289)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- idea/MkDisableSection.vue | 11 +++++--- .../MkCustomEmojiDetailedDialog.vue | 27 ++++++++++++++----- .../src/components/MkEmbedCodeGenDialog.vue | 11 +++++--- .../src/components/MkFlashPreview.vue | 10 ++++--- packages/frontend/src/components/MkFolder.vue | 9 +++++-- .../frontend/src/components/MkPostForm.vue | 21 ++++++++++----- packages/frontend/src/style.scss | 17 +++++++----- 7 files changed, 75 insertions(+), 31 deletions(-) diff --git a/idea/MkDisableSection.vue b/idea/MkDisableSection.vue index 360705071b..b9e964c400 100644 --- a/idea/MkDisableSection.vue +++ b/idea/MkDisableSection.vue @@ -34,8 +34,13 @@ defineProps<{ width: 100%; height: 100%; cursor: not-allowed; - --color: color(from var(--MI_THEME-error) srgb r g b / 0.25); - background-size: auto auto; - background-image: repeating-linear-gradient(135deg, transparent, transparent 10px, var(--color) 4px, var(--color) 14px); + background-image: repeating-linear-gradient( + 135deg, + transparent, + transparent 10px, + var(--c) 6px, + var(--c) 16px + ); + --c: color(from var(--MI_THEME-error) srgb r g b / 0.25); } diff --git a/packages/frontend/src/components/MkCustomEmojiDetailedDialog.vue b/packages/frontend/src/components/MkCustomEmojiDetailedDialog.vue index ecbee864dc..57dd5257df 100644 --- a/packages/frontend/src/components/MkCustomEmojiDetailedDialog.vue +++ b/packages/frontend/src/components/MkCustomEmojiDetailedDialog.vue @@ -83,12 +83,27 @@ function cancel() { diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index f2fe048449..947848b7f4 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -1197,15 +1197,22 @@ defineExpose({ min-height: 75px; max-height: 150px; overflow: auto; - background-size: auto auto; -} + background-image: repeating-linear-gradient( + 135deg, + transparent, + transparent 10px, + var(--c) 6px, + var(--c) 16px + ); -html[data-color-scheme=dark] .preview { - background-image: repeating-linear-gradient(135deg, transparent, transparent 5px, #0004 5px, #0004 10px); -} + &, + html[data-color-scheme=light] & { + --c: rgb(0 0 0 / 0.02); + } -html[data-color-scheme=light] .preview { - background-image: repeating-linear-gradient(135deg, transparent, transparent 5px, #00000005 5px, #00000005 10px); + html[data-color-scheme=dark] & { + --c: rgb(255 255 255 / 0.02); + } } .targetNote { diff --git a/packages/frontend/src/style.scss b/packages/frontend/src/style.scss index 4204c5af59..77ff0741b2 100644 --- a/packages/frontend/src/style.scss +++ b/packages/frontend/src/style.scss @@ -444,14 +444,17 @@ rt { box-shadow: 0 6px 16px #0007, 0 0 1px 1px #693410, inset 0 0 2px 1px #ce8a5c; border-radius: 10px; - --MI_THEME-bg: #F1E8DC; - --MI_THEME-fg: #693410; -} + &, + html[data-color-scheme=light] & { + --bg: #F1E8DC; + --fg: #693410; + } -html[data-color-scheme=dark] ._woodenFrame { - --MI_THEME-bg: #1d0c02; - --MI_THEME-fg: #F1E8DC; - --MI_THEME-panel: #192320; + html[data-color-scheme=dark] & { + --bg: #1d0c02; + --fg: #F1E8DC; + --panel: #192320; + } } ._woodenFrameH {