0 Votes

Changes for page Home

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

From version 7.85
edited by Alex Cotiugă
on 2025/11/13 21:12
Change comment: There is no comment for this version
To version 7.79
edited by Alex Cotiugă
on 2025/11/13 20:56
Change comment: There is no comment for this version

Summary

Details

XWiki.StyleSheetExtension[0]
Code
... ... @@ -123,30 +123,27 @@
123 123   /* === WHY CHOOSE (widgets using Bootstrap grid) === */
124 124   .widgets {
125 125   margin-top: 12px;
126 +
127 + /* Flex layout = equal-height columns */
126 126   display: flex;
127 127   flex-wrap: wrap;
128 128  
129 - .widget {
130 - box-sizing: border-box;
131 + /* Cancel Bootstrap's outer gutters so cards align with heading */
132 + margin-left: -15px;
133 + margin-right: -15px;
131 131  
132 - /* Desktop (md+): 4 per row, with 8px side gaps */
133 - flex: 0 0 calc(25% - 16px);
134 - max-width: calc(25% - 16px);
135 - margin: 0 8px 16px;
136 -
137 - /* First: no left margin; last: no right margin */
138 - &:first-child { margin-left: 0; }
139 - &:last-child { margin-right: 0; }
140 -
141 - /* Card styling */
135 + .widget {
136 + /* Bootstrap grid classes (col-sm-6, col-md-3) still apply padding */
142 142   display: flex;
143 143   flex-direction: column;
144 144   height: 100%;
145 - padding: 18px;
140 +
141 + /* Card design */
146 146   background: #fff;
147 147   border: 1px solid @line;
148 148   border-radius: @radius;
149 149   box-shadow: @shadow-sm;
146 + padding: 18px;
150 150   transition: transform .18s ease, box-shadow .18s ease;
151 151  
152 152   &:hover {
... ... @@ -162,8 +162,13 @@
162 162   margin-bottom: 8px;
163 163   border-bottom: 1px solid fade(@line, 60%);
164 164  
165 - i { color: @brand; }
166 - h4 { margin: 0; line-height: 1.2; color: @text; }
162 + i { color: @brand; }
163 +
164 + h4 {
165 + margin: 0;
166 + line-height: 1.2;
167 + color: @text;
168 + }
167 167   }
168 168  
169 169   p {
... ... @@ -171,14 +171,11 @@
171 171   color: @muted;
172 172   line-height: 1.45;
173 173   }
176 + }
174 174  
175 -
176 -
177 - /* Mobile (xs): full width stacked */
178 - @media (max-width: 767px) {
179 - flex: 0 0 100%;
180 - max-width: 100%;
181 - margin: 0 0 16px 0;
178 + @media (max-width: 767px) {
179 + .widget {
180 + margin-bottom: 16px; /* spacing between stacked items */
182 182   }
183 183   }
184 184   }