Skip to content
Snippets Groups Projects
Commit e7ac0e5d authored by HJ's avatar HJ :fire:
Browse files

fix main column having wild widths

parent 71863061
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ nav {
.app-layout {
position: relative;
display: grid;
grid-template-columns: auto minmax(auto, 1fr);
grid-template-columns: var(--miniColumn) var(--maxiColumn);
grid-template-areas: "sidebar content";
grid-template-rows: 1fr;
box-sizing: border-box;
......@@ -102,8 +102,11 @@ nav {
padding: 0 10px 0 10px;
justify-content: center;
--miniColumn: 345px;
--maxiColumn: minmax(auto, 615px);
&.-reverse {
grid-template-columns: minmax(auto, 1fr) auto;
grid-template-columns: var(--maxiColumn) var(--miniColumn);
grid-template-areas: "content sidebar";
}
}
......@@ -123,16 +126,11 @@ nav {
.column {
box-sizing: border-box;
max-width: 615px;
padding-top: 10px;
grid-row-start: 1;
grid-row-end: 1;
margin: 0 0.5em;
&.-mini {
max-width: 345px;
}
&.-scrollable {
padding-top: 10px;
position: sticky;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment