0 Votes

Changes for page Home

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

From version 7.80
edited by Alex Cotiugă
on 2025/11/13 20:58
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,28 +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 - /* keep alignment with container */
131 + /* Cancel Bootstrap's outer gutters so cards align with heading */
130 130   margin-left: -15px;
131 131   margin-right: -15px;
132 132  
133 133   .widget {
134 - /* add spacing between widgets */
135 - margin: 0 8px 16px; // <-- THIS is what creates gaps
136 -
137 - /* equal-height flex card */
136 + /* Bootstrap grid classes (col-sm-6, col-md-3) still apply padding */
138 138   display: flex;
139 139   flex-direction: column;
140 140   height: 100%;
141 141  
142 - /* card look */
143 - padding: 18px;
141 + /* Card design */
144 144   background: #fff;
145 145   border: 1px solid @line;
146 146   border-radius: @radius;
147 147   box-shadow: @shadow-sm;
146 + padding: 18px;
148 148   transition: transform .18s ease, box-shadow .18s ease;
149 149  
150 150   &:hover {
... ... @@ -159,8 +159,14 @@
159 159   padding-bottom: 6px;
160 160   margin-bottom: 8px;
161 161   border-bottom: 1px solid fade(@line, 60%);
161 +
162 162   i { color: @brand; }
163 - h4 { margin: 0; line-height: 1.2; color: @text; }
163 +
164 + h4 {
165 + margin: 0;
166 + line-height: 1.2;
167 + color: @text;
168 + }
164 164   }
165 165  
166 166   p {
... ... @@ -169,6 +169,12 @@
169 169   line-height: 1.45;
170 170   }
171 171   }
177 +
178 + @media (max-width: 767px) {
179 + .widget {
180 + margin-bottom: 16px; /* spacing between stacked items */
181 + }
182 + }
172 172   }
173 173  
174 174