Changes for page Home
Last modified by Alex Cotiugă on 2026/01/13 13:12
From version 7.146
edited by Alex Cotiugă
on 2025/11/17 09:35
on 2025/11/17 09:35
Change comment:
There is no comment for this version
To version 7.145
edited by Alex Cotiugă
on 2025/11/17 09:32
on 2025/11/17 09:32
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -192,7 +192,7 @@ 192 192 gap: 24px; 193 193 194 194 /* center the whole block under the heading */ 195 - max-width: 960px; 195 + max-width: 960px; // tweak 900–1040px to taste 196 196 margin-left: auto; 197 197 margin-right: auto; 198 198 justify-content: center; ... ... @@ -199,6 +199,7 @@ 199 199 } 200 200 201 201 .service { 202 + /* 2 items per row: 50% minus half the gap so row fits in 100% */ 202 202 flex: 0 1 calc(50% - 12px); 203 203 display: flex; 204 204 align-items: flex-start; ... ... @@ -225,11 +225,13 @@ 225 225 font-size: 1.125rem; 226 226 font-weight: 800; 227 227 } 229 + 228 228 p { 229 229 margin: 0 0 6px; 230 230 color: @text; 231 231 line-height: 1.5; 232 232 } 235 + 233 233 ul { 234 234 margin: .45rem 0 0; 235 235 padding-left: 1.1rem; ... ... @@ -236,6 +236,7 @@ 236 236 color: @muted; 237 237 font-size: 13px; 238 238 } 242 + 239 239 li { 240 240 margin: .25rem 0; 241 241 line-height: 1.45; ... ... @@ -243,14 +243,9 @@ 243 243 } 244 244 } 245 245 246 - /* ==== Center last item on its ownrowwhilekeeping50% width====*/250 + /* Last item when count is odd: full-width on its own row */ 247 247 .service-center { 248 - /* same width as siblings */ 249 - flex: 0 1 calc(50% - 12px); 250 - 251 - /* push to center */ 252 - margin-left: auto; 253 - margin-right: auto; 252 + flex: 0 1 100%; 254 254 } 255 255 256 256 /* Mobile: 1 per row */ ... ... @@ -263,8 +263,6 @@ 263 263 .service, 264 264 .service-center { 265 265 flex: 0 1 100%; 266 - margin-left: 0; 267 - margin-right: 0; 268 268 } 269 269 } 270 270 }