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
on 2025/11/17 09:24
Change comment:
There is no comment for this version
To version 7.132
edited by Alex Cotiugă
on 2025/11/17 09:07
on 2025/11/17 09:07
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -109,17 +109,9 @@ 109 109 <p class="lead"> 110 110 All the XWiki services you need, delivered with precision and care 111 111 </p> 112 - 113 - #set ($servicesSize = $servicesSectionData.size()) 114 114 <div class="services-grid"> 115 115 #foreach ($entry in $servicesSectionData) 116 - #set ($classes = "service") 117 - ## If this is the last item AND the total number is odd, center it 118 - #if ($foreach.count == $servicesSize && ($servicesSize % 2) == 1) 119 - #set ($classes = "service service-center") 120 - #end 121 - 122 - <article class="$classes"> 114 + <article class="service"> 123 123 <div class="service-icon"> 124 124 <i class="fa fa-$entry.icon" aria-hidden="true"></i> 125 125 </div>
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -35,11 +35,8 @@ 35 35 36 36 .lead { 37 37 color: @muted; 38 - text-align: center;38 + max-width: 72ch; 39 39 } 40 - h2 { 41 - text-align: center; 42 - } 43 43 44 44 section { 45 45 padding: 32px 0; ... ... @@ -189,7 +189,7 @@ 189 189 margin-top: 20px; 190 190 display: flex; 191 191 flex-wrap: wrap; 192 - gap: 24px; 189 + gap: 24px; // space between items 193 193 } 194 194 195 195 .service { ... ... @@ -198,7 +198,7 @@ 198 198 display: flex; 199 199 align-items: flex-start; 200 200 gap: 16px; 201 - margin-bottom: 8px; 198 + margin-bottom: 8px; // extra vertical breathing room 202 202 203 203 .service-icon { 204 204 width: 42px; ... ... @@ -243,7 +243,7 @@ 243 243 244 244 /* Center the last item when odd: 245 245 auto margins in a flex row push it to the middle */ 246 - .service-center { 243 + .service--center { 247 247 margin-left: auto; 248 248 margin-right: auto; 249 249 } ... ... @@ -256,7 +256,7 @@ 256 256 .service { 257 257 flex: 0 1 100%; 258 258 } 259 - .service-center { 256 + .service--center { 260 260 margin-left: 0; 261 261 margin-right: 0; 262 262 }