0 Votes

Changes for page Home

Last modified by Alex Cotiugă on 2026/01/13 13:12

From version 7.63
edited by Alex Cotiugă
on 2025/11/13 13:00
Change comment: There is no comment for this version
To version 7.66
edited by Alex Cotiugă
on 2025/11/13 13:12
Change comment: There is no comment for this version

Summary

Details

XWiki.StyleSheetExtension[0]
Code
... ... @@ -179,118 +179,98 @@
179 179   }
180 180  
181 181   /* SERVICES */
182 - .services {
183 - h2 {
184 - margin: 0 0 .3rem;
185 - /* rely on global heading sizing */
186 - }
182 + .services-grid {
183 + display: grid;
184 + grid-template-columns: repeat(2, minmax(0, 1fr));
185 + column-gap: 36px;
186 + row-gap: 32px;
187 + }
187 187  
188 - .services-sub {
189 - margin: 0 0 1.75rem;
190 - color: @muted;
189 + .services-grid > article.service {
190 + display: grid;
191 + grid-template-columns: 48px 1fr;
192 + gap: 16px;
193 + padding: 18px 0;
194 + border-top: 1px solid @line;
195 +
196 + /* first row: no top border */
197 + &:nth-of-type(-n + 2) {
198 + border-top: none;
191 191   }
192 192  
193 - /* Grid: two columns, last item spans both */
194 - .services-grid {
195 - display: grid;
196 - grid-template-columns: repeat(2, 1fr);
197 - gap: 32px 36px;
201 + > i {
202 + width: 42px;
203 + height: 42px;
204 + border-radius: 50%;
205 + display: flex;
206 + align-items: center;
207 + justify-content: center;
208 + font-size: 18px;
209 + color: @brand;
210 + background: fade(@brand, 10%);
211 + margin-top: 3px;
198 198   }
199 199  
200 - .service {
201 - display: grid;
202 - grid-template-columns: 48px 1fr;
203 - gap: 16px;
204 - padding: 18px 0;
205 - border-top: 1px solid @line;
206 -
207 - /* first row: no top border */
208 - &:nth-of-type(-n + 2) {
209 - border-top: none;
214 + .body {
215 + h4 {
216 + margin: 0 0 4px;
217 + font-size: 1.125rem;
218 + font-weight: 800;
210 210   }
211 -
212 - /* icon badge */
213 - > i {
214 - width: 42px;
215 - height: 42px;
216 - border-radius: 50%;
217 - display: flex;
218 - align-items: center;
219 - justify-content: center;
220 - font-size: 18px;
221 - color: @brand;
222 - background: fade(@brand, 10%);
223 - margin-top: 3px;
220 + p {
221 + margin: 0 0 6px;
222 + color: @text;
223 + line-height: 1.5;
224 224   }
225 -
226 - .body {
227 - h3 {
228 - margin: 0 0 4px;
229 - font-size: 1.125rem;
230 - font-weight: 800;
231 - }
232 -
233 - p {
234 - margin: 0 0 6px;
235 - color: @text;
236 - line-height: 1.5;
237 - }
238 -
239 - ul {
240 - margin: .45rem 0 0;
241 - padding-left: 1.1rem;
242 - color: @muted;
243 - font-size: .95rem;
244 - }
245 -
246 - li {
247 - margin: .25rem 0;
248 - line-height: 1.45;
249 - }
225 + ul {
226 + margin: .45rem 0 0;
227 + padding-left: 1.1rem;
228 + color: @muted;
229 + font-size: .95rem;
250 250   }
251 -
252 - /* last item (Migrations): centered single row */
253 - &.service--center {
254 - grid-column: 1 / -1;
255 - max-width: 680px;
256 - justify-self: center;
257 - border-top: 1px solid @line; // always show a separator above it
231 + li {
232 + margin: .25rem 0;
233 + line-height: 1.45;
258 258   }
259 259   }
260 - /* If there is an odd number of services, center the last one on its own row */
261 - .services-grid > .service:last-child:nth-child(odd) {
262 - grid-column: 1 / -1; /*// span both columns*/
263 - max-width: 680px;
264 - justify-self: center;
265 - }
236 + }
266 266  
267 - /* Responsive */
268 - @media (max-width: 760px) {
269 - .services-grid {
270 - grid-template-columns: 1fr;
271 - row-gap: 20px;
272 - }
238 + /* If there is an odd number of services, center the last one */
239 + .services-grid > article.service:nth-last-child(1):nth-child(odd) {
240 + grid-column: 1 / -1;
241 + max-width: 680px;
242 + justify-self: center;
243 + }
273 273  
274 - .service {
275 - grid-template-columns: 40px 1fr;
245 + /* Responsive */
246 + @media (max-width: 760px) {
247 + .services-grid {
248 + grid-template-columns: 1fr;
249 + row-gap: 20px;
250 + }
276 276  
277 - /* on mobile only the first service has no top border */
278 - &:nth-of-type(1) {
279 - border-top: none;
280 - }
252 + .services-grid > article.service {
253 + grid-template-columns: 40px 1fr;
281 281  
282 - > i {
283 - width: 36px;
284 - height: 36px;
285 - font-size: 16px;
286 - }
255 + &:nth-of-type(1) {
256 + border-top: none;
257 + }
287 287  
288 - &.service--center {
289 - max-width: 100%;
290 - }
259 + > i {
260 + width: 36px;
261 + height: 36px;
262 + font-size: 16px;
291 291   }
292 292   }
265 +
266 + /* On mobile, just stack normally */
267 + .services-grid > article.service:nth-last-child(1):nth-child(odd) {
268 + grid-column: auto;
269 + max-width: 100%;
270 + justify-self: stretch;
271 + }
293 293   }
273 +
294 294   /* METRICS */
295 295   .metrics {
296 296   display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr);