VBadge.css 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .v-badge {
  2. display: inline-block;
  3. line-height: 1;
  4. }
  5. .v-badge__badge {
  6. align-items: center;
  7. display: inline-flex;
  8. border-radius: 10px;
  9. font-family: "Roboto", sans-serif;
  10. font-size: 0.75rem;
  11. font-weight: 500;
  12. height: 1.25rem;
  13. justify-content: center;
  14. min-width: 20px;
  15. padding: 4px 6px;
  16. pointer-events: auto;
  17. position: absolute;
  18. text-align: center;
  19. text-indent: 0;
  20. transition: 0.225s cubic-bezier(0.4, 0, 0.2, 1);
  21. white-space: nowrap;
  22. }
  23. .v-badge__badge {
  24. background: rgb(var(--v-theme-surface-variant));
  25. color: rgba(var(--v-theme-on-surface-variant), var(--v-high-emphasis-opacity));
  26. }
  27. .v-badge__badge:has(.v-icon) {
  28. padding: 4px 6px;
  29. }
  30. .v-badge--bordered .v-badge__badge::after {
  31. border-radius: inherit;
  32. border-style: solid;
  33. border-width: 2px;
  34. bottom: 0;
  35. color: rgb(var(--v-theme-background));
  36. content: "";
  37. left: 0;
  38. position: absolute;
  39. right: 0;
  40. top: 0;
  41. transform: scale(1.05);
  42. }
  43. .v-badge--dot .v-badge__badge {
  44. border-radius: 4.5px;
  45. height: 9px;
  46. min-width: 0;
  47. padding: 0;
  48. width: 9px;
  49. }
  50. .v-badge--dot .v-badge__badge::after {
  51. border-width: 1.5px;
  52. }
  53. .v-badge--inline .v-badge__badge {
  54. position: relative;
  55. vertical-align: middle;
  56. }
  57. .v-badge__badge .v-icon {
  58. color: inherit;
  59. font-size: 0.75rem;
  60. margin: 0 -2px;
  61. }
  62. .v-badge__badge img,
  63. .v-badge__badge .v-img {
  64. height: 100%;
  65. width: 100%;
  66. }
  67. .v-badge__wrapper {
  68. display: flex;
  69. position: relative;
  70. }
  71. .v-badge--inline .v-badge__wrapper {
  72. align-items: center;
  73. display: inline-flex;
  74. justify-content: center;
  75. margin: 0 4px;
  76. }