| ... |
... |
@@ -123,23 +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; // <-- THIS is what creates gaps |
| 136 |
|
- |
| 137 |
|
- /* equal-height flex card */ |
|
138 |
+ /* Bootstrap grid classes remain active (col-sm-6 col-md-3) */ |
| 138 |
138 |
display: flex; |
| 139 |
139 |
flex-direction: column; |
| 140 |
140 |
height: 100%; |
| 141 |
141 |
|
| 142 |
|
- /* card look */ |
|
143 |
+ /* Card styling */ |
| 143 |
143 |
padding: 18px; |
| 144 |
144 |
background: #fff; |
| 145 |
145 |
border: 1px solid @line; |
| ... |
... |
@@ -152,6 +152,7 @@ |
| 152 |
152 |
box-shadow: @shadow; |
| 153 |
153 |
} |
| 154 |
154 |
|
|
156 |
+ /* Icon row */ |
| 155 |
155 |
.icon { |
| 156 |
156 |
display: flex; |
| 157 |
157 |
align-items: center; |
| ... |
... |
@@ -159,16 +159,32 @@ |
| 159 |
159 |
padding-bottom: 6px; |
| 160 |
160 |
margin-bottom: 8px; |
| 161 |
161 |
border-bottom: 1px solid fade(@line, 60%); |
| 162 |
|
- i { color: @brand; } |
| 163 |
|
- 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 |
+ } |
| 164 |
164 |
} |
| 165 |
165 |
|
|
176 |
+ /* Card text */ |
| 166 |
166 |
p { |
| 167 |
167 |
margin: 0; |
| 168 |
|
- color: @muted; |
| 169 |
169 |
line-height: 1.45; |
|
180 |
+ color: @muted; |
| 170 |
170 |
} |
| 171 |
171 |
} |
|
183 |
+ |
|
184 |
+ /* Mobile spacing */ |
|
185 |
+ @media (max-width: 767px) { |
|
186 |
+ .widget { |
|
187 |
+ margin-bottom: 16px; |
|
188 |
+ } |
|
189 |
+ } |
| 172 |
172 |
} |
| 173 |
173 |
|
| 174 |
174 |
|