scinote-web/app/assets/stylesheets/navigation/general.scss

74 lines
1.9 KiB
SCSS

.sci--layout {
--breadcrumbs-navigation: 56px;
--left-navigation: 83px;
--navigator-navigation: 280px;
--top-navigation: 52px;
display: grid;
grid-template-areas: "top top top"
"left breadcrumbs breadcrumbs"
"left navigator content";
grid-template-columns: var(--left-navigation) var(--navigator-navigation) auto;
grid-template-rows: var(--top-navigation) var(--breadcrumbs-navigation) auto;
height: 100vh;
position: relative;
transition: .4s $timing-function-sharp;
width: 100%;
&[data-breadcrumbs-collapsed="true"] {
--breadcrumbs-navigation: 0px;
}
&[data-navigator-collapsed="true"] {
--navigator-navigation: 0px;
}
.sci--layout-navigation-top {
grid-area: top;
height: var(--top-navigation);
position: fixed;
width: 100vw;
z-index: 610;
}
.sci--layout-navigation-left {
grid-area: left;
height: calc(100vh - var(--top-navigation));
left: 0;
position: fixed;
top: var(--top-navigation);
width: var(--left-navigation);
z-index: 600;
}
.sci--layout-navigation-navigator {
grid-area: navigator;
height: calc(100vh - var(--top-navigation) - var(--breadcrumbs-navigation));
left: var(--left-navigation);
position: fixed;
top: calc(var(--top-navigation) + var(--breadcrumbs-navigation));
transition: .4s $timing-function-standard;
width: var(--navigator-navigation);
z-index: 550;
}
.sci--layout-navigation-breadcrumbs {
grid-area: breadcrumbs;
height: var(--breadcrumbs-navigation);
left: var(--left-navigation);
position: fixed;
top: var(--top-navigation);
transition: .4s $timing-function-standard;
width: calc(100vw - var(--left-navigation));
z-index: 600;
}
.sci--layout-content {
grid-area: content;
padding: 0 1em;
width: 100%;
.container-fluid {
padding: 0; // override bootstrap
}
}
}