| ... |
... |
@@ -195,11 +195,6 @@ |
| 195 |
195 |
display: grid; |
| 196 |
196 |
grid-template-columns: repeat(2, 1fr); |
| 197 |
197 |
gap: 32px 36px; |
| 198 |
|
- article.service:last-child:nth-child(odd) { |
| 199 |
|
- grid-column: 1 / -1; /*// span both columns*/ |
| 200 |
|
- max-width: 680px; /*// optional: keep it from stretching too wide*/ |
| 201 |
|
- justify-self: center; /*// center it in the row*/ |
| 202 |
|
- } |
| 203 |
203 |
} |
| 204 |
204 |
|
| 205 |
205 |
.service { |
| ... |
... |
@@ -262,6 +262,12 @@ |
| 262 |
262 |
border-top: 1px solid @line; // always show a separator above it |
| 263 |
263 |
} |
| 264 |
264 |
} |
|
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 |
+ } |
| 265 |
265 |
|
| 266 |
266 |
/* Responsive */ |
| 267 |
267 |
@media (max-width: 760px) { |