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

300 строки
5.9 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. @media(min-width: 983px) {
  169. margin-top: 0.1rem;
  170. }
  171. @media(min-width: 1340px) {
  172. margin-top: 0.27rem;
  173. }
  174. }
  175. }
  176. .col.extern .title:after,
  177. .teaser.extern .title:after {
  178. @include icon-small-link-external;
  179. }
  180. .col.download .title:after,
  181. .teaser.download .title:after {
  182. @include icon-small-download;
  183. }
  184. .col.intranet .title:after,
  185. .teaser.intranet .title:after {
  186. @include icon-small-schloss;
  187. }
  188. @media(min-width: 568px) {
  189. [date-type='fullwidth'], .teaser.fullwidth, .teasers[data-items="1"] {
  190. display: block;
  191. &::after {
  192. content: '';
  193. display: block;
  194. clear: both;
  195. }
  196. .title {
  197. @include h4;
  198. margin-top: 0.25em;
  199. }
  200. .image-box {
  201. float: left;
  202. }
  203. .kicker, .text-box {
  204. float: right;
  205. }
  206. &[data-image-size='s'] {
  207. .image-box::before {
  208. padding-top: 100%;
  209. }
  210. }
  211. &[data-image-size='l'] {
  212. .image-box::before {
  213. padding-top: 55%;
  214. }
  215. }
  216. @media(max-width: 999px) {
  217. .kicker, .text-box, .image-box {
  218. width: calc(50% - var(--col-padding));
  219. @media(min-width: 568px) {
  220. max-width: calc(50% - var(--col-padding));
  221. min-width: calc(50% - var(--col-padding));
  222. }
  223. }
  224. }
  225. @media(min-width: 1000px) {
  226. &[data-image-size='s'] {
  227. .image-box {
  228. width: calc((100% + var(--col-padding) * 2) / 12 * 5 - var(--col-padding) * 2);
  229. }
  230. .kicker, .text-box {
  231. width: calc((100% + var(--col-padding) * 2) / 12 * 7 - var(--col-padding) * 2);
  232. }
  233. }
  234. &[data-image-size='m'] {
  235. .image-box, .kicker, .text-box {
  236. width: calc(50% - var(--col-padding));
  237. }
  238. }
  239. &[data-image-size='l'] {
  240. .image-box {
  241. width: calc((100% + var(--col-padding) * 2) * 2 / 3 - var(--col-padding) * 2);
  242. }
  243. .kicker, .text-box {
  244. width: calc((100% + var(--col-padding) * 2) / 3 - var(--col-padding) * 2);
  245. }
  246. }
  247. }
  248. }
  249. }
  250. [data-background='lightblue'] .teaser {
  251. --hero-background: var(--theme-color-primary-dimmed-04);
  252. .image-box {
  253. background-color: rgba(#fff, 0.4);
  254. }
  255. }