Toast.vue 753 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div class="toast-container">
  3. <div class="toast">
  4. <slot></slot>
  5. </div>
  6. </div>
  7. </template>
  8. <style lang="sass">
  9. .toast-container {
  10. display: block;
  11. position: fixed;
  12. z-index: 10000;
  13. }
  14. .toast {
  15. border-radius: 2px;
  16. top: 0;
  17. width: auto;
  18. clear: both;
  19. margin-top: 10px;
  20. position: relative;
  21. max-width: 100%;
  22. height: auto;
  23. min-height: 48px;
  24. line-height: 1.5em;
  25. word-break: break-all;
  26. background-color: #323232;
  27. padding: 10px 25px;
  28. font-size: 1.1rem;
  29. font-weight: 300;
  30. color: #fff;
  31. display: flex;
  32. align-items: center;
  33. justify-content: space-between;
  34. box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
  35. }
  36. </style>