You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

174 line
3.2 KiB

  1. @use '../../_global/styles/mixins' as *;
  2. @use '../../_global/styles/vars' as *;
  3. *:has(> .mini-teaser) {
  4. container-type: inline-size;
  5. }
  6. .mini-teaser {
  7. position: relative;
  8. background-color: var(--color-background);
  9. overflow: hidden;
  10. width: 100%;
  11. //max-width: 420px;
  12. border-radius: 4px;
  13. padding: 16px 12px;
  14. transition: 0.25s ease;
  15. line-height: 1.2;
  16. text-align: left;
  17. text-decoration: none;
  18. display: block;
  19. .title{
  20. font-size: 22px;
  21. }
  22. &.standard::before {
  23. content: "";
  24. position: absolute;
  25. display: block;
  26. top: 0;
  27. left: 0;
  28. right: 0;
  29. height: 4px;
  30. background-color: var(--color-border);
  31. transition: 0.2s ease;
  32. }
  33. &.standard:hover::before {
  34. height: 8px;
  35. }
  36. h4{
  37. font-size: 22px;
  38. }
  39. .text-box{
  40. position: relative;
  41. .mini-container {
  42. width: 100%;
  43. display: flex;
  44. flex-direction: column;
  45. }
  46. }
  47. &.infoteaser{
  48. @include gradient;
  49. position: relative;
  50. container-type: inline-size;
  51. &:after{
  52. @include gradient;
  53. content:"";
  54. position:absolute;
  55. left:0;
  56. right:0;
  57. top:0;
  58. bottom:0;
  59. z-index:-1;
  60. }
  61. &.background-image{
  62. background-size:cover;
  63. &:after{
  64. content:"";
  65. position:absolute;
  66. top:0;
  67. left:0;
  68. bottom:0;
  69. right:0;
  70. z-index: 0;
  71. opacity: 0.6;
  72. background: linear-gradient(87deg, #036 12.55%, rgba(1, 40, 81, 0.86) 56.52%, rgba(0, 51, 102, 0.00) 94.05%);
  73. background-blend-mode: overlay;
  74. }
  75. .text-box{
  76. position: relative;
  77. z-index: 1;
  78. }
  79. }
  80. .title, .category, .btn{
  81. color: var(--color-text);
  82. }
  83. .title{
  84. margin-top: 0;
  85. min-height: 48px;
  86. text-align: left;
  87. line-height: 24px;
  88. margin-bottom: 11px;
  89. width: 100%;
  90. &.noicon{
  91. padding-left: 0;
  92. min-height: 0;
  93. + .btn{
  94. margin-left: 0;
  95. }
  96. }
  97. }
  98. .icon-box + .title {
  99. padding-left: 54px;
  100. }
  101. .icon-box + .mini-container {
  102. padding-left: 54px;
  103. }
  104. .btn{
  105. background-color: transparent;
  106. border: 1px solid var(--color-button-primary-background);
  107. margin-left: 0;
  108. align-self: flex-end;
  109. display: inline-block;
  110. padding:8px 10px;
  111. line-height: 22px;
  112. border-radius:16px;
  113. --button-padding: 8px 10px;
  114. min-height: 0;
  115. font-size: 22px;
  116. &:after{
  117. border-radius:16px;
  118. }
  119. }
  120. .icon-box{
  121. margin-bottom: 19px;
  122. margin-top: 0;
  123. padding-top: 0;
  124. position: absolute;
  125. top: 0;
  126. left: 0;
  127. }
  128. .text-box{
  129. padding: 0;
  130. display: flex;
  131. flex-wrap: wrap;
  132. }
  133. }
  134. .icon-box {
  135. font-family: 'Pictograms', sans-serif;
  136. line-height: 1;
  137. color: var(--color-text);
  138. font-size:48px
  139. }
  140. .category{
  141. text-align: left;
  142. padding:0;
  143. margin:0;
  144. margin-bottom:8px;
  145. font-size:16px;
  146. text-transform: uppercase;
  147. line-height: 18px;
  148. font-family: 'Source Sans Pro', sans-serif;
  149. }
  150. .title{
  151. text-align: left;
  152. padding:0;
  153. margin:0;
  154. }
  155. .teaser--link {
  156. position: absolute;
  157. left: 0;
  158. top: 0;
  159. width: 100%;
  160. height: 100%;
  161. z-index: 10;
  162. }
  163. }