Skip to content

Commit e9953c1

Browse files
authored
Merge pull request #77 from ALPSim/fix/homepage-btn-grid-3col
fix: lock homepage btn-grid to 3 columns on wide screens
2 parents abfedf2 + 35c31c0 commit e9953c1

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

assets/css/alps.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,24 @@
235235

236236
.btn-grid {
237237
display: grid;
238-
grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
238+
grid-template-columns: repeat(3, 1fr);
239239
gap: 0.75rem;
240240
margin-top: 1.5rem;
241241
margin-bottom: 1.5rem;
242242
}
243243

244+
@media (max-width: 40rem) {
245+
.btn-grid {
246+
grid-template-columns: repeat(2, 1fr);
247+
}
248+
}
249+
250+
@media (max-width: 26rem) {
251+
.btn-grid {
252+
grid-template-columns: 1fr;
253+
}
254+
}
255+
244256
.btn-grid .btn {
245257
width: 100%;
246258
margin: 0;

0 commit comments

Comments
 (0)