Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

194 wiersze
4.5 KiB

  1. .tile-grid {
  2. margin: calc(1.5vw + 40px) auto;
  3. @media(max-width: 567px) {
  4. max-width: 340px;
  5. }
  6. @media(min-width: 768px) and (max-width: 999px) {
  7. max-width: 88%;
  8. padding: 0 15px;
  9. }
  10. .row {
  11. margin: 0 -5px;
  12. }
  13. .col {
  14. flex: 1 1 100%;
  15. max-width: 25%;
  16. padding: 5px;
  17. margin-bottom: 200px;
  18. @media(max-width: 1000px) {
  19. max-width: 50%;
  20. }
  21. @media(max-width: 567px) {
  22. max-width: 100%;
  23. margin-bottom: 100px;
  24. }
  25. &:nth-child(odd) {
  26. .tile a {
  27. background-color: $color-secondary-light;
  28. background-color: var(--theme-color-secondary-dimmed, $color-secondary-light);
  29. color: $color-secondary-dark;
  30. color: var(--theme-color-secondary-intensed, $color-secondary-dark);
  31. }
  32. .tile-head-outer {
  33. background-color: $color-secondary-dark;
  34. background-color: var(--theme-color-secondary-intensed, $color-secondary-dark);
  35. }
  36. }
  37. }
  38. .tile-head {
  39. position: sticky;
  40. display: block;
  41. top: 100px;
  42. padding: 20px 0 10px;
  43. z-index: 1;
  44. background-color: #fff;
  45. @media(max-width: 767px) {
  46. top: 75px;
  47. }
  48. .like-h4 {
  49. min-height: 3.6em;
  50. margin: 5px 0;
  51. max-width: 10em;
  52. }
  53. }
  54. .tile-head-outer {
  55. position: relative;
  56. display: block;
  57. color: white;
  58. background-color: $color-primary;
  59. background-color: var(--theme-color-primary, $color-primary);
  60. transition: 0.2s ease;
  61. border-top-right-radius: 30px;
  62. border-top-left-radius: 30px;
  63. padding: 5% 16% 5% 7%;
  64. text-decoration-color: rgba(white, 0);
  65. @include focusvisible;
  66. }
  67. .tile {
  68. padding: 0 0 10px;
  69. &:last-child {
  70. margin-bottom: -200px;
  71. @media(max-width: 567px) {
  72. margin-bottom: -100px;
  73. }
  74. }
  75. a {
  76. position: relative;
  77. display: block;
  78. background-color: $color-primary-light-04;
  79. background-color: var(--theme-color-primary-dimmed-04, $color-primary-light-04);
  80. transition: 0.2s ease;
  81. @include focusvisible;
  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: 74px;
  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. }
  118. }
  119. .icon {
  120. @include fullsize;
  121. text-align: right;
  122. img {
  123. width: auto;
  124. height: 100%;
  125. float: right;
  126. }
  127. }
  128. p {
  129. @include fullsize;
  130. margin: 0;
  131. padding: 6% 16% 6.5% 7%;
  132. display: flex;
  133. flex-direction: column;
  134. justify-content: space-between;
  135. line-height: 1.2;
  136. @media(max-width: 1200px) and (min-width: 1000px) {
  137. font-size: 17px;
  138. margin-bottom: 1%;
  139. }
  140. }
  141. }
  142. .tile-head-outer, .tile a {
  143. &::after {
  144. @include icon-small-arrow-right-simple;
  145. font-family: 'Icons', sans-serif;
  146. position: absolute;
  147. bottom: 0;
  148. right: 0;
  149. margin: 7% 5%;
  150. font-size: 30px;
  151. line-height: 1;
  152. transition: 0.2s ease;
  153. @media(max-width: 1200px) and (min-width: 1000px) {
  154. font-size: 24px;
  155. }
  156. }
  157. &:hover::after {
  158. transform: translateX(20%);
  159. }
  160. }
  161. }