0 Votes

Changes for page Home

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

From version 7.44
edited by Alex Cotiugă
on 2025/11/13 12:10
Change comment: There is no comment for this version
To version 7.45
edited by Alex Cotiugă
on 2025/11/13 12:14
Change comment: There is no comment for this version

Summary

Details

XWiki.StyleSheetExtension[0]
Code
... ... @@ -179,53 +179,65 @@
179 179   }
180 180  
181 181   /* SERVICES */
182 - /* Grid: two columns, then a single centered block */
183 - .services-grid {
184 - display:grid;
185 - grid-template-columns: repeat(2, 1fr);
186 - gap:32px 36px;
187 - }
182 + /* --- Services grid --- */
183 +.services-grid {
184 + display: grid;
185 + grid-template-columns: repeat(2, 1fr);
186 + gap: 32px 36px;
187 +}
188 188  
189 - /* Service item */
190 - .service {
191 - display:grid;
192 - grid-template-columns:48px 1fr;
193 - gap:16px;
194 - padding:18px 0;
195 - border-top:1px solid rgba(0,0,0,.08);
196 - }
197 - .service:nth-child(1),
198 - .service:nth-child(2) { border-top:none; } /* first row only */
189 +/* Service item */
190 +.services-grid > article.service {
191 + display: grid;
192 + grid-template-columns: 48px 1fr;
193 + gap: 16px;
194 + padding: 18px 0;
195 + border-top: 1px solid rgba(0,0,0,0.08);
196 +}
199 199  
200 - .service > i {
201 - width:42px; height:42px; border-radius:50%;
202 - display:flex; align-items:center; justify-content:center;
203 - font-size:18px; color:#008e78; background:rgba(0,142,120,.08);
204 - margin-top:3px;
205 - }
198 +/* First row only: remove top border.
199 + Use nth-of-type to avoid XWiki DOM noise changing indexes. */
200 +.services-grid > article.service:nth-of-type(-n + 2) {
201 + border-top: none;
202 +}
206 206  
207 - .service .body h3 { margin:0 0 4px; font-size:1.125rem; font-weight:800; }
208 - .service .body p { margin:0 0 6px; color:#25333b; line-height:1.5; }
209 - .service .body ul { margin:.45rem 0 0; padding-left:1.1rem; color:#2d3b43; }
210 - .service .body li { margin:.25rem 0; line-height:1.45; }
204 +/* Icon badge */
205 +.services-grid > article.service > i {
206 + width: 42px;
207 + height: 42px;
208 + border-radius: 50%;
209 + display: flex;
210 + align-items: center;
211 + justify-content: center;
212 + font-size: 18px;
213 + color: #008e78;
214 + background: rgba(0,142,120,0.08);
215 + margin-top: 3px;
216 +}
211 211  
212 - /* Single centered item (Migrations) */
213 - .service--center {
214 - grid-column:1 / -1; /* spans both columns */
215 - max-width:680px;
216 - justify-self:center; /* center horizontally */
217 - border-top:1px solid rgba(0,0,0,.08);
218 - }
218 +/* Text */
219 +.services-grid .body h3 { margin: 0 0 4px; font-size: 1.125rem; font-weight: 800; }
220 +.services-grid .body p { margin: 0 0 6px; color: #25333b; line-height: 1.5; }
221 +.services-grid .body ul { margin: .45rem 0 0; padding-left: 1.1rem; color: #2d3b43; }
222 +.services-grid .body li { margin: .25rem 0; line-height: 1.45; }
219 219  
220 - /* Responsive */
221 - @media (max-width:760px) {
222 - .services-grid { grid-template-columns:1fr; gap:20px; }
223 - .service { grid-template-columns:40px 1fr; }
224 - .service > i { width:36px; height:36px; font-size:16px; }
225 - .service:nth-child(1) { border-top:none; } /* first only on mobile */
226 - .service--center { max-width:100%; }
227 - }
224 +/* Last item (Migrations): centered single row */
225 +.services-grid > article.service.service--center {
226 + grid-column: 1 / -1;
227 + max-width: 680px;
228 + justify-self: center;
229 + border-top: 1px solid rgba(0,0,0,0.08);
230 +}
228 228  
232 +/* Responsive */
233 +@media (max-width: 760px) {
234 + .services-grid { grid-template-columns: 1fr; gap: 20px; }
235 + .services-grid > article.service { grid-template-columns: 40px 1fr; }
236 + .services-grid > article.service > i { width: 36px; height: 36px; font-size: 16px; }
237 + .services-grid > article.service.service--center { max-width: 100%; }
238 + /* On mobile only the very first service should have no top border */
239 + .services-grid > article.service:nth-of-type(1) { border-top: none; }
240 +}
229 229   /* METRICS */
230 230   .metrics {
231 231   display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr);