layout: fix weird separation at high widths
This commit is contained in:
1 parent
b339bfe978
commit
d3fb704ad1
1 file changed
+5
-7
@@ -153,8 +153,11 @@
|
|||||||
'content';
|
'content';
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content:not(.limit-width) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
display: grid;
|
display: grid;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
@@ -163,15 +166,10 @@
|
|||||||
grid-template-areas: 'main';
|
grid-template-areas: 'main';
|
||||||
justify-items: start;
|
justify-items: start;
|
||||||
}
|
}
|
||||||
.content > * {
|
|
||||||
width: 100%; /* Full width for immediate children */
|
|
||||||
max-width: 100rem; /* Limit width */
|
|
||||||
padding: 0 1rem; /* Add some padding on smaller screens */
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.content {
|
.content {
|
||||||
grid-template-columns: 14rem 2fr;
|
grid-template-columns: 15rem 2fr;
|
||||||
justify-items: end start;
|
justify-items: end start;
|
||||||
grid-template-areas: 'sidebar main';
|
grid-template-areas: 'sidebar main';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user