Changes for page Home
Last modified by Alex Cotiugă on 2026/01/13 13:12
From version 7.83
edited by Alex Cotiugă
on 2025/11/13 21:04
on 2025/11/13 21:04
Change comment:
There is no comment for this version
To version 7.79
edited by Alex Cotiugă
on 2025/11/13 20:56
on 2025/11/13 20:56
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -123,34 +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 alignmentwithcontainer*/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; 136 - &:first-child { 137 - margin-left: 0; 138 - } 139 - &:last-child { 140 - margin-right: 0; 141 - } 142 - 143 - /* equal-height flex card */ 136 + /* Bootstrap grid classes (col-sm-6, col-md-3) still apply padding */ 144 144 display: flex; 145 145 flex-direction: column; 146 146 height: 100%; 147 147 148 - /* card look */ 149 - padding: 18px; 141 + /* Card design */ 150 150 background: #fff; 151 151 border: 1px solid @line; 152 152 border-radius: @radius; 153 153 box-shadow: @shadow-sm; 146 + padding: 18px; 154 154 transition: transform .18s ease, box-shadow .18s ease; 155 155 156 156 &:hover { ... ... @@ -165,8 +165,14 @@ 165 165 padding-bottom: 6px; 166 166 margin-bottom: 8px; 167 167 border-bottom: 1px solid fade(@line, 60%); 161 + 168 168 i { color: @brand; } 169 - h4 { margin: 0; line-height: 1.2; color: @text; } 163 + 164 + h4 { 165 + margin: 0; 166 + line-height: 1.2; 167 + color: @text; 168 + } 170 170 } 171 171 172 172 p { ... ... @@ -175,6 +175,12 @@ 175 175 line-height: 1.45; 176 176 } 177 177 } 177 + 178 + @media (max-width: 767px) { 179 + .widget { 180 + margin-bottom: 16px; /* spacing between stacked items */ 181 + } 182 + } 178 178 } 179 179 180 180