Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

161 Zeilen
2.9 KiB

  1. @use '../../_global/styles/mixins' as *;
  2. @use '../../_global/styles/vars' as *;
  3. .card {
  4. &-inner {
  5. position: relative;
  6. display: block;
  7. max-width: 350px;
  8. border-radius: 16px;
  9. overflow: hidden;
  10. container-type: inline-size;
  11. @media(max-width: 645px) {
  12. max-width: 230px;
  13. }
  14. &:hover {
  15. text-decoration: none;
  16. .image-box {
  17. img {
  18. scale: 1.06;
  19. }
  20. }
  21. }
  22. &::before {
  23. content: '';
  24. position: absolute;
  25. left: 0;
  26. top: 0;
  27. right: 0;
  28. bottom: 0;
  29. margin-top: calc(40 / 70 * 100%);
  30. @include gradient;
  31. }
  32. }
  33. .image-box {
  34. overflow: hidden;
  35. position: relative;
  36. aspect-ratio: 70 / 47;
  37. border-top-left-radius: 16px;
  38. border-top-right-radius: 16px;
  39. clip-path: path("M 0 0 L 350 0 L 350 235 C 237.157 215.1 112.718 215.17 0 235 Z");
  40. img {
  41. width: 100%;
  42. height: 100%;
  43. object-fit: cover;
  44. border-top-left-radius: 16px;
  45. border-top-right-radius: 16px;
  46. transition: all 0.25s ease;
  47. }
  48. .copyright {
  49. @include copyright;
  50. }
  51. }
  52. .text-box {
  53. position: relative;
  54. min-height: 194px;
  55. padding: 20px 25px;
  56. color: var(--color-button-primary-text);
  57. border-bottom-left-radius: 16px;
  58. border-bottom-right-radius: 16px;
  59. @media(max-width: 645px) {
  60. min-height: 130px;
  61. }
  62. .like-h4 {
  63. text-decoration: underline;
  64. margin: 0;
  65. }
  66. }
  67. &.extern,
  68. &.download,
  69. &.intranet,
  70. &.gallery,
  71. &.interaction,
  72. &.video {
  73. .card-inner {
  74. .like-h4 {
  75. &:after {
  76. @include icon-small-stern;
  77. font-family: 'Icons', sans-serif;
  78. position: relative;
  79. font-size: var(--icon-size-small);
  80. line-height: 1;
  81. text-decoration: none;
  82. display: inline-block;
  83. vertical-align: top;
  84. margin-left: 0.2em;
  85. @media(min-width: 983px) {
  86. margin-top: 0.1rem;
  87. }
  88. @media(min-width: 1340px) {
  89. margin-top: 0.27rem;
  90. }
  91. }
  92. }
  93. }
  94. }
  95. &.extern {
  96. .card-inner {
  97. .like-h4 {
  98. &:after {
  99. @include icon-small-link-external;
  100. }
  101. }
  102. }
  103. }
  104. &.download {
  105. .card-inner {
  106. .like-h4 {
  107. &:after {
  108. @include icon-small-download;
  109. }
  110. }
  111. }
  112. }
  113. &.intranet {
  114. .card-inner {
  115. .like-h4 {
  116. &:after {
  117. @include icon-small-schloss;
  118. }
  119. }
  120. }
  121. }
  122. &.gallery {
  123. .card-inner {
  124. .like-h4 {
  125. &:after {
  126. @include icon-galerie-small;
  127. }
  128. }
  129. }
  130. }
  131. &.interaction {
  132. .card-inner {
  133. .like-h4 {
  134. &:after {
  135. @include icon-interaction-small;
  136. }
  137. }
  138. }
  139. }
  140. &.video {
  141. .card-inner {
  142. .like-h4 {
  143. &:after {
  144. @include icon-video-small;
  145. }
  146. }
  147. }
  148. }
  149. }