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

119 lines
2.9 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));
--title-row-height: 4em;
--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;
+ h1 {
max-width: calc(100% - 2.5rem);
}
}
}
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-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 {
--navigator-top-margin: 0px;
2023-08-09 17:01:20 +08:00
background-color: var(--sn-white);
grid-area: navigator;
height: calc(100vh - var(--navbar-height) - 1rem - var(--navigator-top-margin));
2023-05-19 16:11:19 +08:00
position: sticky;
position: -webkit-sticky;
top: 1rem;
transition: width .4s $timing-function-sharp;
width: var(--navigator-navigation-width);
z-index: 550;
}
.sci--layout-navigation-breadcrumbs {
2023-08-09 17:01:20 +08:00
background-color: var(--sn-white);
grid-area: breadcrumbs;
height: var(--breadcrumbs-navigation-height);
transition: .4s $timing-function-sharp;
2023-05-19 16:11:19 +08:00
width: 100%;
z-index: 600;
}
.sci--layout-content {
2023-08-09 17:01:20 +08:00
background-color: var(--sn-white);
grid-area: content;
2023-08-31 21:50:35 +08:00
padding: 0 1rem;
width: 100%;
.container-fluid {
2023-05-17 20:18:16 +08:00
padding: 1em; // override bootstrap and old pages support
}
}
2023-08-09 17:01:20 +08:00
&[data-grey-background="true"] {
background-color: var(--sn-super-light-grey);
2023-08-09 17:01:20 +08:00
.sci--layout-content,
.sci--layout-navigation-breadcrumbs,
.sci--layout-navigation-navigator {
background-color: var(--sn-super-light-grey);
}
}
}
.w-98 {
width: 98%;
}