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/MkInstanceCardMini.vue b/packages/frontend/src/components/MkInstanceCardMini.vue index b0601cf7f9..7a11dc4666 100644 --- a/packages/frontend/src/components/MkInstanceCardMini.vue +++ b/packages/frontend/src/components/MkInstanceCardMini.vue @@ -4,114 +4,158 @@ SPDX-License-Identifier: AGPL-3.0-only --> diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index 4a350388c2..b53ffc98c0 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -173,7 +173,7 @@ SPDX-License-Identifier: AGPL-3.0-only @@ -190,7 +190,7 @@ SPDX-License-Identifier: AGPL-3.0-only diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index 0b5794d1e3..0ea752af5c 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/components/MkUserCardMini.vue b/packages/frontend/src/components/MkUserCardMini.vue index 7a2e878931..0489729875 100644 --- a/packages/frontend/src/components/MkUserCardMini.vue +++ b/packages/frontend/src/components/MkUserCardMini.vue @@ -4,7 +4,12 @@ SPDX-License-Identifier: AGPL-3.0-only --> @@ -49,8 +67,37 @@ $bodyInfoHieght: 16px; display: flex; align-items: center; padding: 16px; - background: var(--MI_THEME-panel); border-radius: 8px; + background-color: var(--MI-THEME-panel); + background-image: repeating-linear-gradient( + 135deg, + transparent, + transparent 10px, + var(--c) 6px, + var(--c) 16px + ); + --c: transparent; + + &, + html[data-color-scheme=light] & { + &.isSilenced { + --c: color(from color-mix(in srgb, var(--MI_THEME-panel), blue 50%) srgb r g b / 0.25); + } + + &.isSuspended { + --c: color(from color-mix(in srgb, var(--MI_THEME-panel), black 15%) srgb r g b / 0.25); + } + } + + html[data-color-scheme=dark] & { + &.isSilenced { + --c: color(from color-mix(in srgb, var(--MI_THEME-panel), blue 50%) srgb r g b / 0.5); + } + + &.isSuspended { + --c: color(from color-mix(in srgb, var(--MI_THEME-panel), white 15%) srgb r g b / 0.5); + } + } } .avatar { diff --git a/packages/frontend/src/components/global/MkFooterSpacer.vue b/packages/frontend/src/components/global/MkFooterSpacer.vue index 1a75855fa1..cbb35b978f 100644 --- a/packages/frontend/src/components/global/MkFooterSpacer.vue +++ b/packages/frontend/src/components/global/MkFooterSpacer.vue @@ -4,13 +4,9 @@ SPDX-License-Identifier: AGPL-3.0-only --> - - diff --git a/packages/frontend/src/components/global/MkPageHeader.vue b/packages/frontend/src/components/global/MkPageHeader.vue index aa4be69b2c..4e2ae9d41e 100644 --- a/packages/frontend/src/components/global/MkPageHeader.vue +++ b/packages/frontend/src/components/global/MkPageHeader.vue @@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only -->