|
|
@@ -1,16 +1,15 @@
|
|
|
@use '@growi/core/scss/bootstrap/init' as bs;
|
|
|
|
|
|
@use '@growi/core/scss/growi-official-colors';
|
|
|
+
|
|
|
+@use '../button-styles';
|
|
|
@use '../variables' as var;
|
|
|
|
|
|
+// GROWI Logo
|
|
|
.grw-sidebar-head :global {
|
|
|
- // declare $height with the same value as the sidebar nav width
|
|
|
- $height: var.$grw-sidebar-nav-width;
|
|
|
-
|
|
|
- height: $height;
|
|
|
-
|
|
|
.grw-logo {
|
|
|
$width: var.$grw-sidebar-nav-width;
|
|
|
+ $height: var.$grw-sidebar-nav-width; // declare $height with the same value as the sidebar nav width
|
|
|
$logomark-width: 27.7px;
|
|
|
$logomark-height: 24px;
|
|
|
|
|
|
@@ -22,7 +21,16 @@
|
|
|
padding: (($height - $logomark-height) / 2) (($width - $logomark-width) / 2);
|
|
|
}
|
|
|
}
|
|
|
+}
|
|
|
+
|
|
|
+// toggle button
|
|
|
+.grw-sidebar-head :global {
|
|
|
+ .btn-toggle-collapse {
|
|
|
+ @extend %btn-primary-basis;
|
|
|
|
|
|
+ $height: var.$grw-sidebar-nav-width; // declare $height with the same value as the sidebar nav width
|
|
|
+ height: $height;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -83,3 +91,27 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+// == Colors for the toggle button
|
|
|
+.grw-sidebar-head :global {
|
|
|
+ .btn.btn-toggle-collapse {
|
|
|
+ @extend %btn-primary-color-vars;
|
|
|
+ }
|
|
|
+}
|
|
|
+@include bs.color-mode(light) {
|
|
|
+ .grw-sidebar-head :global {
|
|
|
+ .btn-toggle-collapse {
|
|
|
+ --bs-btn-color: var(--grw-sidebar-nav-btn-color, var(--bs-gray-600));
|
|
|
+ --bs-btn-hover-bg: var(--grw-sidebar-nav-btn-hover-bg, var(--grw-highlight-300));
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+@include bs.color-mode(dark) {
|
|
|
+ .grw-sidebar-head :global {
|
|
|
+ .btn-toggle-collapse {
|
|
|
+ --bs-btn-color: var(--grw-sidebar-nav-btn-color, var(--bs-gray-500));
|
|
|
+ --bs-btn-hover-bg: var(--grw-sidebar-nav-btn-hover-bg, var(--grw-highlight-700));
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|