-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into enh-i-update-0
- Loading branch information
Showing
81 changed files
with
1,776 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!-- | ||
SPDX-FileCopyrightText: syuilo and misskey-project | ||
SPDX-License-Identifier: AGPL-3.0-only | ||
--> | ||
|
||
<template> | ||
<div :class="[$style.root]"> | ||
<div :inert="disabled" :class="[{ [$style.disabled]: disabled }]"> | ||
<slot></slot> | ||
</div> | ||
<div v-if="disabled" :class="[$style.cover]"></div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
defineProps<{ | ||
disabled?: boolean; | ||
}>(); | ||
</script> | ||
|
||
<style lang="scss" module> | ||
.root { | ||
position: relative; | ||
} | ||
|
||
.disabled { | ||
opacity: 0.7; | ||
} | ||
|
||
.cover { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
cursor: not-allowed; | ||
--color: color(from var(--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); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
使われなくなったけど消すのは勿体ない(将来使えるかもしれない)コードを入れておくとこ |
Oops, something went wrong.