From 10994c23615bb01e48e524ebbdd2c9b0aa0b9899 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 23 Feb 2018 23:30:30 +0900 Subject: [PATCH] :v: --- src/web/app/app.styl | 10 --- .../app/mobile/views/components/ui.nav.vue | 80 +++++++++++++------ src/web/style.styl | 6 +- 3 files changed, 59 insertions(+), 37 deletions(-) diff --git a/src/web/app/app.styl b/src/web/app/app.styl index c441a445f..431b9daa6 100644 --- a/src/web/app/app.styl +++ b/src/web/app/app.styl @@ -124,15 +124,5 @@ pre overflow auto tab-size 2 -mk-locker - display block - position fixed - top 0 - left 0 - z-index 65536 - width 100% - height 100% - cursor wait - [data-fa] display inline-block diff --git a/src/web/app/mobile/views/components/ui.nav.vue b/src/web/app/mobile/views/components/ui.nav.vue index 9fe0864aa..a3c0042c3 100644 --- a/src/web/app/mobile/views/components/ui.nav.vue +++ b/src/web/app/mobile/views/components/ui.nav.vue @@ -1,30 +1,38 @@ @@ -197,4 +205,26 @@ export default Vue.extend({ a 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; +} + diff --git a/src/web/style.styl b/src/web/style.styl index c25fc8fb5..6d1e53e5a 100644 --- a/src/web/style.styl +++ b/src/web/style.styl @@ -12,8 +12,8 @@ position relative box-sizing border-box background-clip padding-box !important - tap-highlight-color rgba($theme-color, 0.7) - -webkit-tap-highlight-color rgba($theme-color, 0.7) + tap-highlight-color transparent + -webkit-tap-highlight-color transparent html, body margin 0 @@ -26,6 +26,8 @@ a text-decoration none color $theme-color cursor pointer + tap-highlight-color rgba($theme-color, 0.7) !important + -webkit-tap-highlight-color rgba($theme-color, 0.7) !important &:hover text-decoration underline