Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

294 строки
5.8 KiB

  1. @import '../../_global/styles/mixins';
  2. @import '../../_global/styles/vars';
  3. .teaser {
  4. --hero-background: var(--theme-color-white);
  5. position: relative;
  6. display: flex;
  7. flex-direction: column;
  8. height: 100%;
  9. text-decoration: none;
  10. font-size: var(--font-size-small);
  11. &::before {
  12. content: '';
  13. @include full-size;
  14. margin: -6px;
  15. border-radius: var(--border-radius-xs);
  16. transition: 0.2s ease;
  17. }
  18. &:focus {
  19. outline: none;
  20. }
  21. &.focus-visible:focus::before {
  22. @include focus-standalone;
  23. }
  24. &:focus-visible::before, &.-moz-focusring::before {
  25. @include focus-standalone;
  26. }
  27. &.text {
  28. margin-bottom: 0;
  29. }
  30. .image-box {
  31. position: relative;
  32. display: block;
  33. border-radius: var(--border-radius-xs);
  34. background-color: var(--theme-color-primary-dimmed-04);
  35. overflow: hidden;
  36. flex-grow: 0;
  37. flex-shrink: 0;
  38. &::before {
  39. content: "";
  40. position: relative;
  41. display: block;
  42. padding-top: 66.6667%;
  43. margin-bottom: 7px;
  44. }
  45. &::after {
  46. content: "";
  47. position: absolute;
  48. left: 0;
  49. bottom: 0;
  50. width: 100%;
  51. display: block;
  52. height: 8px;
  53. background-color: var(--theme-color-secondary);
  54. transition: 0.3s ease;
  55. z-index: 1;
  56. border-bottom-right-radius: 4px;
  57. border-bottom-left-radius: 4px;
  58. }
  59. &.chart {
  60. display: flex;
  61. align-items: center;
  62. justify-content: center;
  63. background: linear-gradient(130deg, var(--theme-color-gradient-01) 10%, var(--theme-color-gradient-02) 90%, var(--theme-color-gradient-03) 160%);
  64. }
  65. }
  66. img {
  67. position: absolute;
  68. top: 0;
  69. left: 0;
  70. max-width: 100%;
  71. width: 100%;
  72. height: calc(100% - 7px);
  73. object-fit: cover;
  74. opacity: 1;
  75. transition: 0.3s linear;
  76. &.loading {
  77. opacity: 0;
  78. }
  79. }
  80. .copyright {
  81. @include copyright;
  82. bottom: 8px;
  83. }
  84. .chart-title {
  85. @include h3;
  86. display: block;
  87. font-weight: 700 !important;
  88. padding: 30px;
  89. margin: 0 0 0.4em;
  90. color: var(--theme-color-background) !important;
  91. text-decoration-color: transparent !important;
  92. text-align: center;
  93. @media(max-width: 999px) {
  94. font-size: 28px;
  95. margin-bottom: 0;
  96. padding: 20px;
  97. }
  98. }
  99. .kicker + .text-box {
  100. margin-top: 0.1em;
  101. border-top: 8px solid var(--theme-color-secondary);
  102. }
  103. .text-box {
  104. position: relative;
  105. &:not(:last-child) {
  106. padding-bottom: 20px;
  107. > *:last-child {
  108. margin-bottom: 0;
  109. &::after {
  110. content: '';
  111. position: relative;
  112. float: right;
  113. height: 0.75em;
  114. display: inline-block;
  115. width: 150px;
  116. }
  117. }
  118. }
  119. }
  120. .title {
  121. text-decoration: underline;
  122. text-underline-offset: 0.07em;
  123. text-decoration-thickness: 0.08em;
  124. margin: 0.5em 0;
  125. }
  126. &:hover {
  127. .image-box::after {
  128. height: var(--border-width-hover);
  129. }
  130. .copyright {
  131. bottom: 14px;
  132. @media(max-width: 767px) {
  133. bottom: 10px;
  134. }
  135. }
  136. }
  137. }
  138. [date-type='hero'], .teaser.hero {
  139. .image-box ~ .text-box {
  140. padding-top: 0.9em;
  141. .title {
  142. position: absolute;
  143. bottom: 100%;
  144. z-index: 1;
  145. background-color: var(--hero-background);
  146. margin-right: 40px;
  147. padding-top: 0.4em;
  148. padding-right: 0.8em;
  149. margin-bottom: -0.05em;
  150. }
  151. }
  152. }
  153. .col.extern, .col.download, .col.intranet, .col.extranet,
  154. .teaser.extern, .teaser.download, .teaser.intranet, .teaser.extranet {
  155. &:before {
  156. display: none;
  157. }
  158. .title:after {
  159. @include icon-small-stern;
  160. font-family: 'Icons', sans-serif;
  161. position: relative;
  162. font-size: var(--icon-size-small);
  163. line-height: 1;
  164. text-decoration: none;
  165. display: inline-block;
  166. vertical-align: top;
  167. margin-left: 0.2em;
  168. }
  169. }
  170. .col.extern .title:after,
  171. .teaser.extern .title:after {
  172. @include icon-small-link-external;
  173. }
  174. .col.download .title:after,
  175. .teaser.download .title:after {
  176. @include icon-small-download;
  177. }
  178. .col.intranet .title:after,
  179. .teaser.intranet .title:after {
  180. @include icon-small-schloss;
  181. }
  182. @media(min-width: 568px) {
  183. [date-type='fullwidth'], .teaser.fullwidth, .teasers[data-items="1"] {
  184. display: block;
  185. &::after {
  186. content: '';
  187. display: block;
  188. clear: both;
  189. }
  190. .title {
  191. @include h4;
  192. margin-top: 0.25em;
  193. }
  194. .image-box {
  195. float: left;
  196. }
  197. .kicker, .text-box {
  198. float: right;
  199. }
  200. &[data-image-size='s'] {
  201. .image-box::before {
  202. padding-top: 100%;
  203. }
  204. }
  205. &[data-image-size='l'] {
  206. .image-box::before {
  207. padding-top: 55%;
  208. }
  209. }
  210. @media(max-width: 999px) {
  211. .kicker, .text-box, .image-box {
  212. width: calc(50% - var(--col-padding));
  213. @media(min-width: 568px) {
  214. max-width: calc(50% - var(--col-padding));
  215. min-width: calc(50% - var(--col-padding));
  216. }
  217. }
  218. }
  219. @media(min-width: 1000px) {
  220. &[data-image-size='s'] {
  221. .image-box {
  222. width: calc((100% + var(--col-padding) * 2) / 12 * 5 - var(--col-padding) * 2);
  223. }
  224. .kicker, .text-box {
  225. width: calc((100% + var(--col-padding) * 2) / 12 * 7 - var(--col-padding) * 2);
  226. }
  227. }
  228. &[data-image-size='m'] {
  229. .image-box, .kicker, .text-box {
  230. width: calc(50% - var(--col-padding));
  231. }
  232. }
  233. &[data-image-size='l'] {
  234. .image-box {
  235. width: calc((100% + var(--col-padding) * 2) * 2 / 3 - var(--col-padding) * 2);
  236. }
  237. .kicker, .text-box {
  238. width: calc((100% + var(--col-padding) * 2) / 3 - var(--col-padding) * 2);
  239. }
  240. }
  241. }
  242. }
  243. }
  244. [data-background='lightblue'] .teaser {
  245. --hero-background: var(--theme-color-primary-dimmed-04);
  246. .image-box {
  247. background-color: rgba(#fff, 0.4);
  248. }
  249. }