You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
957 B

  1. <template lang='pug'>
  2. v-snackbar.nav-notify(
  3. :color='notification.style'
  4. top
  5. multi-line
  6. auto-height
  7. v-model='notificationState'
  8. )
  9. .text-xs-left
  10. v-icon.mr-3(dark) {{ notification.icon }}
  11. span {{ notification.message }}
  12. </template>
  13. <script>
  14. import { get, sync } from 'vuex-pathify'
  15. export default {
  16. data() {
  17. return { }
  18. },
  19. computed: {
  20. notification: get('notification'),
  21. notificationState: sync('notification@isActive')
  22. }
  23. }
  24. </script>
  25. <style lang='scss'>
  26. .nav-notify {
  27. top: 60px;
  28. z-index: 999;
  29. .v-snack__content {
  30. position: relative;
  31. &::after {
  32. content: '';
  33. display: block;
  34. width: 100%;
  35. height: 2px;
  36. background-color: rgba(255,255,255,.4);
  37. position: absolute;
  38. bottom: 0;
  39. left: 0;
  40. animation: nav-notify-anim 6s linear;
  41. }
  42. }
  43. }
  44. @keyframes nav-notify-anim {
  45. 0% {
  46. width: 100%;
  47. }
  48. 100% {
  49. width: 0%;
  50. }
  51. }
  52. </style>