🎨
This commit is contained in:
parent
eaec936fa6
commit
d279f8e9ff
@ -24,7 +24,7 @@ export default Vue.extend({
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
anime({
|
anime({
|
||||||
targets: this.$el,
|
targets: this.$el,
|
||||||
bottom: '-72px',
|
bottom: `-${this.$el.offsetHeight}px`,
|
||||||
duration: 500,
|
duration: 500,
|
||||||
easing: 'easeOutQuad',
|
easing: 'easeOutQuad',
|
||||||
complete: () => this.$destroy()
|
complete: () => this.$destroy()
|
||||||
@ -37,14 +37,16 @@ export default Vue.extend({
|
|||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
.mk-notify
|
.mk-notify
|
||||||
|
$height = 78px
|
||||||
|
|
||||||
position fixed
|
position fixed
|
||||||
z-index 1024
|
z-index 1024
|
||||||
bottom -72px
|
bottom -($height)
|
||||||
left 0
|
left 0
|
||||||
right 0
|
right 0
|
||||||
width 100%
|
width 100%
|
||||||
max-width 500px
|
max-width 500px
|
||||||
height 72px
|
height $height
|
||||||
margin 0 auto
|
margin 0 auto
|
||||||
padding 8px
|
padding 8px
|
||||||
pointer-events none
|
pointer-events none
|
||||||
@ -55,6 +57,7 @@ export default Vue.extend({
|
|||||||
-webkit-backdrop-filter blur(2px)
|
-webkit-backdrop-filter blur(2px)
|
||||||
backdrop-filter blur(2px)
|
backdrop-filter blur(2px)
|
||||||
background-color rgba(#000, 0.5)
|
background-color rgba(#000, 0.5)
|
||||||
border-radius 6px
|
border-radius 7px
|
||||||
|
overflow hidden
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user