_sidebar.scss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. .grw-sidebar {
  2. .ak-navigation-resize-button {
  3. top: calc(50vh - 20px);
  4. }
  5. // override @atlaskit/navigation-next styles
  6. div[data-testid='GlobalNavigation'] {
  7. width: $grw-sidebar-nav-width;
  8. }
  9. div[class$='-NavigationContainer'] {
  10. // Adjust to be on top of the growi subnavigation
  11. z-index: $zindex-sticky + 5;
  12. }
  13. .grw-global-item-container {
  14. i {
  15. font-size: 1.5em;
  16. }
  17. // icon opacity
  18. &:not(.active) {
  19. i {
  20. opacity: 0.4;
  21. }
  22. &:hover,
  23. &:focus {
  24. i {
  25. opacity: 0.7;
  26. }
  27. }
  28. }
  29. &.active {
  30. button {
  31. @extend %fukidashi-for-active;
  32. }
  33. }
  34. }
  35. }
  36. // Drawer Mode
  37. @include media-breakpoint-down(sm) {
  38. .grw-sidebar {
  39. position: fixed;
  40. z-index: $zindex-fixed - 2;
  41. // override @atlaskit/navigation-next styles
  42. div[class$='-Outer'],
  43. div[class$='-teprsg'] {
  44. display: none;
  45. }
  46. &:not(.open) {
  47. div[class$='-NavigationContainer'] {
  48. left: -#{$grw-sidebar-nav-width + $grw-sidebar-content-min-width};
  49. }
  50. }
  51. &.open {
  52. div[class$='-NavigationContainer'] {
  53. left: 0;
  54. }
  55. }
  56. div[class$='-NavigationContainer'] {
  57. transition: left 300ms cubic-bezier(0.25, 1, 0.5, 1);
  58. }
  59. }
  60. .grw-sidebar-backdrop.modal-backdrop {
  61. z-index: $zindex-fixed - 4;
  62. }
  63. }
  64. .grw-sidebar-header-container {
  65. padding: 10px;
  66. h3 {
  67. margin-bottom: 0;
  68. }
  69. }
  70. .grw-sidebar-content-container {
  71. }