VSnackbar.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. .v-snackbar {
  2. justify-content: center;
  3. z-index: 10000;
  4. margin: 8px;
  5. margin-inline-end: calc(8px + var(--v-scrollbar-offset));
  6. }
  7. .v-snackbar:not(.v-snackbar--centered):not(.v-snackbar--top) {
  8. align-items: flex-end;
  9. }
  10. .v-snackbar__wrapper {
  11. align-items: center;
  12. display: flex;
  13. max-width: 672px;
  14. min-height: 48px;
  15. min-width: 344px;
  16. padding: 0;
  17. border-radius: 4px;
  18. }
  19. .v-snackbar--variant-plain, .v-snackbar--variant-outlined, .v-snackbar--variant-text, .v-snackbar--variant-tonal {
  20. background: transparent;
  21. color: inherit;
  22. }
  23. .v-snackbar--variant-plain {
  24. opacity: 0.62;
  25. }
  26. .v-snackbar--variant-plain:focus, .v-snackbar--variant-plain:hover {
  27. opacity: 1;
  28. }
  29. .v-snackbar--variant-plain .v-snackbar__overlay {
  30. display: none;
  31. }
  32. .v-snackbar--variant-elevated, .v-snackbar--variant-flat {
  33. background: rgb(var(--v-theme-surface-variant));
  34. color: rgb(var(--v-theme-on-surface-variant));
  35. }
  36. .v-snackbar--variant-elevated {
  37. box-shadow: 0px 3px 5px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 6px 10px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 1px 18px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.12));
  38. }
  39. .v-snackbar--variant-flat {
  40. box-shadow: 0px 0px 0px 0px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 0px 0px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 0px 0px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.12));
  41. }
  42. .v-snackbar--variant-outlined {
  43. border: thin solid currentColor;
  44. }
  45. .v-snackbar--variant-text .v-snackbar__overlay {
  46. background: currentColor;
  47. }
  48. .v-snackbar--variant-tonal .v-snackbar__underlay {
  49. background: currentColor;
  50. opacity: var(--v-activated-opacity);
  51. border-radius: inherit;
  52. position: absolute;
  53. top: 0;
  54. right: 0;
  55. bottom: 0;
  56. left: 0;
  57. pointer-events: none;
  58. }
  59. .v-snackbar__content {
  60. flex-grow: 1;
  61. font-size: 0.875rem;
  62. font-weight: 400;
  63. letter-spacing: 0.0178571429em;
  64. line-height: 1.25rem;
  65. margin-right: auto;
  66. padding: 14px 16px;
  67. text-align: initial;
  68. }
  69. .v-snackbar__actions {
  70. align-items: center;
  71. align-self: center;
  72. display: flex;
  73. margin-inline-end: 8px;
  74. }
  75. .v-snackbar__actions > .v-btn {
  76. padding: 0 8px;
  77. min-width: auto;
  78. }
  79. .v-snackbar--absolute {
  80. position: absolute;
  81. z-index: 1;
  82. }
  83. .v-snackbar--multi-line .v-snackbar__wrapper {
  84. min-height: 68px;
  85. }
  86. .v-snackbar--vertical .v-snackbar__wrapper {
  87. flex-direction: column;
  88. }
  89. .v-snackbar--vertical .v-snackbar__wrapper .v-snackbar__actions {
  90. align-self: flex-end;
  91. margin-bottom: 8px;
  92. }
  93. .v-snackbar-transition-enter-active, .v-snackbar-transition-leave-active {
  94. transition-duration: 0.15s;
  95. transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
  96. }
  97. .v-snackbar-transition-enter-active {
  98. transition-property: opacity, transform;
  99. }
  100. .v-snackbar-transition-enter-from {
  101. opacity: 0;
  102. transform: scale(0.8);
  103. }
  104. .v-snackbar-transition-leave-active {
  105. transition-property: opacity;
  106. }
  107. .v-snackbar-transition-leave-to {
  108. opacity: 0;
  109. }