card.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/2815083
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Card.
  10. */
  11. .card {
  12. display: flex;
  13. flex-direction: column;
  14. align-items: stretch;
  15. justify-items: flex-start;
  16. padding: 0;
  17. border: 1px solid rgba(212, 212, 218, 0.8);
  18. border-radius: 2px;
  19. background-color: #fff;
  20. box-shadow: 0
  21. 4px
  22. 10px
  23. rgba(0, 0, 0, 0.1);
  24. }
  25. /* 588px theme screenshot width */
  26. @media screen and (min-width: 36.75rem) {
  27. .card--horizontal {
  28. flex-direction: row;
  29. }
  30. .toolbar-tray-open.toolbar-vertical.toolbar-fixed .card--horizontal {
  31. flex-direction: column;
  32. }
  33. }
  34. /* 53.75rem it is width of screenshot image + toolbar width(15rem) + 2rem of margins. */
  35. @media screen and (min-width: 53.75rem) {
  36. .toolbar-tray-open.toolbar-vertical.toolbar-fixed .card--horizontal {
  37. flex-direction: row;
  38. }
  39. }
  40. /**
  41. * Card image.
  42. */
  43. .card__image {
  44. overflow: hidden;
  45. border-radius: 1px 1px 0 0;
  46. line-height: 0;
  47. }
  48. @media screen and (min-width: 36.75rem) {
  49. .card--horizontal .card__image {
  50. flex-basis: 35%;
  51. border-radius: 1px 0 0 1px; /* LTR */
  52. }
  53. [dir="rtl"] .card--horizontal .card__image {
  54. border-radius: 0 1px 1px 0;
  55. }
  56. }
  57. /* 53.75rem it is width of screenshot image + toolbar width(15rem) + 2rem of margins. */
  58. @media screen and (max-width: 53.75rem) {
  59. .toolbar-tray-open.toolbar-vertical.toolbar-fixed .card--horizontal .card__image {
  60. flex-basis: auto;
  61. }
  62. }
  63. @media screen and (min-width: 85.375rem) {
  64. .card--horizontal .card__image {
  65. flex-basis: 45%;
  66. }
  67. /* .card--vertical .card__image {
  68. flex-basis: auto;
  69. } */
  70. }
  71. /**
  72. * Card content.
  73. */
  74. .card__content-wrapper {
  75. display: flex;
  76. flex-direction: column;
  77. flex-grow: 1;
  78. flex-shrink: 0;
  79. box-sizing: border-box;
  80. padding: 1.5rem;
  81. }
  82. @media screen and (min-width: 36.75rem) {
  83. .card--horizontal .card__content-wrapper {
  84. flex-basis: 65%;
  85. }
  86. /* Card content with image. */
  87. .card--horizontal .card__image ~ .card__content-wrapper {
  88. padding-left: 1rem;
  89. }
  90. [dir="rtl"] .card--horizontal .card__image ~ .card__content-wrapper {
  91. padding-right: 1rem;
  92. padding-left: 1.5rem;
  93. }
  94. }
  95. @media screen and (max-width: 53.75rem) {
  96. .toolbar-tray-open.toolbar-vertical.toolbar-fixed .card--horizontal .card__content-wrapper {
  97. flex-basis: auto;
  98. }
  99. }
  100. @media screen and (min-width: 85.375rem) {
  101. .card--horizontal .card__content-wrapper {
  102. flex-basis: 55%;
  103. }
  104. }
  105. /**
  106. * Card content.
  107. */
  108. .card__content {
  109. flex-grow: 1;
  110. }
  111. /**
  112. * Card content items (title, description).
  113. */
  114. .card__content-item {
  115. margin-top: 0;
  116. margin-bottom: 1rem;
  117. }
  118. .card__content-item:last-child {
  119. margin-bottom: 0;
  120. }
  121. /**
  122. * Card footer.
  123. */
  124. .card__footer {
  125. /**
  126. * Without specifying flex-shrink, IE11 will increase footer height if an
  127. * interactive element inside is hovered or focused.
  128. */
  129. flex-shrink: 0;
  130. order: 100;
  131. margin-top: 1.5rem;
  132. }
  133. .card__footer .action-links,
  134. [dir="rtl"] .card__footer .action-links {
  135. margin-top: 0;
  136. margin-bottom: 0;
  137. text-align: right; /* LTR */
  138. }
  139. [dir="rtl"] .card__footer .action-links {
  140. text-align: left;
  141. }