card.css

Same filename in this branch
  1. main core/profiles/demo_umami/themes/umami/components/card/card.css
  2. main core/themes/claro/css/components/card.css
  3. main core/themes/admin/css/components/card.css
Same filename and directory in other branches
  1. 10 core/profiles/demo_umami/themes/umami/components/card/card.css
  2. 10 core/themes/claro/css/components/card.css
  3. 11.x core/profiles/demo_umami/themes/umami/components/card/card.css
  4. 11.x core/themes/claro/css/components/card.css
  5. 9 core/profiles/demo_umami/themes/umami/css/components/content/card/card.css
  6. 9 core/themes/claro/css/components/card.css
  7. 8.9.x core/profiles/demo_umami/themes/umami/css/components/content/card/card.css
  8. 8.9.x core/themes/claro/css/components/card.css
  9. 11.x core/themes/admin/css/components/card.css
  10. 11.x core/themes/default_admin/css/components/card.css

Card.

File

core/themes/default_admin/css/components/card.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Card.
  10. */
  11. :root {
  12. --card-bg-color: var(--color-white);
  13. --card-border-size: 1px;
  14. --card-border-color: var(--color-gray-200-o-80);
  15. --card-border-radius-size: var(--base-border-radius);
  16. --card-image-border-radius-size: calc(var(--card-border-radius-size) - var(--card-border-size));
  17. --card-box-shadow: 0 0.25rem 0.625rem rgb(0, 0, 0, 0.1);
  18. }
  19. .card-list {
  20. margin-block-end: var(--gin-spacing-xl);
  21. }
  22. .card {
  23. display: flex;
  24. overflow: hidden;
  25. flex-direction: column;
  26. align-items: stretch;
  27. justify-items: flex-start;
  28. padding: 0;
  29. border: 1px solid var(--gin-border-color-layer2);
  30. border-radius: var(--gin-border-m);
  31. }
  32. /* 588px theme screenshot width. 53.75rem is screenshot image width + toolbar width (15rem) + 2rem of margins. */
  33. .card--horizontal {
  34. /* 588px theme screenshot width */
  35. @media screen and (min-width: 36.75rem) {
  36. flex-direction: row;
  37. .card__image {
  38. flex-basis: 35%;
  39. border-start-start-radius: var(--card-image-border-radius-size);
  40. border-start-end-radius: 0;
  41. border-end-start-radius: var(--card-image-border-radius-size);
  42. border-end-end-radius: 0;
  43. }
  44. .card__content-wrapper {
  45. flex-basis: 65%;
  46. }
  47. /* Card content with image. */
  48. .card__image ~ .card__content-wrapper {
  49. padding-inline-start: var(--space-m);
  50. }
  51. }
  52. @media screen and (min-width: 85.375rem) {
  53. .card__image {
  54. flex-basis: 45%;
  55. }
  56. .card__content-wrapper {
  57. flex-basis: 55%;
  58. }
  59. }
  60. }
  61. /**
  62. * Card image.
  63. */
  64. .card__image {
  65. overflow: hidden;
  66. border-radius: var(--gin-border-m) var(--gin-border-m) 0 0;
  67. line-height: 0;
  68. @media (--admin-xsmall) {
  69. border-radius: var(--gin-border-m) 0 0 var(--gin-border-m);
  70. }
  71. }
  72. /**
  73. * Card content.
  74. */
  75. .card__content-wrapper {
  76. display: flex;
  77. flex-direction: column;
  78. flex-grow: 1;
  79. flex-shrink: 0;
  80. box-sizing: border-box;
  81. padding: var(--space-l);
  82. border-radius: 0 0 var(--gin-border-xs) var(--gin-border-xs);
  83. background-color: var(--gin-bg-layer);
  84. .gin--dark-mode
  85. @media (--admin-xsmall) {
  86. border-radius: 0 var(--gin-border-xs) var(--gin-border-xs) 0;
  87. }
  88. }
  89. .card__content {
  90. flex-grow: 1;
  91. }
  92. /**
  93. * Card content items (title, description).
  94. */
  95. .card__content-item {
  96. margin-block: 0 var(--space-m);
  97. &:last-child {
  98. margin-block-end: 0;
  99. }
  100. }
  101. /**
  102. * Card footer.
  103. */
  104. .card__footer {
  105. order: 100;
  106. margin-block-start: var(--space-l);
  107. .action-links {
  108. margin-block: 0;
  109. text-align: end;
  110. }
  111. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.