Changes for page Home
Last modified by Alex Cotiugă on 2026/01/13 13:12
From version 7.81
edited by Alex Cotiugă
on 2025/11/13 21:01
on 2025/11/13 21:01
Change comment:
There is no comment for this version
To version 7.78
edited by Alex Cotiugă
on 2025/11/13 20:53
on 2025/11/13 20:53
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -123,29 +123,24 @@ 123 123 /* === WHY CHOOSE (widgets using Bootstrap grid) === */ 124 124 .widgets { 125 125 margin-top: 12px; 126 + 127 + /* Flexbox makes Bootstrap columns equal height */ 126 126 display: flex; 127 127 flex-wrap: wrap; 128 128 129 - /* keep alignment with container */ 131 + /* Remove default Bootstrap left/right gutters 132 + so cards align with the section heading */ 130 130 margin-left: -15px; 131 131 margin-right: -15px; 132 132 136 + /* Cards (inside columns) */ 133 133 .widget { 134 - /* add spacing between widgets */ 135 - margin: 0 8px 16px; 136 - &:first_child { 137 - margin-left: 0; 138 - } 139 - &:last-hild { 140 - margin-right:0; 141 - } 142 - 143 - /* equal-height flex card */ 138 + /* Bootstrap grid classes remain active (col-sm-6 col-md-3) */ 144 144 display: flex; 145 145 flex-direction: column; 146 146 height: 100%; 147 147 148 - /* card look*/143 + /* Card styling */ 149 149 padding: 18px; 150 150 background: #fff; 151 151 border: 1px solid @line; ... ... @@ -158,6 +158,7 @@ 158 158 box-shadow: @shadow; 159 159 } 160 160 156 + /* Icon row */ 161 161 .icon { 162 162 display: flex; 163 163 align-items: center; ... ... @@ -165,16 +165,32 @@ 165 165 padding-bottom: 6px; 166 166 margin-bottom: 8px; 167 167 border-bottom: 1px solid fade(@line, 60%); 168 - i { color: @brand; } 169 - h4 { margin: 0; line-height: 1.2; color: @text; } 164 + 165 + i { 166 + color: @brand; 167 + } 168 + 169 + h4 { 170 + margin: 0; 171 + line-height: 1.2; 172 + color: @text; 173 + } 170 170 } 171 171 176 + /* Card text */ 172 172 p { 173 173 margin: 0; 174 - color: @muted; 175 175 line-height: 1.45; 180 + color: @muted; 176 176 } 177 177 } 183 + 184 + /* Mobile spacing */ 185 + @media (max-width: 767px) { 186 + .widget { 187 + margin-bottom: 16px; 188 + } 189 + } 178 178 } 179 179 180 180