Changes for page Home
Last modified by Alex Cotiugă on 2026/01/13 13:12
From version 7.141
edited by Alex Cotiugă
on 2025/11/17 09:24
on 2025/11/17 09:24
Change comment:
There is no comment for this version
To 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
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -37,7 +37,7 @@ 37 37 color: @muted; 38 38 text-align: center; 39 39 } 40 - .h2 {40 + h2 { 41 41 text-align: center; 42 42 } 43 43 ... ... @@ -190,10 +190,15 @@ 190 190 display: flex; 191 191 flex-wrap: wrap; 192 192 gap: 24px; 193 + 194 + /* center the whole block under the heading */ 195 + max-width: 960px; 196 + margin-left: auto; 197 + margin-right: auto; 198 + 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 */ 246 + /* ==== Center last item on its own row while keeping 50% width ==== */ 246 246 .service-center { 248 + /* same width as siblings */ 249 + flex: 0 1 calc(50% - 12px); 250 + 251 + /* 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; 260 + max-width: 100%; 255 255 } 256 - .service { 257 - flex: 0 1 100%; 258 - } 262 + 263 + .service, 259 259 .service-center { 265 + flex: 0 1 100%; 260 260 margin-left: 0; 261 261 margin-right: 0; 262 262 }