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

91 lines
2.6 KiB
SCSS
Raw Normal View History

.sci--layout {
--breadcrumbs-navigation-height: 56px;
--left-navigation-width: 204px;
--navbar-height: calc(var(--top-navigation-height) + var(--breadcrumbs-navigation-height));
2023-05-09 20:53:50 +08:00
--navigator-navigation-width: 216px;
--top-navigation-height: 52px;
display: grid;
grid-template-areas: "top top top"
"left breadcrumbs breadcrumbs"
"left navigator content";
grid-template-columns: var(--left-navigation-width)
var(--navigator-navigation-width)
calc(100% - var(--left-navigation-width) - var(--navigator-navigation-width));
grid-template-rows: var(--top-navigation-height)
var(--breadcrumbs-navigation-height)
calc(100% - var(--top-navigation-height) - var(--breadcrumbs-navigation-height));
2023-04-14 17:38:28 +08:00
height: 100%;
position: relative;
transition: .4s $timing-function-sharp;
width: 100%;
.sci--layout--navigator-open {
display: none;
}
&[data-breadcrumbs-collapsed="true"] {
--breadcrumbs-navigation-height: 0px;
}
&[data-navigator-collapsed="true"] {
--navigator-navigation-width: 0px;
.sci--layout--navigator-open {
display: inline-block;
}
}
2023-04-18 16:50:16 +08:00
&[data-left-navigation-collapsed="true"] {
--left-navigation-width: 0px;
2023-04-18 16:50:16 +08:00
}
.sci--layout-navigation-top {
grid-area: top;
height: var(--top-navigation-height);
position: fixed;
2023-04-14 17:38:28 +08:00
width: 100%;
z-index: 610;
}
.sci--layout-navigation-left {
grid-area: left;
height: calc(100% - var(--top-navigation-height));
left: 0;
position: fixed;
top: var(--top-navigation-height);
width: var(--left-navigation-width);
z-index: 600;
}
.sci--layout-navigation-navigator {
grid-area: navigator;
height: calc(100% - var(--top-navigation-height) - var(--breadcrumbs-navigation-height));
left: var(--left-navigation-width);
position: fixed;
top: calc(var(--top-navigation-height) + var(--breadcrumbs-navigation-height));
transition: .4s $timing-function-sharp;
width: var(--navigator-navigation-width);
z-index: 550;
}
.sci--layout-navigation-breadcrumbs {
grid-area: breadcrumbs;
height: var(--breadcrumbs-navigation-height);
left: var(--left-navigation-width);
position: fixed;
top: var(--top-navigation-height);
transition: .4s $timing-function-sharp;
width: calc(100% - var(--left-navigation-width));
z-index: 600;
}
.sci--layout-content {
grid-area: content;
width: 100%;
.container-fluid {
padding: 0 1em; // override bootstrap and old pages support
}
}
}