Add media query to layour-sidebar, add grid gap and areas

This commit is contained in:
Carlos Alcaide committed 2023-03-08 11:39:47 -08:00
1 parent 634ec086f2
commit bd3cfab5fd
1 file changed
+12
+12
View File
@@ -690,6 +690,9 @@
.layout-sidebar {
display: grid;
grid-template-areas: 'body body sidebar';
grid-template-columns: repeat(3, 1fr);
grid-template-rows: auto 1fr;
gap: 1em;
.layout-sidebar-body {
grid-area: body;
@@ -699,3 +702,12 @@
grid-area: sidebar;
}
}
@media (max-width: media.width(large)) {
.layout-sidebar {
grid-template-columns: 1fr;
grid-template-areas:
'body'
'sidebar';
}
}