Is it possible to split a sidebar with css grids on mobile but treat it kind of one on desktop?
On mobile I want everything stacked Intro Part of the sidebar Content and then the rest of the Sidebar.
On desktop I would like Intro and Content stacked in one column and the 2 sidebars stacked next to them.
The closes I got was
grid-template-areas:
"intro"
"sidebarTop"
"content"
"sidebarBottom";
@media (min-width: 600px) {
grid-template-areas:
"intro sidebarTop"
"content sidebarTop"
"content sidebarBottom";
}
But sidebarTop always takes up as much space as it can.
I want it to only use the space it uses and let the sidebarBottom take up the rest.
Any suggestions?