mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-21 13:35:12 +00:00
42 lines
787 B
Vue
42 lines
787 B
Vue
|
<!--
|
||
|
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>
|