From a930fd9758c6efaf1cc1da7b3e365ba590a5d298 Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 8 Nov 2024 17:18:29 +0000 Subject: [PATCH] probably fix most renamed CSS variables --- .../src/components/MkAchievements.vue | 8 ++-- packages/frontend/src/components/MkAsUi.vue | 2 +- .../src/components/MkAutocomplete.vue | 2 +- packages/frontend/src/components/MkButton.vue | 8 ++-- .../src/components/MkChannelFollowButton.vue | 2 +- .../src/components/MkChannelPreview.vue | 6 +-- .../frontend/src/components/MkChartLegend.vue | 4 +- .../frontend/src/components/MkCode.core.vue | 4 +- packages/frontend/src/components/MkCode.vue | 4 +- .../frontend/src/components/MkCodeEditor.vue | 6 +-- .../frontend/src/components/MkColorInput.vue | 2 +- .../frontend/src/components/MkContainer.vue | 6 +-- .../src/components/MkDateSeparatedList.vue | 2 +- packages/frontend/src/components/MkDialog.vue | 2 +- .../frontend/src/components/MkDonation.vue | 2 +- .../frontend/src/components/MkDrive.file.vue | 2 +- .../src/components/MkDrive.folder.vue | 4 +- .../src/components/MkDriveFileThumbnail.vue | 2 +- .../src/components/MkEmojiPicker.section.vue | 4 +- .../frontend/src/components/MkEmojiPicker.vue | 2 +- .../src/components/MkEmojiPickerDialog.vue | 2 +- .../src/components/MkFileListForAdmin.vue | 2 +- packages/frontend/src/components/MkFolder.vue | 6 +-- .../src/components/MkFollowButton.vue | 2 +- packages/frontend/src/components/MkGoogle.vue | 4 +- packages/frontend/src/components/MkInput.vue | 2 +- .../src/components/MkInstanceCardMini.vue | 4 +- .../src/components/MkInstanceTicker.vue | 2 +- .../frontend/src/components/MkLaunchPad.vue | 6 +-- .../frontend/src/components/MkMediaBanner.vue | 4 +- .../frontend/src/components/MkMediaImage.vue | 6 +-- .../frontend/src/components/MkMediaList.vue | 2 +- .../frontend/src/components/MkMediaVideo.vue | 8 ++-- .../frontend/src/components/MkMention.vue | 4 +- packages/frontend/src/components/MkMenu.vue | 6 +-- packages/frontend/src/components/MkNote.vue | 16 +++---- .../src/components/MkNoteDetailed.vue | 14 +++--- .../frontend/src/components/MkNoteHeader.vue | 2 +- .../frontend/src/components/MkNotePreview.vue | 2 +- .../frontend/src/components/MkNoteSimple.vue | 2 +- .../frontend/src/components/MkNoteSub.vue | 12 ++--- packages/frontend/src/components/MkNotes.vue | 2 +- .../src/components/MkNotification.vue | 8 ++-- packages/frontend/src/components/MkOmit.vue | 2 +- packages/frontend/src/components/MkPoll.vue | 6 +-- .../frontend/src/components/MkPopupMenu.vue | 2 +- .../frontend/src/components/MkPostForm.vue | 14 +++--- .../src/components/MkPostFormAttaches.vue | 2 +- packages/frontend/src/components/MkRadio.vue | 6 +-- packages/frontend/src/components/MkRange.vue | 8 ++-- .../components/MkReactionsViewer.reaction.vue | 6 +-- packages/frontend/src/components/MkSelect.vue | 2 +- .../src/components/MkSignupDialog.rules.vue | 2 +- .../components/MkSourceCodeAvailablePopup.vue | 2 +- .../src/components/MkSubNoteContent.vue | 8 ++-- .../frontend/src/components/MkSuperMenu.vue | 4 +- .../src/components/MkSwitch.button.vue | 4 +- packages/frontend/src/components/MkTab.vue | 2 +- .../frontend/src/components/MkTextarea.vue | 2 +- packages/frontend/src/components/MkToast.vue | 2 +- .../frontend/src/components/MkTooltip.vue | 2 +- .../components/MkTutorialDialog.PostNote.vue | 2 +- .../components/MkTutorialDialog.Sensitive.vue | 2 +- .../components/MkTutorialDialog.Timeline.vue | 2 +- .../frontend/src/components/MkUrlPreview.vue | 2 +- .../src/components/MkUrlWarningDialog.vue | 6 +-- .../src/components/MkUserCardMini.vue | 2 +- .../frontend/src/components/MkUserInfo.vue | 8 ++-- .../src/components/MkUserOnlineIndicator.vue | 2 +- .../frontend/src/components/MkUserPopup.vue | 16 +++---- .../src/components/MkUserSetupDialog.User.vue | 4 +- .../src/components/MkVisibilityPicker.vue | 2 +- .../src/components/MkVisitorDashboard.vue | 2 +- .../frontend/src/components/MkWidgets.vue | 2 +- .../src/components/SkInstanceTicker.vue | 2 +- .../frontend/src/components/SkMfmWindow.vue | 6 +-- .../frontend/src/components/SkModPlayer.vue | 48 +++++++++---------- packages/frontend/src/components/SkNote.vue | 48 +++++++++---------- .../src/components/SkNoteDetailed.vue | 14 +++--- .../frontend/src/components/SkNoteHeader.vue | 2 +- .../frontend/src/components/SkNoteSimple.vue | 2 +- .../frontend/src/components/SkNoteSub.vue | 46 +++++++++--------- .../src/components/SkOldNoteWindow.vue | 22 ++++----- packages/frontend/src/components/SkOneko.vue | 2 +- .../src/components/SkUserRecentNotes.vue | 2 +- .../frontend/src/components/form/link.vue | 2 +- .../frontend/src/components/global/MkAd.vue | 4 +- .../src/components/global/MkError.vue | 2 +- .../frontend/src/components/global/MkMfm.ts | 2 +- .../components/global/MkPageHeader.tabs.vue | 4 +- .../src/components/global/MkPageHeader.vue | 2 +- packages/frontend/src/pages/_error_.vue | 2 +- packages/frontend/src/pages/about-sharkey.vue | 22 ++++----- .../frontend/src/pages/about.overview.vue | 18 +++---- packages/frontend/src/pages/admin-user.vue | 12 ++--- .../frontend/src/pages/admin/_header_.vue | 4 +- packages/frontend/src/pages/admin/index.vue | 2 +- .../src/pages/admin/modlog.ModLog.vue | 2 +- .../src/pages/admin/overview.federation.vue | 2 +- .../src/pages/admin/overview.stats.vue | 2 +- .../frontend/src/pages/admin/server-rules.vue | 4 +- .../frontend/src/pages/antenna-timeline.vue | 2 +- packages/frontend/src/pages/channel.vue | 4 +- .../frontend/src/pages/drive.file.info.vue | 2 +- .../frontend/src/pages/emoji-edit-dialog.vue | 2 +- packages/frontend/src/pages/emojis.emoji.vue | 2 +- .../frontend/src/pages/follow-requests.vue | 2 +- .../frontend/src/pages/following-feed.vue | 4 +- packages/frontend/src/pages/instance-info.vue | 2 +- packages/frontend/src/pages/invite.vue | 2 +- packages/frontend/src/pages/list.vue | 2 +- .../frontend/src/pages/my-antennas/index.vue | 2 +- .../frontend/src/pages/my-lists/index.vue | 2 +- .../page-editor/page-editor.container.vue | 2 +- packages/frontend/src/pages/role.vue | 2 +- .../settings/avatar-decoration.decoration.vue | 2 +- .../src/pages/settings/drive-cleaner.vue | 2 +- .../frontend/src/pages/settings/drive.vue | 4 +- .../src/pages/settings/emoji-picker.vue | 4 +- .../frontend/src/pages/settings/theme.vue | 4 +- packages/frontend/src/pages/theme-editor.vue | 8 ++-- packages/frontend/src/pages/timeline.vue | 2 +- .../frontend/src/pages/user-list-timeline.vue | 2 +- packages/frontend/src/pages/user/home.vue | 24 +++++----- .../frontend/src/pages/user/index.files.vue | 2 +- packages/frontend/src/pages/user/lists.vue | 2 +- packages/frontend/src/pages/user/raw.vue | 2 +- .../frontend/src/pages/welcome.entrance.a.vue | 6 +-- .../src/pages/welcome.timeline.note.vue | 2 +- packages/frontend/src/scripts/favicon-dot.ts | 6 +-- packages/frontend/src/style.scss | 45 +++++++++-------- .../src/ui/_common_/navbar-for-mobile.vue | 4 +- packages/frontend/src/ui/_common_/navbar.vue | 8 ++-- .../frontend/src/ui/_common_/notification.vue | 2 +- packages/frontend/src/ui/_common_/upload.vue | 4 +- packages/frontend/src/ui/deck.vue | 4 +- packages/frontend/src/ui/deck/column.vue | 4 +- packages/frontend/src/ui/universal.vue | 4 +- packages/frontend/src/ui/visitor.vue | 2 +- packages/frontend/src/ui/zen.vue | 2 +- .../frontend/src/widgets/WidgetAiscript.vue | 2 +- .../frontend/src/widgets/WidgetCalendar.vue | 2 +- .../frontend/src/widgets/WidgetFederation.vue | 2 +- .../src/widgets/WidgetInstanceInfo.vue | 2 +- packages/frontend/src/widgets/WidgetMemo.vue | 2 +- .../frontend/src/widgets/WidgetPhotos.vue | 4 +- .../frontend/src/widgets/WidgetSearch.vue | 2 +- 147 files changed, 399 insertions(+), 400 deletions(-) diff --git a/packages/frontend/src/components/MkAchievements.vue b/packages/frontend/src/components/MkAchievements.vue index ab7bafc47a..087ad51fe3 100644 --- a/packages/frontend/src/components/MkAchievements.vue +++ b/packages/frontend/src/components/MkAchievements.vue @@ -121,10 +121,10 @@ onMounted(() => { .iconFrame { position: relative; - width: var(--avatar); - height: var(--avatar); + width: var(--MI-avatar); + height: var(--MI-avatar); padding: 6px; - border-radius: var(--radius-full); + border-radius: var(--MI-radius-full); box-sizing: border-box; pointer-events: none; user-select: none; @@ -191,7 +191,7 @@ onMounted(() => { position: relative; width: 100%; height: 100%; - border-radius: var(--radius-full); + border-radius: var(--MI-radius-full); box-shadow: 0 1px 0px #ffffff88 inset; } diff --git a/packages/frontend/src/components/MkAsUi.vue b/packages/frontend/src/components/MkAsUi.vue index 13680e7d9c..c28dbc7ffa 100644 --- a/packages/frontend/src/components/MkAsUi.vue +++ b/packages/frontend/src/components/MkAsUi.vue @@ -166,6 +166,6 @@ function openPostForm() { .postForm { background: var(--MI_THEME-bg); - border-radius: var(--radius-sm); + border-radius: var(--MI-radius-sm); } diff --git a/packages/frontend/src/components/MkAutocomplete.vue b/packages/frontend/src/components/MkAutocomplete.vue index ef6b8c69e5..a0cd066c06 100644 --- a/packages/frontend/src/components/MkAutocomplete.vue +++ b/packages/frontend/src/components/MkAutocomplete.vue @@ -427,7 +427,7 @@ onBeforeUnmount(() => { max-width: 28px; max-height: 28px; margin: 0 8px 0 0; - border-radius: var(--radius-full); + border-radius: var(--MI-radius-full); } .userName { diff --git a/packages/frontend/src/components/MkButton.vue b/packages/frontend/src/components/MkButton.vue index 6427f9b58a..a6e5651d63 100644 --- a/packages/frontend/src/components/MkButton.vue +++ b/packages/frontend/src/components/MkButton.vue @@ -130,7 +130,7 @@ function onMousedown(evt: MouseEvent): void { box-shadow: none; text-decoration: none; background: var(--MI_THEME-buttonBg); - border-radius: var(--radius-xs); + border-radius: var(--MI-radius-xs); overflow: clip; box-sizing: border-box; transition: background 0.1s ease; @@ -162,7 +162,7 @@ function onMousedown(evt: MouseEvent): void { } &.rounded { - border-radius: var(--radius-ellipse); + border-radius: var(--MI-radius-ellipse); } &.primary { @@ -272,7 +272,7 @@ function onMousedown(evt: MouseEvent): void { left: 0; width: 100%; height: 100%; - border-radius: var(--radius-sm); + border-radius: var(--MI-radius-sm); overflow: clip; pointer-events: none; } @@ -281,7 +281,7 @@ function onMousedown(evt: MouseEvent): void { position: absolute; width: 2px; height: 2px; - border-radius: var(--radius-full); + border-radius: var(--MI-radius-full); background: rgba(0, 0, 0, 0.1); opacity: 1; transform: scale(1); diff --git a/packages/frontend/src/components/MkChannelFollowButton.vue b/packages/frontend/src/components/MkChannelFollowButton.vue index 99922ffbc8..7aa916134f 100644 --- a/packages/frontend/src/components/MkChannelFollowButton.vue +++ b/packages/frontend/src/components/MkChannelFollowButton.vue @@ -74,7 +74,7 @@ async function onClick() { padding: 0; height: 31px; font-size: 16px; - border-radius: var(--radius-xl); + border-radius: var(--MI-radius-xl); background: #fff; &.full { diff --git a/packages/frontend/src/components/MkChannelPreview.vue b/packages/frontend/src/components/MkChannelPreview.vue index a25c596975..a63006dfe4 100644 --- a/packages/frontend/src/components/MkChannelPreview.vue +++ b/packages/frontend/src/components/MkChannelPreview.vue @@ -138,7 +138,7 @@ const bannerStyle = computed(() => { padding: 8px 12px; font-size: 80%; background: rgba(0, 0, 0, 0.7); - border-radius: var(--radius-sm); + border-radius: var(--MI-radius-sm); color: #fff; } @@ -149,7 +149,7 @@ const bannerStyle = computed(() => { left: 16px; background: rgba(0, 0, 0, 0.7); color: var(--MI_THEME-warn); - border-radius: var(--radius-sm); + border-radius: var(--MI-radius-sm); font-weight: bold; font-size: 1em; padding: 4px 7px; @@ -215,7 +215,7 @@ const bannerStyle = computed(() => { transform: translate(25%, -25%); background-color: var(--MI_THEME-accent); border: solid var(--MI_THEME-bg) 4px; - border-radius: var(--radius-full); + border-radius: var(--MI-radius-full); width: 1.5rem; height: 1.5rem; aspect-ratio: 1 / 1; diff --git a/packages/frontend/src/components/MkChartLegend.vue b/packages/frontend/src/components/MkChartLegend.vue index 1e402a617c..e28d6ad6ba 100644 --- a/packages/frontend/src/components/MkChartLegend.vue +++ b/packages/frontend/src/components/MkChartLegend.vue @@ -54,7 +54,7 @@ defineExpose({ font-size: 85%; padding: 4px 12px 4px 8px; border: solid 1px var(--MI_THEME-divider); - border-radius: var(--radius-ellipse); + border-radius: var(--MI-radius-ellipse); &:hover { border-color: var(--MI_THEME-inputBorderHover); @@ -69,7 +69,7 @@ defineExpose({ display: inline-block; width: 12px; height: 12px; - border-radius: var(--radius-full); + border-radius: var(--MI-radius-full); vertical-align: -10%; } } diff --git a/packages/frontend/src/components/MkCode.core.vue b/packages/frontend/src/components/MkCode.core.vue index ae80bf33ba..e253b1b55f 100644 --- a/packages/frontend/src/components/MkCode.core.vue +++ b/packages/frontend/src/components/MkCode.core.vue @@ -95,7 +95,7 @@ watch(() => props.lang, (to) => { padding: 1em; margin: .5em 0; overflow: auto; - border-radius: var(--radius-sm); + border-radius: var(--MI-radius-sm); border: 1px solid var(--MI_THEME-divider); font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace; @@ -140,7 +140,7 @@ watch(() => props.lang, (to) => { & :global(.shiki) { padding: 12px; margin: 0; - border-radius: var(--radius-sm); + border-radius: var(--MI-radius-sm); border: none; min-height: 130px; pointer-events: none; diff --git a/packages/frontend/src/components/MkCode.vue b/packages/frontend/src/components/MkCode.vue index b4a04d4cc3..a46b220101 100644 --- a/packages/frontend/src/components/MkCode.vue +++ b/packages/frontend/src/components/MkCode.vue @@ -75,7 +75,7 @@ function copy() { padding: 1em; margin: .5em 0; overflow: auto; - border-radius: var(--radius-sm); + border-radius: var(--MI-radius-sm); } .codeBlockFallbackCode { @@ -91,7 +91,7 @@ function copy() { cursor: pointer; box-sizing: border-box; - border-radius: var(--radius-sm); + border-radius: var(--MI-radius-sm); padding: 24px; margin-top: 4px; color: var(--MI_THEME-fg); diff --git a/packages/frontend/src/components/MkCodeEditor.vue b/packages/frontend/src/components/MkCodeEditor.vue index 1f9bd3e186..49b083815a 100644 --- a/packages/frontend/src/components/MkCodeEditor.vue +++ b/packages/frontend/src/components/MkCodeEditor.vue @@ -158,7 +158,7 @@ watch(v, newValue => { overflow-y: hidden; box-sizing: border-box; margin: 0; - border-radius: var(--radius-sm); + border-radius: var(--MI-radius-sm); padding: 0; color: var(--MI_THEME-fg); border: solid 1px var(--MI_THEME-panel); @@ -171,7 +171,7 @@ watch(v, newValue => { .focused.codeEditorRoot { border-color: var(--MI_THEME-accent) !important; - border-radius: var(--radius-sm); + border-radius: var(--MI-radius-sm); } .codeEditorScroller { @@ -199,7 +199,7 @@ watch(v, newValue => { caret-color: var(--MI_THEME-fg); background-color: transparent; border: 0; - border-radius: var(--radius-sm); + border-radius: var(--MI-radius-sm); box-sizing: border-box; outline: 0; min-width: calc(100% - 24px); diff --git a/packages/frontend/src/components/MkColorInput.vue b/packages/frontend/src/components/MkColorInput.vue index e83c0bccd4..babf356942 100644 --- a/packages/frontend/src/components/MkColorInput.vue +++ b/packages/frontend/src/components/MkColorInput.vue @@ -101,7 +101,7 @@ const onInput = () => { color: var(--MI_THEME-fg); background: var(--MI_THEME-panel); border: solid 1px var(--MI_THEME-panel); - border-radius: var(--radius-sm); + border-radius: var(--MI-radius-sm); outline: none; box-shadow: none; box-sizing: border-box; diff --git a/packages/frontend/src/components/MkContainer.vue b/packages/frontend/src/components/MkContainer.vue index 15d41baa7e..55442f8598 100644 --- a/packages/frontend/src/components/MkContainer.vue +++ b/packages/frontend/src/components/MkContainer.vue @@ -138,7 +138,7 @@ onUnmounted(() => { position: relative; overflow: clip; contain: content; - background: color-mix(in srgb, var(--panel) 65%, transparent); + background: color-mix(in srgb, var(--MI_THEME-panel) 65%, transparent); &.naked { background: transparent !important; box-shadow: none !important; @@ -172,7 +172,7 @@ onUnmounted(() => { border-bottom: solid 0.5px var(--MI_THEME-panelHeaderDivider); z-index: 2; line-height: 1.4em; - background: color-mix(in srgb, var(--panelHeaderBg) 35%, transparent); + background: color-mix(in srgb, var(--MI_THEME-panelHeaderBg) 35%, transparent); } .title { @@ -224,7 +224,7 @@ onUnmounted(() => { background: var(--MI_THEME-panel); padding: 6px 10px; font-size: 0.8em; - border-radius: var(--radius-ellipse); + border-radius: var(--MI-radius-ellipse); box-shadow: 0 2px 6px rgb(0 0 0 / 20%); } diff --git a/packages/frontend/src/components/MkDateSeparatedList.vue b/packages/frontend/src/components/MkDateSeparatedList.vue index 8fda097df6..46c667768f 100644 --- a/packages/frontend/src/components/MkDateSeparatedList.vue +++ b/packages/frontend/src/components/MkDateSeparatedList.vue @@ -190,7 +190,7 @@ export default defineComponent({ } .date-separated-list-nogap { - border-radius: var(--radius); + border-radius: var(--MI-radius); > * { margin: 0 !important; diff --git a/packages/frontend/src/components/MkDialog.vue b/packages/frontend/src/components/MkDialog.vue index 5af2816acf..73b3f457d4 100644 --- a/packages/frontend/src/components/MkDialog.vue +++ b/packages/frontend/src/components/MkDialog.vue @@ -186,7 +186,7 @@ function onInputKeydown(evt: KeyboardEvent) { box-sizing: border-box; text-align: center; background: var(--MI_THEME-panel); - border-radius: var(--radius-md); + border-radius: var(--MI-radius-md); } .icon { diff --git a/packages/frontend/src/components/MkDonation.vue b/packages/frontend/src/components/MkDonation.vue index 9f413fc078..43d2002204 100644 --- a/packages/frontend/src/components/MkDonation.vue +++ b/packages/frontend/src/components/MkDonation.vue @@ -83,7 +83,7 @@ function neverShow() { width: calc(100% - (var(--MI-margin) * 2)); max-width: 500px; display: flex; - backdrop-filter: var(--blur, blur(15px)); + backdrop-filter: var(--MI-blur, blur(15px)); } .icon { diff --git a/packages/frontend/src/components/MkDrive.file.vue b/packages/frontend/src/components/MkDrive.file.vue index f7249f19fb..5dee448329 100644 --- a/packages/frontend/src/components/MkDrive.file.vue +++ b/packages/frontend/src/components/MkDrive.file.vue @@ -112,7 +112,7 @@ function onDragend() { position: relative; padding: 8px 0 0 0; min-height: 180px; - border-radius: var(--radius-sm); + border-radius: var(--MI-radius-sm); cursor: pointer; &:hover { diff --git a/packages/frontend/src/components/MkDrive.folder.vue b/packages/frontend/src/components/MkDrive.folder.vue index a0693c3827..8496890f60 100644 --- a/packages/frontend/src/components/MkDrive.folder.vue +++ b/packages/frontend/src/components/MkDrive.folder.vue @@ -314,7 +314,7 @@ function onContextmenu(ev: MouseEvent) { padding: 8px; height: 64px; background: var(--MI_THEME-driveFolderBg); - border-radius: var(--radius-xs); + border-radius: var(--MI-radius-xs); cursor: pointer; &.draghover { @@ -327,7 +327,7 @@ function onContextmenu(ev: MouseEvent) { bottom: -4px; left: -4px; border: 2px dashed var(--MI_THEME-focus); - border-radius: var(--radius-xs); + border-radius: var(--MI-radius-xs); } } } diff --git a/packages/frontend/src/components/MkDriveFileThumbnail.vue b/packages/frontend/src/components/MkDriveFileThumbnail.vue index 623c4895eb..1079e52030 100644 --- a/packages/frontend/src/components/MkDriveFileThumbnail.vue +++ b/packages/frontend/src/components/MkDriveFileThumbnail.vue @@ -70,7 +70,7 @@ const isThumbnailAvailable = computed(() => { position: relative; display: flex; background: var(--MI_THEME-panel); - border-radius: var(--radius-sm); + border-radius: var(--MI-radius-sm); overflow: clip; } diff --git a/packages/frontend/src/components/MkEmojiPicker.section.vue b/packages/frontend/src/components/MkEmojiPicker.section.vue index e2762eb3cb..fac3c045dc 100644 --- a/packages/frontend/src/components/MkEmojiPicker.section.vue +++ b/packages/frontend/src/components/MkEmojiPicker.section.vue @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only