Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
upd: add shadows to all panels, exclude selectively
Browse files Browse the repository at this point in the history
i am not too sure on such a global change. this has a chance of breaking
quite a lot of stuff :/
  • Loading branch information
wont-work committed Oct 30, 2023
1 parent 703e3ed commit 107ece1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkDonation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-->

<template>
<div class="_panel _shadow" :class="$style.root">
<div class="_panel" :class="$style.root">
<!-- TODO: インスタンス運営者が任意のテキストとリンクを設定できるようにする -->
<div :class="$style.icon">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-pig-money" width="40" height="40" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/src/components/MkNotification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ useTooltip(reactionRef, (showing) => {
overflow-wrap: break-word;
display: flex;
contain: content;
box-shadow: none;
}

.head {
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/settings/migration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<FormInfo>{{ i18n.ts._accountMigration.postMigrationNote }}</FormInfo>
<FormInfo warn>{{ i18n.ts._accountMigration.movedAndCannotBeUndone }}</FormInfo>
<div>{{ i18n.ts._accountMigration.movedTo }}</div>
<MkUserInfo v-if="movedTo" :user="movedTo" class="_panel _shadow"/>
<MkUserInfo v-if="movedTo" :user="movedTo" class="_panel"/>
</template>
</div>
</MkFolder>
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ hr {
}

._panel {
box-shadow: 0px 4px 32px var(--shadow); /* ._shadow without !important */
background: color-mix(in srgb, var(--panel) 65%, transparent);
border-radius: var(--radius);
overflow: clip;
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/ui/_common_/stream-indicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-->

<template>
<div v-if="hasDisconnected && defaultStore.state.serverDisconnectedBehavior === 'quiet'" :class="$style.root" class="_panel _shadow" @click="resetDisconnected">
<div v-if="hasDisconnected && defaultStore.state.serverDisconnectedBehavior === 'quiet'" :class="$style.root" class="_panel" @click="resetDisconnected">
<div><i class="ph-warning ph-bold ph-lg"></i> {{ i18n.ts.disconnectedFromServer }}</div>
<div :class="$style.command" class="_buttons">
<MkButton small primary @click="reload">{{ i18n.ts.reload }}</MkButton>
Expand Down

0 comments on commit 107ece1

Please sign in to comment.