Files
swingmusic-extended/src/assets/scss/Global/app-grid.scss
T
geoffrey45 6fb9c0fc4a fix scrollbars being hidden when sidebar is disabled on firefox
+ rename components, to follow vue style guides
2023-01-13 18:13:49 +03:00

85 lines
1.5 KiB
SCSS

$g-border: solid 1px $gray5;
#app-grid {
display: grid;
grid-template-columns: min-content 1fr 29rem;
grid-template-rows: max-content 1fr 5rem;
grid-template-areas:
"l-sidebar nav r-sidebar"
"l-sidebar content r-sidebar"
"bottombar bottombar bottombar";
gap: 0 1.5rem;
height: 100%;
border: $g-border;
border-top: none;
border-bottom: none;
margin: 0 auto;
max-width: 1720px;
}
#acontent {
grid-area: content;
margin-right: calc(0rem - ($medium + 2px));
padding-right: calc($medium);
overflow: hidden;
}
.r-sidebar {
grid-area: r-sidebar;
border-left: $g-border;
}
.topnav {
grid-area: nav;
margin: 1rem 0;
}
.l-sidebar {
width: 15rem;
grid-area: l-sidebar;
display: grid;
grid-template-rows: 1fr max-content;
// border-top: none !important;
// border-bottom: none !important;
border-right: $g-border;
}
.b-bar {
grid-area: bottombar;
border-top: $g-border;
}
// ====== MODIFIERS =======
#app-grid.extendWidth {
max-width: 100%;
padding-right: 0;
border-left: none;
border-right: none;
}
#app-grid.noSidebar {
grid-template-columns: min-content 1fr;
grid-template-areas:
"l-sidebar nav"
"l-sidebar content"
"bottombar bottombar";
#acontent {
margin-right: 0 !important;
padding-right: $medium !important;
}
.topnav {
//reduce width to match #acontent
width: calc(100% - 1rem);
}
// show scrollbars on search page
// .search-view {
// margin-right: -1rem;
// }
}