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.
 
 
 
 

203 line
4.2 KiB

  1. @use '../../_global/styles/mixins';
  2. @use '../../_global/styles/vars';
  3. @use '../../sections/superlist/superlist';
  4. .superlist-entry {
  5. position: relative;
  6. display: flex;
  7. justify-content: space-between;
  8. align-items: center;
  9. gap: 15px;
  10. padding: 0 0 20px 0;
  11. &:before {
  12. content: '';
  13. display: block;
  14. position: absolute;
  15. left: 29px;
  16. top: 0;
  17. width: 2px;
  18. height: 100%;
  19. background: var(--color-button-primary-background);
  20. @media (min-width: 768px) {
  21. left: 59px;
  22. }
  23. }
  24. &:first-child {
  25. &:before {
  26. top: 50%;
  27. height: 50%;
  28. }
  29. }
  30. &:last-child {
  31. &:before {
  32. height: 50%;
  33. }
  34. }
  35. &:only-child {
  36. &:before {
  37. display: none;
  38. }
  39. }
  40. @media (max-width: 399px) {
  41. &:before {
  42. display: none;
  43. }
  44. }
  45. .graphic {
  46. width: 60px;
  47. height: 60px;
  48. flex-shrink: 0;
  49. background: var(--color-background);
  50. border-radius: 50%;
  51. @media (min-width: 768px) {
  52. width: 120px;
  53. height: 120px;
  54. }
  55. .icon-box {
  56. position: relative;
  57. width: 100%;
  58. height: auto;
  59. font-family: "Pictograms", sans-serif;
  60. font-size: 35px;
  61. line-height: 60px;
  62. text-align: center;
  63. color: var(--color-text);
  64. @media (min-width: 768px) {
  65. line-height: 120px;
  66. font-size: 70px;
  67. }
  68. }
  69. @media (max-width: 399px) {
  70. display: none;
  71. }
  72. }
  73. .textbox {
  74. flex: 1;
  75. padding: 15px;
  76. background: var(--color-background);
  77. color: var(--color-text);
  78. border-radius: var(--border-radius-sm);
  79. @media (min-width: 768px) {
  80. padding: 30px;
  81. border-radius: var(--border-radius-md);
  82. }
  83. h3, .like-h3 {
  84. margin-top: 0;
  85. margin-bottom: 5px;
  86. font-size: 20px;
  87. @media (min-width: 768px) {
  88. font-size: 28px;
  89. }
  90. }
  91. p {
  92. font-size: 16px;
  93. @media (min-width: 768px) {
  94. font-size: 18px;
  95. }
  96. }
  97. }
  98. &.inverted {
  99. &:before {
  100. background-color: var(--color-background);
  101. }
  102. .textbox {
  103. .btn {
  104. --button-bg-color: var(--color-button-tertiary-background);
  105. --button-text-color: var(--color-button-tertiary-text);
  106. --button-hover-shadow-opacity: 0.35;
  107. }
  108. }
  109. }
  110. }
  111. .superlist.centered {
  112. .superlist-entry {
  113. display: flex;
  114. justify-content: flex-end;
  115. gap: 0;
  116. min-height: 120px;
  117. padding: 0 0 40px 0;
  118. &:before {
  119. left: 29px;
  120. background: var(--color-decoration);
  121. @media (min-width: 768px) {
  122. left: calc(50% - 1px);
  123. }
  124. }
  125. &:first-child {
  126. &:before {
  127. top: 30px;
  128. height: calc(100% - 30px);
  129. @media (min-width: 768px) {
  130. top: 60px;
  131. height: calc(100% - 60px);
  132. }
  133. }
  134. }
  135. &:last-child {
  136. &:before {
  137. display: none;
  138. }
  139. }
  140. .graphic {
  141. position: absolute;
  142. left: 0;
  143. top: 0;
  144. background: var(--color-decoration);
  145. @media (min-width: 768px) {
  146. left: 50%;
  147. transform: translate(-50%, 0);
  148. }
  149. .icon-box {
  150. color: var(--color-background);
  151. }
  152. }
  153. .textbox {
  154. padding: 18px 0 0 0;
  155. background: none;
  156. border-radius: 0;
  157. margin-left: 76px;
  158. @media (min-width: 768px) {
  159. padding: 15px 0 0 0;
  160. flex: 0 0 calc(50% - 90px);
  161. margin-left: 0;
  162. }
  163. @media (max-width: 399px) {
  164. margin-left: 0;
  165. }
  166. h3, .like-h3 {
  167. padding-bottom: 9px;
  168. margin-bottom: 11px;
  169. border-bottom: 1px solid var(--color-surface-inset);
  170. @media (min-width: 768px) {
  171. margin-top: 3px;
  172. margin-bottom: 9px;
  173. }
  174. }
  175. .btn {
  176. --button-bg-color: var(--color-button-tertiary-background);
  177. --button-text-color: var(--color-button-tertiary-text);
  178. --button-hover-shadow-opacity: 0.35;
  179. }
  180. }
  181. &:nth-child(2n) {
  182. justify-content: flex-start;
  183. }
  184. &.inverted {
  185. &:before {
  186. background-color: var(--color-decoration);
  187. }
  188. .textbox {
  189. background: none;
  190. .btn {
  191. --button-bg-color: var(--color-button-tertiary-background);
  192. --button-text-color: var(--color-button-tertiary-text);
  193. --button-hover-shadow-opacity: 0.35;
  194. }
  195. }
  196. }
  197. }
  198. }