Use grid-auto-columns instead of specifying template-columns on @media

quearies
This commit is contained in:
MrOtherGuy 2019-11-06 13:42:13 +02:00
parent d0631c6ee2
commit 51f3030d0e

View file

@ -13,7 +13,7 @@
padding: 1em; padding: 1em;
display: grid; display: grid;
grid-template-areas: "hd hd" "cd cd"; grid-template-areas: "hd hd" "cd cd";
grid-template-columns: 1fr 1fr; grid-auto-columns: 1fr;
column-gap: 1em; column-gap: 1em;
} }
@ -34,7 +34,6 @@
addon-list > section, addon-list > section,
recommended-addon-list{ recommended-addon-list{
grid-template-areas: "hd hd hd" "cd cd cd"; grid-template-areas: "hd hd hd" "cd cd cd";
grid-template-columns: 1fr 1fr 1fr;
} }
} }
@ -42,8 +41,6 @@
addon-list > section, addon-list > section,
recommended-addon-list{ recommended-addon-list{
grid-template-areas: "hd hd hd hd" "cd cd cd cd"; grid-template-areas: "hd hd hd hd" "cd cd cd cd";
grid-template-columns: 1fr 1fr 1fr 1fr;
} }
} }
}
}