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 {