|
@@ -2,28 +2,12 @@
|
|
|
@use '@growi/core/scss/bootstrap/init' as bs;
|
|
@use '@growi/core/scss/bootstrap/init' as bs;
|
|
|
|
|
|
|
|
.grw-sidebar :global {
|
|
.grw-sidebar :global {
|
|
|
- // sticky
|
|
|
|
|
- position: sticky;
|
|
|
|
|
- top: 0;
|
|
|
|
|
-
|
|
|
|
|
- // set the max value that should be taken when sticky
|
|
|
|
|
- height: 100vh;
|
|
|
|
|
-
|
|
|
|
|
border-right : 1px solid var(--bs-border-color);
|
|
border-right : 1px solid var(--bs-border-color);
|
|
|
|
|
|
|
|
- .data-layout-container {
|
|
|
|
|
|
|
+ .grw-navigation-wrap {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
flex-direction: row;
|
|
|
- height: 100vh;
|
|
|
|
|
- margin-top: 0px;
|
|
|
|
|
- }
|
|
|
|
|
- .navigation {
|
|
|
|
|
- .grw-navigation-wrap {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- flex-direction: row;
|
|
|
|
|
- height: 100%;
|
|
|
|
|
- overflow: hidden;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ height: 100%;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.grw-sidebar-content-header {
|
|
.grw-sidebar-content-header {
|
|
@@ -36,18 +20,23 @@
|
|
|
|
|
|
|
|
// Dock Mode
|
|
// Dock Mode
|
|
|
@mixin dock() {
|
|
@mixin dock() {
|
|
|
|
|
+ .grw-navigation-wrap {
|
|
|
|
|
+ // sticky
|
|
|
|
|
+ position: sticky;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+
|
|
|
|
|
+ // set the max value that should be taken when sticky
|
|
|
|
|
+ height: 100vh;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Drawer Mode
|
|
// Drawer Mode
|
|
|
@mixin drawer() {
|
|
@mixin drawer() {
|
|
|
- z-index: bs.$zindex-fixed + 2;
|
|
|
|
|
|
|
|
|
|
- .data-layout-container {
|
|
|
|
|
|
|
+ .grw-navigation-wrap {
|
|
|
position: fixed;
|
|
position: fixed;
|
|
|
top: 0;
|
|
top: 0;
|
|
|
- width: 0;
|
|
|
|
|
- }
|
|
|
|
|
- div.navigation.transition-enabled {
|
|
|
|
|
|
|
+ z-index: bs.$zindex-fixed + 2;
|
|
|
max-width: 80vw;
|
|
max-width: 80vw;
|
|
|
|
|
|
|
|
// apply transition
|
|
// apply transition
|
|
@@ -56,15 +45,19 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
&:not(.open) {
|
|
&:not(.open) {
|
|
|
- div.navigation {
|
|
|
|
|
|
|
+ .grw-navigation-wrap {
|
|
|
transform: translateX(-100%);
|
|
transform: translateX(-100%);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
&.open {
|
|
&.open {
|
|
|
- div.navigation {
|
|
|
|
|
|
|
+ .grw-navigation-wrap {
|
|
|
transform: translateX(0);
|
|
transform: translateX(0);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ .sidebar-contents-container {
|
|
|
|
|
+ backdrop-filter: blur(20px);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.grw-sidebar {
|
|
.grw-sidebar {
|
|
@@ -73,22 +66,12 @@
|
|
|
@include drawer();
|
|
@include drawer();
|
|
|
}
|
|
}
|
|
|
&.grw-sidebar-dock {
|
|
&.grw-sidebar-dock {
|
|
|
- @include bs.media-breakpoint-down(sm) {
|
|
|
|
|
- @include drawer();
|
|
|
|
|
- }
|
|
|
|
|
- @include bs.media-breakpoint-up(md) {
|
|
|
|
|
- @include dock();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ @include dock();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-.grw-sidebar :global {
|
|
|
|
|
- .sidebar-contents-container {
|
|
|
|
|
- backdrop-filter: blur(20px);
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
@include bs.color-mode(light) {
|
|
@include bs.color-mode(light) {
|
|
|
.grw-sidebar :global {
|
|
.grw-sidebar :global {
|
|
|
--bs-border-color: var(--grw-highlight-200);
|
|
--bs-border-color: var(--grw-highlight-200);
|