_layout.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. @use './variables' as var;
  2. @use './bootstrap/init' as bs;
  3. body {
  4. overflow-y: scroll !important;
  5. overscroll-behavior-y: none;
  6. }
  7. .dynamic-layout-root:not(.growi-layout-fluid) .grw-container-convertible {
  8. @extend .container-lg;
  9. }
  10. .dynamic-layout-root.growi-layout-fluid .grw-container-convertible {
  11. @extend .container-fluid;
  12. }
  13. .grw-bg-image-wrapper {
  14. position: fixed;
  15. width: 100%;
  16. height: 100%;
  17. img {
  18. object-fit: cover;
  19. object-position: bottom;
  20. }
  21. }
  22. body.not-found-page .grw-container-convertible {
  23. @extend .container-lg;
  24. }
  25. .grw-modal-head {
  26. border-bottom: 1px solid transparent;
  27. }
  28. .grw-scrollable-modal-body {
  29. max-height: calc(100vh - 330px);
  30. overflow-y: scroll;
  31. }
  32. // padding settings for GrowiNavbarBottom
  33. .page-wrapper {
  34. padding-bottom: var.$grw-navbar-bottom-height;
  35. @include bs.media-breakpoint-up(md) {
  36. padding-bottom: unset;
  37. }
  38. }
  39. .main {
  40. margin-top: 1rem;
  41. @include bs.media-breakpoint-up(lg) {
  42. margin-top: 2rem;
  43. }
  44. }
  45. .grw-side-contents-container {
  46. margin-bottom: 1rem;
  47. @include bs.media-breakpoint-up(lg) {
  48. width: 250px;
  49. min-width: 250px;
  50. margin-left: 30px;
  51. }
  52. }
  53. .grw-side-contents-sticky-container {
  54. position: sticky;
  55. // growisubnavigation + grw-navbar-boder + some spacing
  56. top: calc(100px + 4px + 20px);
  57. }
  58. // printable style
  59. @media print {
  60. body {
  61. padding: 30px;
  62. }
  63. a:after {
  64. display: none !important;
  65. }
  66. .main {
  67. header {
  68. border-bottom: solid 1px bs.$secondary;
  69. h1 {
  70. font-size: 2em;
  71. color: black;
  72. }
  73. }
  74. .row {
  75. display: block !important;
  76. }
  77. .meta {
  78. margin-top: 32px;
  79. color: bs.$secondary;
  80. border-top: solid 1px bs.$gray-300;
  81. }
  82. }
  83. }