VBanner.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. .v-banner {
  2. display: grid;
  3. flex: 1 1;
  4. font-size: 0.875rem;
  5. grid-template-areas: "prepend content actions";
  6. grid-template-columns: max-content auto max-content;
  7. grid-template-rows: max-content max-content;
  8. line-height: 1.375rem;
  9. overflow: hidden;
  10. padding-inline-start: 16px;
  11. padding-inline-end: 8px;
  12. padding-top: 16px;
  13. padding-bottom: 16px;
  14. position: relative;
  15. width: 100%;
  16. border-color: rgba(var(--v-border-color), var(--v-border-opacity));
  17. border-style: solid;
  18. border-width: 0 0 thin 0;
  19. 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));
  20. border-radius: 0;
  21. background: rgb(var(--v-theme-surface));
  22. color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));
  23. }
  24. .v-banner--border {
  25. border-width: thin;
  26. box-shadow: none;
  27. }
  28. .v-banner--absolute {
  29. position: absolute;
  30. }
  31. .v-banner--fixed {
  32. position: fixed;
  33. }
  34. .v-banner--sticky {
  35. position: sticky;
  36. }
  37. .v-banner--rounded {
  38. border-radius: 4px;
  39. }
  40. .v-banner--stacked:not(.v-banner--one-line) {
  41. grid-template-areas: "prepend content" ". actions";
  42. }
  43. .v-banner--stacked .v-banner-text {
  44. padding-inline-end: 36px;
  45. }
  46. .v-banner--density-default .v-banner-actions {
  47. margin-bottom: -8px;
  48. }
  49. .v-banner--density-default.v-banner--one-line {
  50. padding-top: 8px;
  51. padding-bottom: 8px;
  52. }
  53. .v-banner--density-default.v-banner--one-line .v-banner-actions {
  54. margin-bottom: 0;
  55. }
  56. .v-banner--density-default.v-banner--one-line {
  57. padding-top: 10px;
  58. }
  59. .v-banner--density-default.v-banner--two-line {
  60. padding-top: 16px;
  61. padding-bottom: 16px;
  62. }
  63. .v-banner--density-default.v-banner--three-line {
  64. padding-top: 24px;
  65. padding-bottom: 16px;
  66. }
  67. .v-banner--density-default:not(.v-banner--one-line) .v-banner-actions, .v-banner--density-default.v-banner--two-line .v-banner-actions, .v-banner--density-default.v-banner--three-line .v-banner-actions {
  68. margin-top: 20px;
  69. }
  70. .v-banner--density-comfortable .v-banner-actions {
  71. margin-bottom: -4px;
  72. }
  73. .v-banner--density-comfortable.v-banner--one-line {
  74. padding-top: 4px;
  75. padding-bottom: 4px;
  76. }
  77. .v-banner--density-comfortable.v-banner--one-line .v-banner-actions {
  78. margin-bottom: 0;
  79. }
  80. .v-banner--density-comfortable.v-banner--two-line {
  81. padding-top: 12px;
  82. padding-bottom: 12px;
  83. }
  84. .v-banner--density-comfortable.v-banner--three-line {
  85. padding-top: 20px;
  86. padding-bottom: 12px;
  87. }
  88. .v-banner--density-comfortable:not(.v-banner--one-line) .v-banner-actions, .v-banner--density-comfortable.v-banner--two-line .v-banner-actions, .v-banner--density-comfortable.v-banner--three-line .v-banner-actions {
  89. margin-top: 16px;
  90. }
  91. .v-banner--density-compact .v-banner-actions {
  92. margin-bottom: 0px;
  93. }
  94. .v-banner--density-compact.v-banner--one-line {
  95. padding-top: 0px;
  96. padding-bottom: 0px;
  97. }
  98. .v-banner--density-compact.v-banner--one-line .v-banner-actions {
  99. margin-bottom: 0;
  100. }
  101. .v-banner--density-compact.v-banner--two-line {
  102. padding-top: 8px;
  103. padding-bottom: 8px;
  104. }
  105. .v-banner--density-compact.v-banner--three-line {
  106. padding-top: 16px;
  107. padding-bottom: 8px;
  108. }
  109. .v-banner--density-compact:not(.v-banner--one-line) .v-banner-actions, .v-banner--density-compact.v-banner--two-line .v-banner-actions, .v-banner--density-compact.v-banner--three-line .v-banner-actions {
  110. margin-top: 12px;
  111. }
  112. .v-banner--sticky {
  113. top: 0;
  114. }
  115. .v-banner__content {
  116. grid-area: content;
  117. }
  118. .v-banner__prepend {
  119. align-self: flex-start;
  120. grid-area: prepend;
  121. margin-inline-end: 24px;
  122. }
  123. .v-banner-actions {
  124. align-self: flex-end;
  125. display: flex;
  126. flex: 0 1;
  127. grid-area: actions;
  128. justify-content: flex-end;
  129. }
  130. .v-banner--two-line .v-banner-actions, .v-banner--three-line .v-banner-actions {
  131. margin-top: 20px;
  132. }
  133. .v-banner-text {
  134. -webkit-box-orient: vertical;
  135. display: -webkit-box;
  136. padding-inline-end: 90px;
  137. overflow: hidden;
  138. }
  139. .v-banner--one-line .v-banner-text {
  140. -webkit-line-clamp: 1;
  141. }
  142. .v-banner--two-line .v-banner-text {
  143. -webkit-line-clamp: 2;
  144. }
  145. .v-banner--three-line .v-banner-text {
  146. -webkit-line-clamp: 3;
  147. }
  148. .v-banner--two-line .v-banner-text, .v-banner--three-line .v-banner-text {
  149. align-self: flex-start;
  150. }