0 Votes

Changes for page Home

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

From version 7.137
edited by Alex Cotiugă
on 2025/11/17 09:09
Change comment: There is no comment for this version
To version 7.134
edited by Alex Cotiugă
on 2025/11/17 09:07
Change comment: There is no comment for this version

Summary

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
... ... @@ -186,7 +186,7 @@
186 186   margin-top: 20px;
187 187   display: flex;
188 188   flex-wrap: wrap;
189 - gap: 24px;
189 + gap: 24px; // space between items
190 190   }
191 191  
192 192   .service {
... ... @@ -195,7 +195,7 @@
195 195   display: flex;
196 196   align-items: flex-start;
197 197   gap: 16px;
198 - margin-bottom: 8px;
198 + margin-bottom: 8px; // extra vertical breathing room
199 199  
200 200   .service-icon {
201 201   width: 42px;