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

102 lines
2.6 KiB
SCSS
Raw Normal View History

2023-05-19 16:11:19 +08:00
body {
min-width: 1140px;
}
body.navigator-collapsed {
2023-05-19 16:11:19 +08:00
min-width: 900px;
}
.sci--layout {
2023-05-24 04:52:39 +08:00
--breadcrumbs-navigation-height: 44px;
2023-05-17 20:18:16 +08:00
--left-navigation-width: 192px;
--navbar-height: calc(var(--top-navigation-height) + var(--breadcrumbs-navigation-height));
2023-05-17 20:18:16 +08:00
--navigator-navigation-width: 240px;
--top-navigation-height: 72px;
display: grid;
2023-06-12 20:23:26 +08:00
grid-template-areas: "left 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);
2023-05-19 16:11:19 +08:00
position: sticky;
position: -webkit-sticky;
top: 0;
2023-04-14 17:38:28 +08:00
width: 100%;
z-index: 610;
}
.sci--layout-navigation-left {
grid-area: left;
2023-06-12 20:23:26 +08:00
height: 100vh;
2023-05-19 16:11:19 +08:00
position: sticky;
position: -webkit-sticky;
2023-06-12 20:23:26 +08:00
top: 0;
width: var(--left-navigation-width);
z-index: 600;
}
.sci--layout-navigation-navigator {
grid-area: navigator;
2023-05-19 16:11:19 +08:00
height: calc(100vh - var(--top-navigation-height) - var(--breadcrumbs-navigation-height) - 1rem);
position: sticky;
position: -webkit-sticky;
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);
2023-05-19 16:11:19 +08:00
position: sticky;
position: -webkit-sticky;
top: var(--top-navigation-height);
transition: .4s $timing-function-sharp;
2023-05-19 16:11:19 +08:00
width: 100%;
z-index: 600;
}
.sci--layout-content {
grid-area: content;
2023-05-17 20:18:16 +08:00
padding: 0 1.5rem;
width: 100%;
.container-fluid {
2023-05-17 20:18:16 +08:00
padding: 1em; // override bootstrap and old pages support
}
}
}