_layout.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. .layout-root:not(.growi-layout-fluid) .grw-container-convertible {
  8. @extend .container-lg;
  9. }
  10. .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. .grw-fab {
  59. position: fixed;
  60. right: 1.5rem;
  61. bottom: 3rem;
  62. z-index: bs.$zindex-fixed;
  63. transition: all 200ms linear;
  64. .btn-create-page {
  65. width: 60px;
  66. height: 60px;
  67. font-size: 24px;
  68. box-shadow: 2px 3px 6px #0000005d;
  69. svg {
  70. width: 28px;
  71. height: 28px;
  72. }
  73. }
  74. .btn-scroll-to-top {
  75. width: 40px;
  76. height: 40px;
  77. opacity: 0.4;
  78. svg {
  79. width: 18px;
  80. height: 18px;
  81. }
  82. }
  83. }
  84. // printable style
  85. @media print {
  86. body {
  87. padding: 30px;
  88. }
  89. a:after {
  90. display: none !important;
  91. }
  92. .main {
  93. header {
  94. border-bottom: solid 1px bs.$secondary;
  95. h1 {
  96. font-size: 2em;
  97. color: black;
  98. }
  99. }
  100. .row {
  101. display: block !important;
  102. }
  103. .meta {
  104. margin-top: 32px;
  105. color: bs.$secondary;
  106. border-top: solid 1px bs.$gray-300;
  107. }
  108. }
  109. }