SidebarNav.module.scss 894 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. @use '@growi/core/scss/bootstrap/init' as bs;
  2. @use '~/styles/variables' as var;
  3. .grw-sidebar-nav :global {
  4. // set position and z-index to prevent dropdowns covered by other element
  5. position: relative;
  6. z-index: bs.$zindex-fixed;
  7. height: 100vh;
  8. border-right : 1px solid var(--bs-border-color);
  9. .grw-logo {
  10. svg {
  11. width: var.$grw-logo-width;
  12. height: var.$grw-logo-width;
  13. padding: (var.$grw-logo-width - var.$grw-logomark-width) / 2;
  14. }
  15. }
  16. .grw-sidebar-nav-secondary-container {
  17. position: fixed;
  18. bottom: 1.5rem;
  19. }
  20. }
  21. // == Colors
  22. .grw-sidebar-nav :global {
  23. }
  24. @include bs.color-mode(light) {
  25. .grw-sidebar-nav :global {
  26. background-color: var(--grw-sidebar-nav-bg, var(--grw-highlight-100));
  27. }
  28. }
  29. @include bs.color-mode(dark) {
  30. .grw-sidebar-nav :global {
  31. background-color: var(--grw-sidebar-nav-bg, var(--grw-highlight-800));
  32. }
  33. }