0 Votes

Changes for page Home

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

From version 7.142
edited by Alex Cotiugă
on 2025/11/17 09:24
Change comment: There is no comment for this version
To version 7.151
edited by Alex Cotiugă
on 2025/11/17 11:45
Change comment: There is no comment for this version

Summary

Details

XWiki.StyleSheetExtension[0]
Code
... ... @@ -29,8 +29,7 @@
29 29  
30 30   .container {
31 31   max-width: @maxw;
32 - margin: 0 auto;
33 - padding: 0 16px;
32 + padding: 0;
34 34   }
35 35  
36 36   .lead {
... ... @@ -102,7 +102,6 @@
102 102   display: flex;
103 103   flex-direction: column;
104 104   align-items: center;
105 - gap: 1rem;
106 106   }
107 107  
108 108   .hero-cta {
... ... @@ -190,10 +190,15 @@
190 190   display: flex;
191 191   flex-wrap: wrap;
192 192   gap: 24px;
191 +
192 + /* center the whole block under the heading */
193 + max-width: 960px;
194 + margin-left: auto;
195 + margin-right: auto;
196 + justify-content: center;
193 193   }
194 194  
195 195   .service {
196 - /* 2 items per row: 50% minus half the gap so row fits in 100% */
197 197   flex: 0 1 calc(50% - 12px);
198 198   display: flex;
199 199   align-items: flex-start;
... ... @@ -220,13 +220,11 @@
220 220   font-size: 1.125rem;
221 221   font-weight: 800;
222 222   }
223 -
224 224   p {
225 225   margin: 0 0 6px;
226 226   color: @text;
227 227   line-height: 1.5;
228 228   }
229 -
230 230   ul {
231 231   margin: .45rem 0 0;
232 232   padding-left: 1.1rem;
... ... @@ -233,7 +233,6 @@
233 233   color: @muted;
234 234   font-size: 13px;
235 235   }
236 -
237 237   li {
238 238   margin: .25rem 0;
239 239   line-height: 1.45;
... ... @@ -241,9 +241,12 @@
241 241   }
242 242   }
243 243  
244 - /* Center the last item when odd:
245 - auto margins in a flex row push it to the middle */
244 + /* ==== Center last item on its own row while keeping 50% width ==== */
246 246   .service-center {
246 + /* same width as siblings */
247 + flex: 0 1 calc(55% - 12px);
248 +
249 + /* push to center */
247 247   margin-left: auto;
248 248   margin-right: auto;
249 249   }
... ... @@ -252,11 +252,12 @@
252 252   @media (max-width: 767px) {
253 253   .services-grid {
254 254   gap: 16px;
258 + max-width: 100%;
255 255   }
256 - .service {
257 - flex: 0 1 100%;
258 - }
260 +
261 + .service,
259 259   .service-center {
263 + flex: 0 1 100%;
260 260   margin-left: 0;
261 261   margin-right: 0;
262 262   }