PageViewLayout.module.scss 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @use '@growi/core-styles/scss/bootstrap/init' as bs;
  2. @use '~/styles/mixins';
  3. @use '~/styles/variables' as var;
  4. $subnavigation-height: 50px;
  5. $page-view-layout-margin-top: 32px;
  6. .page-view-layout :global {
  7. $page-content-footer-min-heigh: 130px;
  8. min-height: calc(100vh - #{$subnavigation-height + $page-view-layout-margin-top + $page-content-footer-min-heigh});
  9. }
  10. // fluid layout
  11. .fluid-layout :global {
  12. .grw-container-convertible {
  13. @include mixins.fluid-layout();
  14. }
  15. }
  16. .page-view-layout :global {
  17. .grw-side-contents-container {
  18. margin-bottom: 1rem;
  19. @include bs.media-breakpoint-up(lg) {
  20. width: 250px;
  21. min-width: 250px;
  22. margin-left: 30px;
  23. }
  24. @include bs.media-breakpoint-down(sm) {
  25. position: fixed;
  26. right: 1rem;
  27. }
  28. }
  29. }
  30. // sticky side contents
  31. .page-view-layout :global {
  32. .grw-side-contents-sticky-container {
  33. position: sticky;
  34. $page-path-nav-height: 99px;
  35. top: calc($subnavigation-height + $page-view-layout-margin-top + $page-path-nav-height + 4px);
  36. }
  37. }