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.
 
 
 
 

218 line
4.6 KiB

  1. @import '../../_global/styles/mixins';
  2. @import '../../_global/styles/vars';
  3. .tile-grid {
  4. margin: var(--section-margin) auto;
  5. h2 {
  6. margin-bottom: 0.2em;
  7. }
  8. @media(max-width: 567px) {
  9. max-width: 340px;
  10. }
  11. @media(min-width: 768px) and (max-width: 999px) {
  12. max-width: 88%;
  13. padding: 0 15px;
  14. }
  15. .row {
  16. margin: 0 -5px;
  17. }
  18. .col {
  19. flex: 1 1 100%;
  20. max-width: 25%;
  21. padding: 5px;
  22. margin-bottom: 200px;
  23. @media(max-width: 1000px) {
  24. max-width: 50%;
  25. }
  26. @media(max-width: 567px) {
  27. max-width: 100%;
  28. margin-bottom: 100px;
  29. }
  30. &:nth-child(odd) {
  31. .tile a {
  32. background-color: var(--theme-color-secondary-dimmed);
  33. color: var(--theme-color-secondary-intensed);
  34. }
  35. .tile-head-outer {
  36. background-color: var(--theme-color-secondary-intensed);
  37. }
  38. }
  39. }
  40. .tile-head {
  41. position: sticky;
  42. display: block;
  43. top: 100px;
  44. padding: 20px 0 10px;
  45. z-index: 1;
  46. background-color: #fff;
  47. @media(max-width: 767px) {
  48. top: 75px;
  49. }
  50. .like-h4 {
  51. min-height: 3.6em;
  52. margin: 5px 0;
  53. max-width: 10em;
  54. }
  55. }
  56. .tile-head-outer {
  57. position: relative;
  58. display: block;
  59. color: white;
  60. background-color: var(--theme-color-primary);
  61. transition: 0.2s ease;
  62. border-top-right-radius: 30px;
  63. border-top-left-radius: 30px;
  64. padding: 5% 16% 5% 7%;
  65. text-decoration-color: rgba(white, 0);
  66. @include focus-visible;
  67. }
  68. .tile {
  69. padding: 0 0 10px;
  70. &:last-child {
  71. margin-bottom: -200px;
  72. @media(max-width: 567px) {
  73. margin-bottom: -100px;
  74. }
  75. }
  76. a {
  77. position: relative;
  78. display: block;
  79. background-color: var(--theme-color-primary-dimmed-04);
  80. transition: 0.2s ease;
  81. @include focus-visible;
  82. &.focus-visible, &:focus {
  83. z-index: 1;
  84. }
  85. &::before {
  86. content: '';
  87. display: block;
  88. padding-top: 60%;
  89. background-color: #fff;
  90. opacity: 0;
  91. transition: 0.2s ease;
  92. @media(max-width: 767px) {
  93. padding-top: 55%;
  94. }
  95. }
  96. &:hover::before {
  97. opacity: 0.6;
  98. }
  99. }
  100. span {
  101. display: block;
  102. }
  103. .number {
  104. font-size: var(--font-size-h1);
  105. line-height: 1;
  106. font-weight: 700;
  107. font-family: 'Korb', sans-serif;
  108. margin-left: -0.04em;
  109. @media(max-width: 1200px) {
  110. font-size: 56px;
  111. }
  112. @media(max-width: 999px) {
  113. font-size: 62px;
  114. }
  115. small {
  116. font-size: 0.6em;
  117. margin-left: 0.2em;
  118. }
  119. }
  120. .icon {
  121. @include full-size;
  122. text-align: right;
  123. img {
  124. width: auto;
  125. height: 100%;
  126. float: right;
  127. }
  128. }
  129. p {
  130. @include full-size;
  131. margin: 0;
  132. padding: 6% 16% 6.5% 7%;
  133. display: flex;
  134. flex-direction: column;
  135. justify-content: space-between;
  136. line-height: 1.2;
  137. @media(max-width: 1200px) and (min-width: 1000px) {
  138. font-size: 17px;
  139. margin-bottom: 1%;
  140. }
  141. }
  142. }
  143. .tile-head-outer, .tile a {
  144. &::after {
  145. @include icon-small-arrow-right-simple;
  146. font-family: 'Icons', sans-serif;
  147. position: absolute;
  148. bottom: 0;
  149. right: 0;
  150. margin: 7% 5%;
  151. font-size: var(--icon-size);
  152. line-height: 1;
  153. transition: 0.2s ease;
  154. @media(max-width: 1200px) and (min-width: 1000px) {
  155. font-size: 24px;
  156. }
  157. }
  158. &:hover::after {
  159. transform: translateX(20%);
  160. }
  161. }
  162. // So dass die bilder ins target kopiert werden
  163. /*
  164. .fake-class-for-images{
  165. background-image: url('../../../img/kacheln/tile-01.svg');
  166. background-image: url('../../../img/kacheln/tile-02.svg');
  167. background-image: url('../../../img/kacheln/tile-03.svg');
  168. background-image: url('../../../img/kacheln/tile-04.svg');
  169. background-image: url('../../../img/kacheln/tile-05.svg');
  170. background-image: url('../../../img/kacheln/tile-06.svg');
  171. background-image: url('../../../img/kacheln/tile-07.svg');
  172. background-image: url('../../../img/kacheln/tile-08.svg');
  173. background-image: url('../../../img/kacheln/tile-09.svg');
  174. background-image: url('../../../img/kacheln/tile-10.svg');
  175. background-image: url('../../../img/kacheln/tile-11.svg');
  176. background-image: url('../../../img/kacheln/tile-12.svg');
  177. background-image: url('../../../img/kacheln/tile-13.svg');
  178. background-image: url('../../../img/kacheln/tile-14.svg');
  179. background-image: url('../../../img/kacheln/tile-15.svg');
  180. background-image: url('../../../img/kacheln/tile-16.svg');
  181. }
  182. */
  183. }