VCard.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. .v-card {
  2. display: block;
  3. overflow: hidden;
  4. overflow-wrap: break-word;
  5. position: relative;
  6. padding: 0;
  7. text-decoration: none;
  8. transition-duration: 0.28s;
  9. transition-property: box-shadow, opacity, background;
  10. transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  11. z-index: 0;
  12. }
  13. .v-card {
  14. border-color: rgba(var(--v-border-color), var(--v-border-opacity));
  15. border-style: solid;
  16. border-width: 0;
  17. }
  18. .v-card--border {
  19. border-width: thin;
  20. box-shadow: none;
  21. }
  22. .v-card--absolute {
  23. position: absolute;
  24. }
  25. .v-card--fixed {
  26. position: fixed;
  27. }
  28. .v-card {
  29. border-radius: 4px;
  30. }
  31. .v-card:hover > .v-card__overlay {
  32. opacity: calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier));
  33. }
  34. .v-card:focus-visible > .v-card__overlay {
  35. opacity: calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier));
  36. }
  37. @supports not selector(:focus-visible) {
  38. .v-card:focus > .v-card__overlay {
  39. opacity: calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier));
  40. }
  41. }
  42. .v-card--active > .v-card__overlay, .v-card[aria-haspopup=menu][aria-expanded=true] > .v-card__overlay {
  43. opacity: calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier));
  44. }
  45. .v-card--active:hover > .v-card__overlay, .v-card[aria-haspopup=menu][aria-expanded=true]:hover > .v-card__overlay {
  46. opacity: calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier));
  47. }
  48. .v-card--active:focus-visible > .v-card__overlay, .v-card[aria-haspopup=menu][aria-expanded=true]:focus-visible > .v-card__overlay {
  49. opacity: calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier));
  50. }
  51. @supports not selector(:focus-visible) {
  52. .v-card--active:focus > .v-card__overlay, .v-card[aria-haspopup=menu][aria-expanded=true]:focus > .v-card__overlay {
  53. opacity: calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier));
  54. }
  55. }
  56. .v-card--variant-plain, .v-card--variant-outlined, .v-card--variant-text, .v-card--variant-tonal {
  57. background: transparent;
  58. color: inherit;
  59. }
  60. .v-card--variant-plain {
  61. opacity: 0.62;
  62. }
  63. .v-card--variant-plain:focus, .v-card--variant-plain:hover {
  64. opacity: 1;
  65. }
  66. .v-card--variant-plain .v-card__overlay {
  67. display: none;
  68. }
  69. .v-card--variant-elevated, .v-card--variant-flat {
  70. background: rgb(var(--v-theme-surface));
  71. color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));
  72. }
  73. .v-card--variant-elevated {
  74. box-shadow: 0px 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 1px 1px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 1px 3px 0px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, 0.12));
  75. }
  76. .v-card--variant-flat {
  77. 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-ambient-opacity, rgba(0, 0, 0, 0.12));
  78. }
  79. .v-card--variant-outlined {
  80. border: thin solid currentColor;
  81. }
  82. .v-card--variant-text .v-card__overlay {
  83. background: currentColor;
  84. }
  85. .v-card--variant-tonal .v-card__underlay {
  86. background: currentColor;
  87. opacity: var(--v-activated-opacity);
  88. border-radius: inherit;
  89. top: 0;
  90. right: 0;
  91. bottom: 0;
  92. left: 0;
  93. pointer-events: none;
  94. }
  95. .v-card .v-card__underlay {
  96. position: absolute;
  97. }
  98. .v-card--disabled {
  99. pointer-events: none;
  100. user-select: none;
  101. }
  102. .v-card--disabled > :not(.v-card__loader) {
  103. opacity: 0.6;
  104. }
  105. .v-card--flat {
  106. box-shadow: none;
  107. }
  108. .v-card--hover {
  109. cursor: pointer;
  110. }
  111. .v-card--hover::before, .v-card--hover::after {
  112. border-radius: inherit;
  113. bottom: 0;
  114. content: "";
  115. display: block;
  116. left: 0;
  117. pointer-events: none;
  118. position: absolute;
  119. right: 0;
  120. top: 0;
  121. transition: inherit;
  122. }
  123. .v-card--hover::before {
  124. opacity: 1;
  125. z-index: -1;
  126. }
  127. .v-card--hover::before {
  128. box-shadow: 0px 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 1px 1px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 1px 3px 0px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, 0.12));
  129. }
  130. .v-card--hover::after {
  131. z-index: 1;
  132. opacity: 0;
  133. }
  134. .v-card--hover::after {
  135. box-shadow: 0px 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, 0.12));
  136. }
  137. .v-card--hover:hover::after {
  138. opacity: 1;
  139. }
  140. .v-card--hover:hover::before {
  141. opacity: 0;
  142. }
  143. .v-card--hover:hover {
  144. box-shadow: 0px 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 3px 14px 2px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, 0.12));
  145. }
  146. .v-card--link {
  147. cursor: pointer;
  148. }
  149. .v-card-actions {
  150. align-items: center;
  151. display: flex;
  152. flex: none;
  153. min-height: 52px;
  154. padding: 0.5rem;
  155. gap: 0.5rem;
  156. }
  157. .v-card-item {
  158. align-items: center;
  159. display: grid;
  160. flex: none;
  161. grid-template-areas: "prepend content append";
  162. grid-template-columns: max-content auto max-content;
  163. padding: 0.625rem 1rem;
  164. }
  165. .v-card-item + .v-card-text {
  166. padding-top: 0;
  167. }
  168. .v-card-item__prepend, .v-card-item__append {
  169. align-items: center;
  170. display: flex;
  171. }
  172. .v-card-item__prepend {
  173. grid-area: prepend;
  174. padding-inline-end: 0.5rem;
  175. }
  176. .v-card-item__append {
  177. grid-area: append;
  178. padding-inline-start: 0.5rem;
  179. }
  180. .v-card-item__content {
  181. align-self: center;
  182. grid-area: content;
  183. overflow: hidden;
  184. }
  185. .v-card-title {
  186. display: block;
  187. flex: none;
  188. font-size: 1.25rem;
  189. font-weight: 500;
  190. hyphens: auto;
  191. letter-spacing: 0.0125em;
  192. min-width: 0;
  193. overflow-wrap: normal;
  194. overflow: hidden;
  195. padding: 0.5rem 1rem;
  196. text-overflow: ellipsis;
  197. text-transform: none;
  198. white-space: nowrap;
  199. word-break: normal;
  200. word-wrap: break-word;
  201. }
  202. .v-card .v-card-title {
  203. line-height: 1.6;
  204. }
  205. .v-card--density-comfortable .v-card-title {
  206. line-height: 1.75rem;
  207. }
  208. .v-card--density-compact .v-card-title {
  209. line-height: 1.55rem;
  210. }
  211. .v-card-item .v-card-title {
  212. padding: 0;
  213. }
  214. .v-card-title + .v-card-text,
  215. .v-card-title + .v-card-actions {
  216. padding-top: 0;
  217. }
  218. .v-card-subtitle {
  219. display: block;
  220. flex: none;
  221. font-size: 0.875rem;
  222. font-weight: 400;
  223. letter-spacing: 0.0178571429em;
  224. opacity: var(--v-card-subtitle-opacity, var(--v-medium-emphasis-opacity));
  225. overflow: hidden;
  226. padding: 0 1rem;
  227. text-overflow: ellipsis;
  228. text-transform: none;
  229. white-space: nowrap;
  230. }
  231. .v-card .v-card-subtitle {
  232. line-height: 1.425;
  233. }
  234. .v-card--density-comfortable .v-card-subtitle {
  235. line-height: 1.125rem;
  236. }
  237. .v-card--density-compact .v-card-subtitle {
  238. line-height: 1rem;
  239. }
  240. .v-card-item .v-card-subtitle {
  241. padding: 0 0 0.25rem;
  242. }
  243. .v-card-text {
  244. flex: 1 1 auto;
  245. font-size: 0.875rem;
  246. font-weight: 400;
  247. letter-spacing: 0.0178571429em;
  248. opacity: var(--v-card-text-opacity, 1);
  249. padding: 1rem;
  250. text-transform: none;
  251. }
  252. .v-card .v-card-text {
  253. line-height: 1.425;
  254. }
  255. .v-card--density-comfortable .v-card-text {
  256. line-height: 1.2rem;
  257. }
  258. .v-card--density-compact .v-card-text {
  259. line-height: 1.15rem;
  260. }
  261. .v-card__image {
  262. display: flex;
  263. height: 100%;
  264. flex: 1 1 auto;
  265. left: 0;
  266. overflow: hidden;
  267. position: absolute;
  268. top: 0;
  269. width: 100%;
  270. z-index: -1;
  271. }
  272. .v-card__content {
  273. border-radius: inherit;
  274. overflow: hidden;
  275. position: relative;
  276. }
  277. .v-card__loader {
  278. bottom: auto;
  279. top: 0;
  280. left: 0;
  281. position: absolute;
  282. right: 0;
  283. width: 100%;
  284. z-index: 1;
  285. }
  286. .v-card__overlay {
  287. background-color: currentColor;
  288. border-radius: inherit;
  289. position: absolute;
  290. top: 0;
  291. right: 0;
  292. bottom: 0;
  293. left: 0;
  294. pointer-events: none;
  295. opacity: 0;
  296. transition: opacity 0.2s ease-in-out;
  297. }