| ... |
... |
@@ -195,7 +195,6 @@ |
| 195 |
195 |
display: grid; |
| 196 |
196 |
grid-template-columns: repeat(2, 1fr); |
| 197 |
197 |
gap: 32px 36px; |
| 198 |
|
- |
| 199 |
199 |
} |
| 200 |
200 |
|
| 201 |
201 |
.service { |
| ... |
... |
@@ -258,6 +258,12 @@ |
| 258 |
258 |
border-top: 1px solid @line; // always show a separator above it |
| 259 |
259 |
} |
| 260 |
260 |
} |
|
260 |
+ /* If there is an odd number of services, center the last one on its own row */ |
|
261 |
+ .services-grid > .service:last-child:nth-child(odd) { |
|
262 |
+ grid-column: 1 / -1; /*// span both columns*/ |
|
263 |
+ max-width: 680px; |
|
264 |
+ justify-self: center; |
|
265 |
+ } |
| 261 |
261 |
|
| 262 |
262 |
/* Responsive */ |
| 263 |
263 |
@media (max-width: 760px) { |