fix: weird width

This commit is contained in:
Xylight committed 2024-08-10 20:00:07 -07:00
1 parent 50ac51066a
commit c0dc1b1c84
2 files changed
+12 -5

No files matched your search

+12 -4
View File
@@ -163,9 +163,13 @@
grid-template-areas: 'main';
justify-items: start;
}
.content.limit-width {
max-width: 120rem;
}
.content > * {
width: 100%; /* Full width for immediate children */
padding: 0 1rem; /* Add some padding on smaller screens */
}
@media (min-width: 768px) {
@@ -183,20 +187,24 @@
grid-template-areas: 'sidebar main suffix';
}
.content:is(.limit-width) {
.content.limit-width {
grid-template-columns: 1fr 2fr 1fr;
}
:global(.content:is(.limit-width) > *:first-child) {
:global(.content.limit-width > *:first-child) {
max-width: 20rem;
justify-self: end;
width: 100%;
}
:global(.content:is(.limit-width) > *:last-child) {
:global(.content.limit-width > *:last-child) {
max-width: 20rem;
justify-self: start;
width: 100%;
}
.main {
width: 100%;
}
}
</style>