misskey/src/client/app/mobile/views/pages/user/index.vue

350 lines
8.3 KiB
Vue
Raw Normal View History

2018-02-15 10:33:34 +01:00
<template>
2018-02-22 09:32:58 +01:00
<mk-ui>
2019-02-20 16:02:23 +01:00
<template #header v-if="!fetching">
2019-03-02 00:13:09 +01:00
<img :src="avator" alt=""><mk-user-name :user="user" :key="user.id"/>
</template>
<div class="wwtwuxyh" v-if="!fetching">
<div class="is-suspended" v-if="user.isSuspended"><p><fa icon="exclamation-triangle"/> {{ $t('@.user-suspended') }}</p></div>
2019-05-13 19:50:23 +02:00
<div class="is-remote" v-if="user.host != null"><p><fa icon="exclamation-triangle"/> {{ $t('@.is-remote-user') }}<a :href="user.url" rel="nofollow noopener" target="_blank">{{ $t('@.view-on-remote') }}</a></p></div>
2018-02-15 10:33:34 +01:00
<header>
2018-05-07 10:05:05 +02:00
<div class="banner" :style="style"></div>
2018-02-15 10:33:34 +01:00
<div class="body">
<div class="top">
<a class="avatar">
<img :src="avator" alt="avatar"/>
2018-02-15 10:33:34 +01:00
</a>
<button class="menu" ref="menu" @click="menu"><fa icon="ellipsis-h"/></button>
2018-05-27 06:49:09 +02:00
<mk-follow-button v-if="$store.getters.isSignedIn && $store.state.i.id != user.id" :user="user"/>
2018-02-15 10:33:34 +01:00
</div>
<div class="title">
2019-03-02 00:13:09 +01:00
<h1><mk-user-name :user="user" :key="user.id"/></h1>
2019-04-24 21:32:01 +02:00
<span class="username"><mk-acct :user="user" :detail="true" :key="user.id"/></span>
<span class="followed" v-if="user.isFollowed">{{ $t('follows-you') }}</span>
2018-02-15 10:33:34 +01:00
</div>
2018-06-20 12:55:34 +02:00
<div class="description">
2019-03-02 00:13:09 +01:00
<mfm v-if="user.description" :text="user.description" :is-note="false" :author="user" :i="$store.state.i" :custom-emojis="user.emojis" :key="user.id"/>
2019-02-20 22:04:42 +01:00
<x-integrations :user="user" style="margin:20px 0;"/>
2018-06-20 12:55:34 +02:00
</div>
2018-12-11 12:18:12 +01:00
<div class="fields" v-if="user.fields">
<dl class="field" v-for="(field, i) in user.fields" :key="i">
2018-12-11 18:46:40 +01:00
<dt class="name">
<mfm :text="field.name" :should-break="false" :plain-text="true" :custom-emojis="user.emojis"/>
2018-12-11 18:46:40 +01:00
</dt>
2018-12-11 12:18:12 +01:00
<dd class="value">
<mfm :text="field.value" :author="user" :i="$store.state.i" :custom-emojis="user.emojis"/>
2018-12-11 12:18:12 +01:00
</dd>
</dl>
</div>
2018-02-15 10:33:34 +01:00
<div class="info">
Use PostgreSQL instead of MongoDB (#4572) * wip * Update note.ts * Update timeline.ts * Update core.ts * wip * Update generate-visibility-query.ts * wip * wip * wip * wip * wip * Update global-timeline.ts * wip * wip * wip * Update vote.ts * wip * wip * Update create.ts * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update files.ts * wip * wip * Update CONTRIBUTING.md * wip * wip * wip * wip * wip * wip * wip * wip * Update read-notification.ts * wip * wip * wip * wip * wip * wip * wip * Update cancel.ts * wip * wip * wip * Update show.ts * wip * wip * Update gen-id.ts * Update create.ts * Update id.ts * wip * wip * wip * wip * wip * wip * wip * Docker: Update files about Docker (#4599) * Docker: Use cache if files used by `yarn install` was not updated This patch reduces the number of times to installing node_modules. For example, `yarn install` step will be skipped when only ".config/default.yml" is updated. * Docker: Migrate MongoDB to Postgresql Misskey uses Postgresql as a database instead of Mongodb since version 11. * Docker: Uncomment about data persistence This patch will save a lot of databases. * wip * wip * wip * Update activitypub.ts * wip * wip * wip * Update logs.ts * wip * Update drive-file.ts * Update register.ts * wip * wip * Update mentions.ts * wip * wip * wip * Update recommendation.ts * wip * Update index.ts * wip * Update recommendation.ts * Doc: Update docker.ja.md and docker.en.md (#1) (#4608) Update how to set up misskey. * wip * :v: * wip * Update note.ts * Update postgre.ts * wip * wip * wip * wip * Update add-file.ts * wip * wip * wip * Clean up * Update logs.ts * wip * :pizza: * wip * Ad notes * wip * Update api-visibility.ts * Update note.ts * Update add-file.ts * tests * tests * Update postgre.ts * Update utils.ts * wip * wip * Refactor * wip * Refactor * wip * wip * Update show-users.ts * Update update-instance.ts * wip * Update feed.ts * Update outbox.ts * Update outbox.ts * Update user.ts * wip * Update list.ts * Update update-hashtag.ts * wip * Update update-hashtag.ts * Refactor * Update update.ts * wip * wip * :v: * clean up * docs * Update push.ts * wip * Update api.ts * wip * :v: * Update make-pagination-query.ts * :v: * Delete hashtags.ts * Update instances.ts * Update instances.ts * Update create.ts * Update search.ts * Update reversi-game.ts * Update signup.ts * Update user.ts * id * Update example.yml * :art: * objectid * fix * reversi * reversi * Fix bug of chart engine * Add test of chart engine * Improve test * Better testing * Improve chart engine * Refactor * Add test of chart engine * Refactor * Add chart test * Fix bug * コミットし忘れ * Refactoring * :v: * Add tests * Add test * Extarct note tests * Refactor * 存在しないユーザーにメンションできなくなっていた問題を修正 * Fix bug * Update update-meta.ts * Fix bug * Update mention.vue * Fix bug * Update meta.ts * Update CONTRIBUTING.md * Fix bug * Fix bug * Fix bug * Clean up * Clean up * Update notification.ts * Clean up * Add mute tests * Add test * Refactor * Add test * Fix test * Refactor * Refactor * Add tests * Update utils.ts * Update utils.ts * Fix test * Update package.json * Update update.ts * Update manifest.ts * Fix bug * Fix bug * Add test * :art: * Update endpoint permissions * Updaye permisison * Update person.ts #4299 * データベースと同期しないように * Fix bug * Fix bug * Update reversi-game.ts * Use a feature of Node v11.7.0 to extract a public key (#4644) * wip * wip * :v: * Refactoring #1540 * test * test * test * test * test * test * test * Fix bug * Fix test * :sushi: * wip * #4471 * Add test for #4335 * Refactor * Fix test * Add tests * :clock4: * Fix bug * Add test * Add test * rename * Fix bug
2019-04-07 14:50:36 +02:00
<p class="location" v-if="user.host === null && user.location">
<fa icon="map-marker"/>{{ user.location }}
2018-02-15 10:33:34 +01:00
</p>
Use PostgreSQL instead of MongoDB (#4572) * wip * Update note.ts * Update timeline.ts * Update core.ts * wip * Update generate-visibility-query.ts * wip * wip * wip * wip * wip * Update global-timeline.ts * wip * wip * wip * Update vote.ts * wip * wip * Update create.ts * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update files.ts * wip * wip * Update CONTRIBUTING.md * wip * wip * wip * wip * wip * wip * wip * wip * Update read-notification.ts * wip * wip * wip * wip * wip * wip * wip * Update cancel.ts * wip * wip * wip * Update show.ts * wip * wip * Update gen-id.ts * Update create.ts * Update id.ts * wip * wip * wip * wip * wip * wip * wip * Docker: Update files about Docker (#4599) * Docker: Use cache if files used by `yarn install` was not updated This patch reduces the number of times to installing node_modules. For example, `yarn install` step will be skipped when only ".config/default.yml" is updated. * Docker: Migrate MongoDB to Postgresql Misskey uses Postgresql as a database instead of Mongodb since version 11. * Docker: Uncomment about data persistence This patch will save a lot of databases. * wip * wip * wip * Update activitypub.ts * wip * wip * wip * Update logs.ts * wip * Update drive-file.ts * Update register.ts * wip * wip * Update mentions.ts * wip * wip * wip * Update recommendation.ts * wip * Update index.ts * wip * Update recommendation.ts * Doc: Update docker.ja.md and docker.en.md (#1) (#4608) Update how to set up misskey. * wip * :v: * wip * Update note.ts * Update postgre.ts * wip * wip * wip * wip * Update add-file.ts * wip * wip * wip * Clean up * Update logs.ts * wip * :pizza: * wip * Ad notes * wip * Update api-visibility.ts * Update note.ts * Update add-file.ts * tests * tests * Update postgre.ts * Update utils.ts * wip * wip * Refactor * wip * Refactor * wip * wip * Update show-users.ts * Update update-instance.ts * wip * Update feed.ts * Update outbox.ts * Update outbox.ts * Update user.ts * wip * Update list.ts * Update update-hashtag.ts * wip * Update update-hashtag.ts * Refactor * Update update.ts * wip * wip * :v: * clean up * docs * Update push.ts * wip * Update api.ts * wip * :v: * Update make-pagination-query.ts * :v: * Delete hashtags.ts * Update instances.ts * Update instances.ts * Update create.ts * Update search.ts * Update reversi-game.ts * Update signup.ts * Update user.ts * id * Update example.yml * :art: * objectid * fix * reversi * reversi * Fix bug of chart engine * Add test of chart engine * Improve test * Better testing * Improve chart engine * Refactor * Add test of chart engine * Refactor * Add chart test * Fix bug * コミットし忘れ * Refactoring * :v: * Add tests * Add test * Extarct note tests * Refactor * 存在しないユーザーにメンションできなくなっていた問題を修正 * Fix bug * Update update-meta.ts * Fix bug * Update mention.vue * Fix bug * Update meta.ts * Update CONTRIBUTING.md * Fix bug * Fix bug * Fix bug * Clean up * Clean up * Update notification.ts * Clean up * Add mute tests * Add test * Refactor * Add test * Fix test * Refactor * Refactor * Add tests * Update utils.ts * Update utils.ts * Fix test * Update package.json * Update update.ts * Update manifest.ts * Fix bug * Fix bug * Add test * :art: * Update endpoint permissions * Updaye permisison * Update person.ts #4299 * データベースと同期しないように * Fix bug * Fix bug * Update reversi-game.ts * Use a feature of Node v11.7.0 to extract a public key (#4644) * wip * wip * :v: * Refactoring #1540 * test * test * test * test * test * test * test * Fix bug * Fix test * :sushi: * wip * #4471 * Add test for #4335 * Refactor * Fix test * Add tests * :clock4: * Fix bug * Add test * Add test * rename * Fix bug
2019-04-07 14:50:36 +02:00
<p class="birthday" v-if="user.host === null && user.birthday">
<fa icon="birthday-cake"/>{{ user.birthday.replace('-', '年').replace('-', '月') + '日' }} ({{ $t('years-old', { age }) }})
2018-02-15 10:33:34 +01:00
</p>
</div>
<div class="status">
2019-02-16 02:58:44 +01:00
<router-link :to="user | userPage()">
2018-04-07 19:30:37 +02:00
<b>{{ user.notesCount | number }}</b>
<i>{{ $t('notes') }}</i>
2019-02-16 02:58:44 +01:00
</router-link>
<router-link :to="user | userPage('following')">
2018-03-29 07:48:47 +02:00
<b>{{ user.followingCount | number }}</b>
<i>{{ $t('following') }}</i>
2019-02-16 02:58:44 +01:00
</router-link>
<router-link :to="user | userPage('followers')">
2018-03-29 07:48:47 +02:00
<b>{{ user.followersCount | number }}</b>
<i>{{ $t('followers') }}</i>
2019-02-16 02:58:44 +01:00
</router-link>
2018-02-15 10:33:34 +01:00
</div>
</div>
</header>
2019-02-26 06:37:17 +01:00
<nav v-if="$route.name == 'user'" :class="{ shadow: $store.state.device.useShadow }">
<div class="nav-container">
<a :data-active="page == 'home'" @click="page = 'home'"><fa icon="home"/> {{ $t('overview') }}</a>
<a :data-active="page == 'notes'" @click="page = 'notes'"><fa :icon="['far', 'comment-alt']"/> {{ $t('timeline') }}</a>
<a :data-active="page == 'media'" @click="page = 'media'"><fa icon="image"/> {{ $t('media') }}</a>
</div>
</nav>
<main>
2019-02-16 02:58:44 +01:00
<template v-if="$route.name == 'user'">
2019-02-20 16:04:23 +01:00
<x-home v-if="page == 'home'" :user="user" :key="user.id"/>
<mk-user-timeline v-if="page == 'notes'" :user="user" :key="`tl:${user.id}`"/>
<mk-user-timeline v-if="page == 'media'" :user="user" :with-media="true" :key="`media:${user.id}`"/>
2019-02-16 02:58:44 +01:00
</template>
<router-view :user="user"></router-view>
</main>
</div>
2018-02-15 10:33:34 +01:00
</mk-ui>
</template>
<script lang="ts">
import Vue from 'vue';
2019-02-16 02:58:44 +01:00
import i18n from '../../../../i18n';
2018-02-22 14:03:44 +01:00
import * as age from 's-age';
2019-02-16 02:58:44 +01:00
import parseAcct from '../../../../../../misc/acct/parse';
import Progress from '../../../../common/scripts/loading';
import XUserMenu from '../../../../common/views/components/user-menu.vue';
import XHome from './home.vue';
import { getStaticImageUrl } from '../../../../common/scripts/get-static-image-url';
2019-02-20 05:38:48 +01:00
import XIntegrations from '../../../../common/views/components/integrations.vue';
2018-02-15 10:33:34 +01:00
export default Vue.extend({
i18n: i18n('mobile/views/pages/user.vue'),
2018-02-22 09:32:58 +01:00
components: {
2019-02-20 05:38:48 +01:00
XHome,
XIntegrations
2018-02-22 09:32:58 +01:00
},
2018-02-15 10:33:34 +01:00
data() {
return {
fetching: true,
2018-02-23 00:07:30 +01:00
user: null,
2019-02-16 02:58:44 +01:00
page: this.$route.name == 'user' ? 'home' : null
2018-02-15 10:33:34 +01:00
};
},
computed: {
age(): number {
Use PostgreSQL instead of MongoDB (#4572) * wip * Update note.ts * Update timeline.ts * Update core.ts * wip * Update generate-visibility-query.ts * wip * wip * wip * wip * wip * Update global-timeline.ts * wip * wip * wip * Update vote.ts * wip * wip * Update create.ts * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update files.ts * wip * wip * Update CONTRIBUTING.md * wip * wip * wip * wip * wip * wip * wip * wip * Update read-notification.ts * wip * wip * wip * wip * wip * wip * wip * Update cancel.ts * wip * wip * wip * Update show.ts * wip * wip * Update gen-id.ts * Update create.ts * Update id.ts * wip * wip * wip * wip * wip * wip * wip * Docker: Update files about Docker (#4599) * Docker: Use cache if files used by `yarn install` was not updated This patch reduces the number of times to installing node_modules. For example, `yarn install` step will be skipped when only ".config/default.yml" is updated. * Docker: Migrate MongoDB to Postgresql Misskey uses Postgresql as a database instead of Mongodb since version 11. * Docker: Uncomment about data persistence This patch will save a lot of databases. * wip * wip * wip * Update activitypub.ts * wip * wip * wip * Update logs.ts * wip * Update drive-file.ts * Update register.ts * wip * wip * Update mentions.ts * wip * wip * wip * Update recommendation.ts * wip * Update index.ts * wip * Update recommendation.ts * Doc: Update docker.ja.md and docker.en.md (#1) (#4608) Update how to set up misskey. * wip * :v: * wip * Update note.ts * Update postgre.ts * wip * wip * wip * wip * Update add-file.ts * wip * wip * wip * Clean up * Update logs.ts * wip * :pizza: * wip * Ad notes * wip * Update api-visibility.ts * Update note.ts * Update add-file.ts * tests * tests * Update postgre.ts * Update utils.ts * wip * wip * Refactor * wip * Refactor * wip * wip * Update show-users.ts * Update update-instance.ts * wip * Update feed.ts * Update outbox.ts * Update outbox.ts * Update user.ts * wip * Update list.ts * Update update-hashtag.ts * wip * Update update-hashtag.ts * Refactor * Update update.ts * wip * wip * :v: * clean up * docs * Update push.ts * wip * Update api.ts * wip * :v: * Update make-pagination-query.ts * :v: * Delete hashtags.ts * Update instances.ts * Update instances.ts * Update create.ts * Update search.ts * Update reversi-game.ts * Update signup.ts * Update user.ts * id * Update example.yml * :art: * objectid * fix * reversi * reversi * Fix bug of chart engine * Add test of chart engine * Improve test * Better testing * Improve chart engine * Refactor * Add test of chart engine * Refactor * Add chart test * Fix bug * コミットし忘れ * Refactoring * :v: * Add tests * Add test * Extarct note tests * Refactor * 存在しないユーザーにメンションできなくなっていた問題を修正 * Fix bug * Update update-meta.ts * Fix bug * Update mention.vue * Fix bug * Update meta.ts * Update CONTRIBUTING.md * Fix bug * Fix bug * Fix bug * Clean up * Clean up * Update notification.ts * Clean up * Add mute tests * Add test * Refactor * Add test * Fix test * Refactor * Refactor * Add tests * Update utils.ts * Update utils.ts * Fix test * Update package.json * Update update.ts * Update manifest.ts * Fix bug * Fix bug * Add test * :art: * Update endpoint permissions * Updaye permisison * Update person.ts #4299 * データベースと同期しないように * Fix bug * Fix bug * Update reversi-game.ts * Use a feature of Node v11.7.0 to extract a public key (#4644) * wip * wip * :v: * Refactoring #1540 * test * test * test * test * test * test * test * Fix bug * Fix test * :sushi: * wip * #4471 * Add test for #4335 * Refactor * Fix test * Add tests * :clock4: * Fix bug * Add test * Add test * rename * Fix bug
2019-04-07 14:50:36 +02:00
return age(this.user.birthday);
2018-05-07 10:05:05 +02:00
},
avator(): string {
return this.$store.state.device.disableShowingAnimatedImages
? getStaticImageUrl(this.user.avatarUrl)
: this.user.avatarUrl;
},
2018-05-07 10:05:05 +02:00
style(): any {
if (this.user.bannerUrl == null) return {};
return {
2019-04-08 12:56:42 +02:00
backgroundColor: this.user.bannerColor,
2018-05-07 10:05:05 +02:00
backgroundImage: `url(${ this.user.bannerUrl })`
};
2018-02-15 10:33:34 +01:00
}
},
2018-02-22 09:06:19 +01:00
watch: {
$route: 'fetch'
},
2018-02-22 13:23:10 +01:00
created() {
this.fetch();
},
2018-02-22 09:06:19 +01:00
methods: {
fetch() {
Progress.start();
2018-11-09 00:13:34 +01:00
this.$root.api('users/show', parseAcct(this.$route.params.user)).then(user => {
2018-02-22 09:06:19 +01:00
this.user = user;
this.fetching = false;
2018-02-16 05:11:54 +01:00
2018-02-22 09:06:19 +01:00
Progress.done();
2018-11-09 00:26:32 +01:00
document.title = `${Vue.filter('userName')(this.user)} | ${this.$root.instanceName}`;
2018-02-22 09:06:19 +01:00
});
},
menu() {
2019-01-19 11:16:48 +01:00
this.$root.new(XUserMenu, {
source: this.$refs.menu,
2019-01-19 11:16:48 +01:00
user: this.user
});
},
2018-02-15 10:33:34 +01:00
}
});
</script>
2018-02-22 09:32:58 +01:00
<style lang="stylus" scoped>
.wwtwuxyh
2018-09-28 04:18:56 +02:00
$bg = var(--face)
2018-04-28 03:59:37 +02:00
2018-04-19 11:54:34 +02:00
> .is-suspended
2018-04-15 11:38:40 +02:00
> .is-remote
2018-04-19 11:54:34 +02:00
&.is-suspended
color #570808
background #ffdbdb
&.is-remote
color #573c08
background #fff0db
2018-04-15 11:38:40 +02:00
> p
margin 0 auto
2018-04-19 19:09:53 +02:00
padding 14px
max-width 600px
2018-04-18 09:25:33 +02:00
font-size 14px
2018-04-15 11:38:40 +02:00
> a
font-weight bold
2018-04-16 08:17:20 +02:00
@media (max-width 500px)
2018-04-19 19:09:53 +02:00
padding 12px
2018-04-16 08:17:20 +02:00
font-size 12px
2018-02-15 10:33:34 +01:00
> header
2018-04-28 03:59:37 +02:00
background $bg
2018-02-15 10:33:34 +01:00
> .banner
padding-bottom 33.3%
2018-09-28 04:18:56 +02:00
background-color rgba(0, 0, 0, 0.1)
2018-02-15 10:33:34 +01:00
background-size cover
background-position center
> .body
padding 12px
margin 0 auto
max-width 600px
> .top
display flex
2018-02-15 10:33:34 +01:00
> .avatar
display block
width 25%
height 40px
> img
display block
position absolute
left -2px
bottom -2px
width 100%
2018-04-28 03:59:37 +02:00
background $bg
border 3px solid $bg
2018-02-15 10:33:34 +01:00
border-radius 6px
@media (min-width 500px)
left -4px
bottom -4px
2018-04-28 03:59:37 +02:00
border 4px solid $bg
2018-02-15 10:33:34 +01:00
border-radius 12px
> .menu
margin 0 0 0 auto
padding 8px
margin-right 8px
font-size 18px
color var(--text)
2018-08-22 08:54:22 +02:00
2018-02-15 10:33:34 +01:00
> .title
margin 8px 0
> h1
margin 0
line-height 22px
font-size 20px
2018-09-28 04:18:56 +02:00
color var(--mobileUserPageName)
2018-02-15 10:33:34 +01:00
> .username
display inline-block
line-height 20px
font-size 16px
font-weight bold
2018-09-28 04:18:56 +02:00
color var(--mobileUserPageAcct)
2018-02-15 10:33:34 +01:00
> .followed
margin-left 8px
padding 2px 4px
font-size 12px
2018-09-28 04:18:56 +02:00
color var(--mobileUserPageFollowedFg)
background var(--mobileUserPageFollowedBg)
2018-02-15 10:33:34 +01:00
border-radius 4px
> .description
margin 8px 0
2018-09-28 04:18:56 +02:00
color var(--mobileUserPageDescription)
2018-02-15 10:33:34 +01:00
2019-02-20 05:41:31 +01:00
@media (max-width 450px)
font-size 15px
2018-12-11 12:18:12 +01:00
> .fields
margin 8px 0
> .field
display flex
padding 0
margin 0
2018-12-11 18:46:40 +01:00
align-items center
2018-12-11 12:18:12 +01:00
> .name
padding 4px
margin 4px
width 30%
overflow hidden
white-space nowrap
text-overflow ellipsis
font-weight bold
color var(--mobileUserPageStatusHighlight)
> .value
padding 4px
margin 4px
width 70%
overflow hidden
white-space nowrap
text-overflow ellipsis
color var(--mobileUserPageStatusHighlight)
2018-02-15 10:33:34 +01:00
> .info
margin 8px 0
2019-02-20 16:37:58 +01:00
@media (max-width 450px)
font-size 15px
2018-02-15 10:33:34 +01:00
> p
display inline
margin 0 16px 0 0
2018-09-28 04:18:56 +02:00
color var(--text)
2018-02-15 10:33:34 +01:00
> i
margin-right 4px
> .status
> a
2018-09-28 04:18:56 +02:00
color var(--text)
2018-02-15 10:33:34 +01:00
&:not(:last-child)
margin-right 16px
> b
margin-right 4px
font-size 16px
2018-09-28 04:18:56 +02:00
color var(--mobileUserPageStatusHighlight)
2018-02-15 10:33:34 +01:00
> i
font-size 14px
2018-12-27 15:14:30 +01:00
> button
color var(--text)
> nav
2018-04-09 19:04:30 +02:00
position -webkit-sticky
position sticky
2018-04-27 14:06:28 +02:00
top 47px
2018-04-28 03:59:37 +02:00
background-color $bg
2018-08-19 19:05:57 +02:00
z-index 2
2018-04-09 19:04:30 +02:00
2019-02-26 06:37:17 +01:00
&.shadow
box-shadow 0 4px 4px var(--mobileUserPageHeaderShadow)
> .nav-container
2018-02-15 10:33:34 +01:00
display flex
justify-content center
margin 0 auto
max-width 616px
2018-02-15 10:33:34 +01:00
> a
display block
flex 1 1
text-align center
2018-04-28 03:59:37 +02:00
line-height 48px
font-size 12px
2018-02-15 10:33:34 +01:00
text-decoration none
2018-09-28 04:18:56 +02:00
color var(--text)
2018-02-15 10:33:34 +01:00
border-bottom solid 2px transparent
2018-04-28 03:59:37 +02:00
@media (min-width 400px)
line-height 52px
font-size 14px
2018-04-26 07:38:37 +02:00
&[data-active]
2018-02-15 10:33:34 +01:00
font-weight bold
2018-09-26 13:19:35 +02:00
color var(--primary)
border-color var(--primary)
2018-02-15 10:33:34 +01:00
</style>