This commit is contained in:
parent
cbdabc5bb4
commit
10994c2361
|
@ -124,15 +124,5 @@ pre
|
||||||
overflow auto
|
overflow auto
|
||||||
tab-size 2
|
tab-size 2
|
||||||
|
|
||||||
mk-locker
|
|
||||||
display block
|
|
||||||
position fixed
|
|
||||||
top 0
|
|
||||||
left 0
|
|
||||||
z-index 65536
|
|
||||||
width 100%
|
|
||||||
height 100%
|
|
||||||
cursor wait
|
|
||||||
|
|
||||||
[data-fa]
|
[data-fa]
|
||||||
display inline-block
|
display inline-block
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="nav" :style="{ display: isOpen ? 'block' : 'none' }">
|
<div class="nav">
|
||||||
<div class="backdrop" @click="$parent.isDrawerOpening = false"></div>
|
<transition name="back">
|
||||||
<div class="body">
|
<div class="backdrop"
|
||||||
|
v-if="isOpen"
|
||||||
|
@click="$parent.isDrawerOpening = false"
|
||||||
|
@touchstart="$parent.isDrawerOpening = false"
|
||||||
|
></div>
|
||||||
|
</transition>
|
||||||
|
<transition name="nav">
|
||||||
|
<div class="body" v-if="isOpen">
|
||||||
<router-link class="me" v-if="os.isSignedIn" :to="`/${os.i.username}`">
|
<router-link class="me" v-if="os.isSignedIn" :to="`/${os.i.username}`">
|
||||||
<img class="avatar" :src="`${os.i.avatar_url}?thumbnail&size=128`" alt="avatar"/>
|
<img class="avatar" :src="`${os.i.avatar_url}?thumbnail&size=128`" alt="avatar"/>
|
||||||
<p class="name">{{ os.i.name }}</p>
|
<p class="name">{{ os.i.name }}</p>
|
||||||
|
@ -25,6 +32,7 @@
|
||||||
</div>
|
</div>
|
||||||
<a :href="aboutUrl"><p class="about">%i18n:mobile.tags.mk-ui-nav.about%</p></a>
|
<a :href="aboutUrl"><p class="about">%i18n:mobile.tags.mk-ui-nav.about%</p></a>
|
||||||
</div>
|
</div>
|
||||||
|
</transition>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -197,4 +205,26 @@ export default Vue.extend({
|
||||||
a
|
a
|
||||||
color #777
|
color #777
|
||||||
|
|
||||||
|
.nav-enter-active,
|
||||||
|
.nav-leave-active {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateX(0);
|
||||||
|
transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
|
||||||
|
}
|
||||||
|
.nav-enter,
|
||||||
|
.nav-leave-active {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateX(-240px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-enter-active,
|
||||||
|
.back-leave-active {
|
||||||
|
opacity: 1;
|
||||||
|
transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
|
||||||
|
}
|
||||||
|
.back-enter,
|
||||||
|
.back-leave-active {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
position relative
|
position relative
|
||||||
box-sizing border-box
|
box-sizing border-box
|
||||||
background-clip padding-box !important
|
background-clip padding-box !important
|
||||||
tap-highlight-color rgba($theme-color, 0.7)
|
tap-highlight-color transparent
|
||||||
-webkit-tap-highlight-color rgba($theme-color, 0.7)
|
-webkit-tap-highlight-color transparent
|
||||||
|
|
||||||
html, body
|
html, body
|
||||||
margin 0
|
margin 0
|
||||||
|
@ -26,6 +26,8 @@ a
|
||||||
text-decoration none
|
text-decoration none
|
||||||
color $theme-color
|
color $theme-color
|
||||||
cursor pointer
|
cursor pointer
|
||||||
|
tap-highlight-color rgba($theme-color, 0.7) !important
|
||||||
|
-webkit-tap-highlight-color rgba($theme-color, 0.7) !important
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
text-decoration underline
|
text-decoration underline
|
||||||
|
|
Loading…
Reference in New Issue