2020-01-30 04:37:25 +09:00
|
|
|
<template>
|
2021-10-25 03:56:20 +09:00
|
|
|
<div>
|
2022-01-26 00:51:01 +09:00
|
|
|
<transition name="fade" mode="out-in">
|
|
|
|
<MkSpacer v-if="user" :content-max="narrow ? 800 : 1100">
|
|
|
|
<div v-size="{ max: [500] }" class="ftskorzw" :class="{ wide: !narrow }">
|
|
|
|
<div class="main">
|
|
|
|
<!-- TODO -->
|
|
|
|
<!-- <div class="punished" v-if="user.isSuspended"><i class="fas fa-exclamation-triangle" style="margin-right: 8px;"></i> {{ $ts.userSuspended }}</div> -->
|
|
|
|
<!-- <div class="punished" v-if="user.isSilenced"><i class="fas fa-exclamation-triangle" style="margin-right: 8px;"></i> {{ $ts.userSilenced }}</div> -->
|
|
|
|
|
|
|
|
<div class="profile">
|
|
|
|
<MkRemoteCaution v-if="user.host != null" :href="user.url" class="warn"/>
|
|
|
|
|
|
|
|
<div :key="user.id" class="_block main">
|
|
|
|
<div class="banner-container" :style="style">
|
|
|
|
<div ref="banner" class="banner" :style="style"></div>
|
|
|
|
<div class="fade"></div>
|
|
|
|
<div class="title">
|
|
|
|
<MkUserName class="name" :user="user" :nowrap="true"/>
|
|
|
|
<div class="bottom">
|
|
|
|
<span class="username"><MkAcct :user="user" :detail="true" /></span>
|
|
|
|
<span v-if="user.isAdmin" :title="$ts.isAdmin" style="color: var(--badge);"><i class="fas fa-bookmark"></i></span>
|
|
|
|
<span v-if="!user.isAdmin && user.isModerator" :title="$ts.isModerator" style="color: var(--badge);"><i class="far fa-bookmark"></i></span>
|
|
|
|
<span v-if="user.isLocked" :title="$ts.isLocked"><i class="fas fa-lock"></i></span>
|
|
|
|
<span v-if="user.isBot" :title="$ts.isBot"><i class="fas fa-robot"></i></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<span v-if="$i && $i.id != user.id && user.isFollowed" class="followed">{{ $ts.followsYou }}</span>
|
|
|
|
<div v-if="$i" class="actions">
|
|
|
|
<button class="menu _button" @click="menu"><i class="fas fa-ellipsis-h"></i></button>
|
|
|
|
<MkFollowButton v-if="$i.id != user.id" :user="user" :inline="true" :transparent="false" :full="true" class="koudoku"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<MkAvatar class="avatar" :user="user" :disable-preview="true" :show-indicator="true"/>
|
|
|
|
<div class="title">
|
|
|
|
<MkUserName :user="user" :nowrap="false" class="name"/>
|
|
|
|
<div class="bottom">
|
|
|
|
<span class="username"><MkAcct :user="user" :detail="true" /></span>
|
|
|
|
<span v-if="user.isAdmin" :title="$ts.isAdmin" style="color: var(--badge);"><i class="fas fa-bookmark"></i></span>
|
|
|
|
<span v-if="!user.isAdmin && user.isModerator" :title="$ts.isModerator" style="color: var(--badge);"><i class="far fa-bookmark"></i></span>
|
|
|
|
<span v-if="user.isLocked" :title="$ts.isLocked"><i class="fas fa-lock"></i></span>
|
|
|
|
<span v-if="user.isBot" :title="$ts.isBot"><i class="fas fa-robot"></i></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<Mfm v-if="user.description" :text="user.description" :is-note="false" :author="user" :i="$i" :custom-emojis="user.emojis"/>
|
|
|
|
<p v-else class="empty">{{ $ts.noAccountDescription }}</p>
|
|
|
|
</div>
|
|
|
|
<div class="fields system">
|
|
|
|
<dl v-if="user.location" class="field">
|
|
|
|
<dt class="name"><i class="fas fa-map-marker fa-fw"></i> {{ $ts.location }}</dt>
|
|
|
|
<dd class="value">{{ user.location }}</dd>
|
|
|
|
</dl>
|
|
|
|
<dl v-if="user.birthday" class="field">
|
|
|
|
<dt class="name"><i class="fas fa-birthday-cake fa-fw"></i> {{ $ts.birthday }}</dt>
|
|
|
|
<dd class="value">{{ user.birthday.replace('-', '/').replace('-', '/') }} ({{ $t('yearsOld', { age }) }})</dd>
|
|
|
|
</dl>
|
|
|
|
<dl class="field">
|
|
|
|
<dt class="name"><i class="fas fa-calendar-alt fa-fw"></i> {{ $ts.registeredDate }}</dt>
|
|
|
|
<dd class="value">{{ new Date(user.createdAt).toLocaleString() }} (<MkTime :time="user.createdAt"/>)</dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
<div v-if="user.fields.length > 0" class="fields">
|
|
|
|
<dl v-for="(field, i) in user.fields" :key="i" class="field">
|
|
|
|
<dt class="name">
|
|
|
|
<Mfm :text="field.name" :plain="true" :custom-emojis="user.emojis" :colored="false"/>
|
|
|
|
</dt>
|
|
|
|
<dd class="value">
|
|
|
|
<Mfm :text="field.value" :author="user" :i="$i" :custom-emojis="user.emojis" :colored="false"/>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
<div class="status">
|
|
|
|
<MkA v-click-anime :to="userPage(user)" :class="{ active: page === 'index' }">
|
|
|
|
<b>{{ number(user.notesCount) }}</b>
|
|
|
|
<span>{{ $ts.notes }}</span>
|
|
|
|
</MkA>
|
|
|
|
<MkA v-click-anime :to="userPage(user, 'following')" :class="{ active: page === 'following' }">
|
|
|
|
<b>{{ number(user.followingCount) }}</b>
|
|
|
|
<span>{{ $ts.following }}</span>
|
|
|
|
</MkA>
|
|
|
|
<MkA v-click-anime :to="userPage(user, 'followers')" :class="{ active: page === 'followers' }">
|
|
|
|
<b>{{ number(user.followersCount) }}</b>
|
|
|
|
<span>{{ $ts.followers }}</span>
|
|
|
|
</MkA>
|
2021-10-24 04:03:07 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-09 12:33:08 +09:00
|
|
|
</div>
|
2021-10-23 23:22:20 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
<div class="contents">
|
|
|
|
<template v-if="page === 'index'">
|
|
|
|
<div>
|
|
|
|
<div v-if="user.pinnedNotes.length > 0" class="_gap">
|
|
|
|
<XNote v-for="note in user.pinnedNotes" :key="note.id" class="note _block" :note="note" :pinned="true"/>
|
|
|
|
</div>
|
|
|
|
<MkInfo v-else-if="$i && $i.id === user.id">{{ $ts.userPagePinTip }}</MkInfo>
|
|
|
|
<template v-if="narrow">
|
|
|
|
<XPhotos :key="user.id" :user="user"/>
|
|
|
|
<XActivity :key="user.id" :user="user" style="margin-top: var(--margin);"/>
|
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<XUserTimeline :user="user"/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<XFollowList v-else-if="page === 'following'" type="following" :user="user" class="_content _gap"/>
|
|
|
|
<XFollowList v-else-if="page === 'followers'" type="followers" :user="user" class="_content _gap"/>
|
|
|
|
<XReactions v-else-if="page === 'reactions'" :user="user" class="_gap"/>
|
|
|
|
<XClips v-else-if="page === 'clips'" :user="user" class="_gap"/>
|
|
|
|
<XPages v-else-if="page === 'pages'" :user="user" class="_gap"/>
|
|
|
|
<XGallery v-else-if="page === 'gallery'" :user="user" class="_gap"/>
|
2021-10-24 04:03:07 +09:00
|
|
|
</div>
|
2022-01-26 00:51:01 +09:00
|
|
|
</div>
|
|
|
|
<div v-if="!narrow" class="sub">
|
|
|
|
<XPhotos :key="user.id" :user="user"/>
|
|
|
|
<XActivity :key="user.id" :user="user" style="margin-top: var(--margin);"/>
|
|
|
|
</div>
|
2021-10-09 12:33:08 +09:00
|
|
|
</div>
|
2022-01-26 00:51:01 +09:00
|
|
|
</MkSpacer>
|
|
|
|
<MkError v-else-if="error" @retry="fetch()"/>
|
|
|
|
<MkLoading v-else/>
|
|
|
|
</transition>
|
2021-10-25 03:56:20 +09:00
|
|
|
</div>
|
2020-01-30 04:37:25 +09:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-10-17 20:12:00 +09:00
|
|
|
import { defineComponent, defineAsyncComponent, computed } from 'vue';
|
2020-01-30 04:37:25 +09:00
|
|
|
import * as age from 's-age';
|
|
|
|
import XUserTimeline from './index.timeline.vue';
|
2021-11-12 02:02:25 +09:00
|
|
|
import XNote from '@/components/note.vue';
|
|
|
|
import MkFollowButton from '@/components/follow-button.vue';
|
|
|
|
import MkContainer from '@/components/ui/container.vue';
|
|
|
|
import MkFolder from '@/components/ui/folder.vue';
|
|
|
|
import MkRemoteCaution from '@/components/remote-caution.vue';
|
|
|
|
import MkTab from '@/components/tab.vue';
|
|
|
|
import MkInfo from '@/components/ui/info.vue';
|
|
|
|
import * as Acct from 'misskey-js/built/acct';
|
|
|
|
import { getScrollPosition } from '@/scripts/scroll';
|
|
|
|
import { getUserMenu } from '@/scripts/get-user-menu';
|
|
|
|
import number from '@/filters/number';
|
|
|
|
import { userPage, acct as getAcct } from '@/filters/user';
|
|
|
|
import * as os from '@/os';
|
|
|
|
import * as symbols from '@/symbols';
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2020-10-17 20:12:00 +09:00
|
|
|
export default defineComponent({
|
2020-01-30 04:37:25 +09:00
|
|
|
components: {
|
|
|
|
XUserTimeline,
|
|
|
|
XNote,
|
2020-01-31 11:35:18 +09:00
|
|
|
MkFollowButton,
|
2020-01-30 04:37:25 +09:00
|
|
|
MkContainer,
|
2020-03-21 13:07:02 +09:00
|
|
|
MkRemoteCaution,
|
2020-10-17 20:12:00 +09:00
|
|
|
MkFolder,
|
2020-11-29 00:18:54 +09:00
|
|
|
MkTab,
|
2021-04-15 23:38:34 +09:00
|
|
|
MkInfo,
|
2020-10-25 01:21:41 +09:00
|
|
|
XFollowList: defineAsyncComponent(() => import('./follow-list.vue')),
|
2021-10-17 01:33:15 +09:00
|
|
|
XReactions: defineAsyncComponent(() => import('./reactions.vue')),
|
2020-11-29 12:34:39 +09:00
|
|
|
XClips: defineAsyncComponent(() => import('./clips.vue')),
|
|
|
|
XPages: defineAsyncComponent(() => import('./pages.vue')),
|
2021-04-24 22:38:24 +09:00
|
|
|
XGallery: defineAsyncComponent(() => import('./gallery.vue')),
|
2020-10-17 20:12:00 +09:00
|
|
|
XPhotos: defineAsyncComponent(() => import('./index.photos.vue')),
|
|
|
|
XActivity: defineAsyncComponent(() => import('./index.activity.vue')),
|
2020-01-30 04:37:25 +09:00
|
|
|
},
|
|
|
|
|
2020-10-25 01:21:41 +09:00
|
|
|
props: {
|
|
|
|
acct: {
|
|
|
|
type: String,
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
page: {
|
|
|
|
type: String,
|
|
|
|
required: false,
|
|
|
|
default: 'index'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2020-01-30 04:37:25 +09:00
|
|
|
data() {
|
|
|
|
return {
|
2021-04-10 12:54:12 +09:00
|
|
|
[symbols.PAGE_INFO]: computed(() => this.user ? {
|
2021-10-09 12:33:08 +09:00
|
|
|
icon: 'fas fa-user',
|
2021-04-12 23:07:12 +09:00
|
|
|
title: this.user.name ? `${this.user.name} (@${this.user.username})` : `@${this.user.username}`,
|
2021-08-07 19:19:43 +09:00
|
|
|
subtitle: `@${getAcct(this.user)}`,
|
2020-11-03 20:36:12 +09:00
|
|
|
userName: this.user,
|
|
|
|
avatar: this.user,
|
2021-04-10 23:52:45 +09:00
|
|
|
path: `/@${this.user.username}`,
|
2021-04-10 12:40:50 +09:00
|
|
|
share: {
|
|
|
|
title: this.user.name,
|
|
|
|
},
|
2021-09-17 22:39:15 +09:00
|
|
|
bg: 'var(--bg)',
|
|
|
|
tabs: [{
|
|
|
|
active: this.page === 'index',
|
|
|
|
title: this.$ts.overview,
|
|
|
|
icon: 'fas fa-home',
|
2021-09-30 22:45:20 +09:00
|
|
|
onClick: () => { this.$router.push('/@' + getAcct(this.user)); },
|
2021-10-18 01:16:59 +09:00
|
|
|
}, ...(this.$i && (this.$i.id === this.user.id)) || this.user.publicReactions ? [{
|
2021-10-17 01:33:15 +09:00
|
|
|
active: this.page === 'reactions',
|
|
|
|
title: this.$ts.reaction,
|
|
|
|
icon: 'fas fa-laugh',
|
|
|
|
onClick: () => { this.$router.push('/@' + getAcct(this.user) + '/reactions'); },
|
2021-10-18 01:16:59 +09:00
|
|
|
}] : [], {
|
2021-09-17 22:39:15 +09:00
|
|
|
active: this.page === 'clips',
|
|
|
|
title: this.$ts.clips,
|
|
|
|
icon: 'fas fa-paperclip',
|
2021-09-30 22:45:20 +09:00
|
|
|
onClick: () => { this.$router.push('/@' + getAcct(this.user) + '/clips'); },
|
2021-09-17 22:39:15 +09:00
|
|
|
}, {
|
|
|
|
active: this.page === 'pages',
|
|
|
|
title: this.$ts.pages,
|
|
|
|
icon: 'fas fa-file-alt',
|
2021-09-30 22:45:20 +09:00
|
|
|
onClick: () => { this.$router.push('/@' + getAcct(this.user) + '/pages'); },
|
2021-09-17 22:39:15 +09:00
|
|
|
}, {
|
|
|
|
active: this.page === 'gallery',
|
|
|
|
title: this.$ts.gallery,
|
|
|
|
icon: 'fas fa-icons',
|
2021-09-30 22:45:20 +09:00
|
|
|
onClick: () => { this.$router.push('/@' + getAcct(this.user) + '/gallery'); },
|
2021-10-24 04:03:07 +09:00
|
|
|
}],
|
2020-10-17 20:12:00 +09:00
|
|
|
} : null),
|
2020-01-30 04:37:25 +09:00
|
|
|
user: null,
|
|
|
|
error: null,
|
|
|
|
parallaxAnimationId: null,
|
2020-11-25 21:31:34 +09:00
|
|
|
narrow: null,
|
2020-01-30 04:37:25 +09:00
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
style(): any {
|
|
|
|
if (this.user.bannerUrl == null) return {};
|
|
|
|
return {
|
|
|
|
backgroundImage: `url(${ this.user.bannerUrl })`
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
age(): number {
|
|
|
|
return age(this.user.birthday);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
watch: {
|
2020-10-25 01:21:41 +09:00
|
|
|
acct: 'fetch'
|
2020-01-30 04:37:25 +09:00
|
|
|
},
|
|
|
|
|
|
|
|
created() {
|
|
|
|
this.fetch();
|
|
|
|
},
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
window.requestAnimationFrame(this.parallaxLoop);
|
2022-01-26 00:51:01 +09:00
|
|
|
this.narrow = this.$el.clientWidth < 1000;
|
2020-10-17 20:12:00 +09:00
|
|
|
},
|
|
|
|
|
|
|
|
beforeUnmount() {
|
|
|
|
window.cancelAnimationFrame(this.parallaxAnimationId);
|
2020-01-30 04:37:25 +09:00
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
2020-10-25 01:21:41 +09:00
|
|
|
getAcct,
|
|
|
|
|
2020-01-30 04:37:25 +09:00
|
|
|
fetch() {
|
2020-10-25 01:21:41 +09:00
|
|
|
if (this.acct == null) return;
|
2021-04-17 11:40:47 +09:00
|
|
|
this.user = null;
|
2021-11-12 02:02:25 +09:00
|
|
|
os.api('users/show', Acct.parse(this.acct)).then(user => {
|
2020-01-30 04:37:25 +09:00
|
|
|
this.user = user;
|
|
|
|
}).catch(e => {
|
|
|
|
this.error = e;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
2020-10-17 20:12:00 +09:00
|
|
|
menu(ev) {
|
2022-01-28 11:53:12 +09:00
|
|
|
os.popupMenu(getUserMenu(this.user), ev.currentTarget ?? ev.target);
|
2020-01-30 04:37:25 +09:00
|
|
|
},
|
|
|
|
|
|
|
|
parallaxLoop() {
|
|
|
|
this.parallaxAnimationId = window.requestAnimationFrame(this.parallaxLoop);
|
|
|
|
this.parallax();
|
|
|
|
},
|
|
|
|
|
|
|
|
parallax() {
|
|
|
|
const banner = this.$refs.banner as any;
|
|
|
|
if (banner == null) return;
|
|
|
|
|
2020-07-11 10:13:11 +09:00
|
|
|
const top = getScrollPosition(this.$el);
|
2020-01-30 04:37:25 +09:00
|
|
|
|
|
|
|
if (top < 0) return;
|
|
|
|
|
|
|
|
const z = 1.75; // 奥行き(小さいほど奥)
|
|
|
|
const pos = -(top / z);
|
|
|
|
banner.style.backgroundPosition = `center calc(50% - ${pos}px)`;
|
|
|
|
},
|
2020-07-29 23:02:59 +09:00
|
|
|
|
2020-10-17 20:12:00 +09:00
|
|
|
number,
|
|
|
|
|
|
|
|
userPage
|
2020-01-30 04:37:25 +09:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2021-04-17 11:40:47 +09:00
|
|
|
.fade-enter-active,
|
|
|
|
.fade-leave-active {
|
|
|
|
transition: opacity 0.125s ease;
|
|
|
|
}
|
|
|
|
.fade-enter-from,
|
|
|
|
.fade-leave-to {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
.ftskorzw {
|
2020-11-29 00:18:54 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .main {
|
2020-11-29 00:18:54 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .punished {
|
|
|
|
font-size: 0.8em;
|
|
|
|
padding: 16px;
|
2020-11-29 00:18:54 +09:00
|
|
|
}
|
2020-11-25 21:31:34 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .profile {
|
2020-11-29 00:18:54 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .main {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
2020-11-29 00:18:54 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .banner-container {
|
|
|
|
position: relative;
|
|
|
|
height: 250px;
|
|
|
|
overflow: hidden;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
2020-11-29 12:34:39 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .banner {
|
|
|
|
height: 100%;
|
|
|
|
background-color: #4c5e6d;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
box-shadow: 0 0 128px rgba(0, 0, 0, 0.5) inset;
|
|
|
|
will-change: background-position;
|
2020-11-29 00:18:54 +09:00
|
|
|
}
|
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .fade {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 78px;
|
|
|
|
background: linear-gradient(transparent, rgba(#000, 0.7));
|
2020-11-29 00:18:54 +09:00
|
|
|
}
|
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .followed {
|
|
|
|
position: absolute;
|
|
|
|
top: 12px;
|
|
|
|
left: 12px;
|
|
|
|
padding: 4px 8px;
|
|
|
|
color: #fff;
|
|
|
|
background: rgba(0, 0, 0, 0.7);
|
|
|
|
font-size: 0.7em;
|
|
|
|
border-radius: 6px;
|
2020-11-29 00:18:54 +09:00
|
|
|
}
|
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .actions {
|
|
|
|
position: absolute;
|
|
|
|
top: 12px;
|
|
|
|
right: 12px;
|
|
|
|
-webkit-backdrop-filter: var(--blur, blur(8px));
|
|
|
|
backdrop-filter: var(--blur, blur(8px));
|
|
|
|
background: rgba(0, 0, 0, 0.2);
|
|
|
|
padding: 8px;
|
|
|
|
border-radius: 24px;
|
|
|
|
|
|
|
|
> .menu {
|
|
|
|
vertical-align: bottom;
|
|
|
|
height: 31px;
|
|
|
|
width: 31px;
|
|
|
|
color: #fff;
|
|
|
|
text-shadow: 0 0 8px #000;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
2020-11-29 00:18:54 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .koudoku {
|
|
|
|
margin-left: 4px;
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
2020-11-29 00:18:54 +09:00
|
|
|
}
|
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .title {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
padding: 0 0 8px 154px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
color: #fff;
|
2020-11-29 00:18:54 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .name {
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
line-height: 32px;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 1.8em;
|
|
|
|
text-shadow: 0 0 8px #000;
|
|
|
|
}
|
2020-11-29 00:18:54 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .bottom {
|
|
|
|
> * {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 16px;
|
|
|
|
line-height: 20px;
|
|
|
|
opacity: 0.8;
|
2020-11-29 00:18:54 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
&.username {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-10-17 20:12:00 +09:00
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
}
|
|
|
|
|
2020-10-17 20:12:00 +09:00
|
|
|
> .title {
|
2022-01-26 00:51:01 +09:00
|
|
|
display: none;
|
|
|
|
text-align: center;
|
|
|
|
padding: 50px 8px 16px 8px;
|
|
|
|
font-weight: bold;
|
|
|
|
border-bottom: solid 0.5px var(--divider);
|
2020-10-17 20:12:00 +09:00
|
|
|
|
|
|
|
> .bottom {
|
|
|
|
> * {
|
|
|
|
display: inline-block;
|
2022-01-26 00:51:01 +09:00
|
|
|
margin-right: 8px;
|
2020-10-17 20:12:00 +09:00
|
|
|
opacity: 0.8;
|
|
|
|
}
|
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
}
|
2020-10-17 20:12:00 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .avatar {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 170px;
|
|
|
|
left: 16px;
|
|
|
|
z-index: 2;
|
|
|
|
width: 120px;
|
|
|
|
height: 120px;
|
|
|
|
box-shadow: 1px 1px 3px rgba(#000, 0.2);
|
2020-01-30 04:37:25 +09:00
|
|
|
}
|
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .description {
|
|
|
|
padding: 24px 24px 24px 154px;
|
|
|
|
font-size: 0.95em;
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .empty {
|
|
|
|
margin: 0;
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
2020-10-17 20:12:00 +09:00
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .fields {
|
|
|
|
padding: 24px;
|
|
|
|
font-size: 0.9em;
|
|
|
|
border-top: solid 0.5px var(--divider);
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .field {
|
|
|
|
display: flex;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
align-items: center;
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
&:not(:last-child) {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .name {
|
|
|
|
width: 30%;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
font-weight: bold;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .value {
|
|
|
|
width: 70%;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2020-11-25 21:31:34 +09:00
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
&.system > .field > .name {
|
|
|
|
}
|
2020-11-29 00:18:54 +09:00
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .status {
|
|
|
|
display: flex;
|
|
|
|
padding: 24px;
|
|
|
|
border-top: solid 0.5px var(--divider);
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> a {
|
|
|
|
flex: 1;
|
|
|
|
text-align: center;
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
&.active {
|
|
|
|
color: var(--accent);
|
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> b {
|
|
|
|
display: block;
|
|
|
|
line-height: 16px;
|
|
|
|
}
|
2020-11-29 00:18:54 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> span {
|
|
|
|
font-size: 70%;
|
|
|
|
}
|
2020-10-17 20:12:00 +09:00
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .contents {
|
|
|
|
> .content {
|
|
|
|
margin-bottom: var(--margin);
|
|
|
|
}
|
2021-04-10 12:40:50 +09:00
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
}
|
2020-07-11 10:13:11 +09:00
|
|
|
|
|
|
|
&.max-width_500px {
|
2022-01-26 00:51:01 +09:00
|
|
|
> .main {
|
|
|
|
> .profile > .main {
|
|
|
|
> .banner-container {
|
|
|
|
height: 140px;
|
2020-07-11 10:13:11 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .fade {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .title {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-07-11 10:13:11 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
> .title {
|
2022-01-26 00:51:01 +09:00
|
|
|
display: block;
|
2020-07-11 10:13:11 +09:00
|
|
|
}
|
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .avatar {
|
|
|
|
top: 90px;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
width: 92px;
|
|
|
|
height: 92px;
|
|
|
|
margin: auto;
|
|
|
|
}
|
2020-07-11 10:13:11 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .description {
|
|
|
|
padding: 16px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2020-07-11 10:13:11 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .fields {
|
|
|
|
padding: 16px;
|
|
|
|
}
|
2020-07-11 10:13:11 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .status {
|
|
|
|
padding: 16px;
|
|
|
|
}
|
2020-07-11 10:13:11 +09:00
|
|
|
}
|
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
> .contents {
|
|
|
|
> .nav {
|
|
|
|
font-size: 80%;
|
|
|
|
}
|
2020-07-11 10:13:11 +09:00
|
|
|
}
|
|
|
|
}
|
2022-01-26 00:51:01 +09:00
|
|
|
}
|
2020-11-29 17:47:49 +09:00
|
|
|
|
2022-01-26 00:51:01 +09:00
|
|
|
&.wide {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
> .main {
|
|
|
|
width: 100%;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .sub {
|
|
|
|
max-width: 350px;
|
|
|
|
min-width: 350px;
|
|
|
|
margin-left: var(--margin);
|
2020-11-29 17:47:49 +09:00
|
|
|
}
|
2020-07-11 10:13:11 +09:00
|
|
|
}
|
2020-01-30 04:37:25 +09:00
|
|
|
}
|
|
|
|
</style>
|