Changes for page Home
Last modified by Alex Cotiugă on 2026/01/13 13:12
From version 7.150
edited by Alex Cotiugă
on 2025/11/17 11:43
on 2025/11/17 11:43
Change comment:
There is no comment for this version
To 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
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -29,6 +29,8 @@ 29 29 30 30 .container { 31 31 max-width: @maxw; 32 + margin: 0 auto; 33 + padding: 0 16px; 32 32 } 33 33 34 34 .lead { ... ... @@ -35,7 +35,7 @@ 35 35 color: @muted; 36 36 text-align: center; 37 37 } 38 - h2 { 40 + .h2 { 39 39 text-align: center; 40 40 } 41 41 ... ... @@ -100,6 +100,7 @@ 100 100 display: flex; 101 101 flex-direction: column; 102 102 align-items: center; 105 + gap: 1rem; 103 103 } 104 104 105 105 .hero-cta { ... ... @@ -187,15 +187,10 @@ 187 187 display: flex; 188 188 flex-wrap: wrap; 189 189 gap: 24px; 190 - 191 - /* center the whole block under the heading */ 192 - max-width: 960px; 193 - margin-left: auto; 194 - margin-right: auto; 195 - justify-content: center; 196 196 } 197 197 198 198 .service { 196 + /* 2 items per row: 50% minus half the gap so row fits in 100% */ 199 199 flex: 0 1 calc(50% - 12px); 200 200 display: flex; 201 201 align-items: flex-start; ... ... @@ -222,11 +222,13 @@ 222 222 font-size: 1.125rem; 223 223 font-weight: 800; 224 224 } 223 + 225 225 p { 226 226 margin: 0 0 6px; 227 227 color: @text; 228 228 line-height: 1.5; 229 229 } 229 + 230 230 ul { 231 231 margin: .45rem 0 0; 232 232 padding-left: 1.1rem; ... ... @@ -233,6 +233,7 @@ 233 233 color: @muted; 234 234 font-size: 13px; 235 235 } 236 + 236 236 li { 237 237 margin: .25rem 0; 238 238 line-height: 1.45; ... ... @@ -240,12 +240,9 @@ 240 240 } 241 241 } 242 242 243 - /* ==== Center last item on its own row while keeping 50% width ==== */ 244 + /* Center the last item when odd: 245 + auto margins in a flex row push it to the middle */ 244 244 .service-center { 245 - /* same width as siblings */ 246 - flex: 0 1 calc(55% - 12px); 247 - 248 - /* push to center */ 249 249 margin-left: auto; 250 250 margin-right: auto; 251 251 } ... ... @@ -254,12 +254,11 @@ 254 254 @media (max-width: 767px) { 255 255 .services-grid { 256 256 gap: 16px; 257 - max-width: 100%; 258 258 } 259 - 260 - .service, 261 - .service-center { 256 + .service { 262 262 flex: 0 1 100%; 258 + } 259 + .service-center { 263 263 margin-left: 0; 264 264 margin-right: 0; 265 265 }