_layout.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. font-size: 1em;
  27. border-bottom: 1px solid transparent;
  28. }
  29. .grw-scrollable-modal-body {
  30. max-height: calc(100vh - 330px);
  31. overflow-y: scroll;
  32. }
  33. // padding settings for GrowiNavbarBottom
  34. .page-wrapper {
  35. padding-bottom: var.$grw-navbar-bottom-height;
  36. @include bs.media-breakpoint-up(md) {
  37. padding-bottom: unset;
  38. }
  39. }
  40. .main {
  41. margin-top: 1rem;
  42. @include bs.media-breakpoint-up(lg) {
  43. margin-top: 2rem;
  44. }
  45. }
  46. .grw-side-contents-container {
  47. margin-bottom: 1rem;
  48. @include bs.media-breakpoint-up(lg) {
  49. width: 250px;
  50. min-width: 250px;
  51. margin-left: 30px;
  52. }
  53. }
  54. .grw-side-contents-sticky-container {
  55. position: sticky;
  56. // growisubnavigation + grw-navbar-boder + some spacing
  57. top: calc(100px + 4px + 20px);
  58. }
  59. .grw-fab {
  60. position: fixed;
  61. right: 1.5rem;
  62. bottom: 3rem;
  63. z-index: bs.$zindex-fixed;
  64. transition: all 200ms linear;
  65. .btn-create-page {
  66. width: 60px;
  67. height: 60px;
  68. font-size: 24px;
  69. box-shadow: 2px 3px 6px #0000005d;
  70. svg {
  71. width: 28px;
  72. height: 28px;
  73. }
  74. }
  75. .btn-scroll-to-top {
  76. width: 40px;
  77. height: 40px;
  78. opacity: 0.4;
  79. svg {
  80. width: 18px;
  81. height: 18px;
  82. }
  83. }
  84. }
  85. // printable style
  86. @media print {
  87. body {
  88. padding: 30px;
  89. }
  90. a:after {
  91. display: none !important;
  92. }
  93. .main {
  94. header {
  95. border-bottom: solid 1px bs.$secondary;
  96. h1 {
  97. font-size: 2em;
  98. color: black;
  99. }
  100. }
  101. .row {
  102. display: block !important;
  103. }
  104. .meta {
  105. margin-top: 32px;
  106. color: bs.$secondary;
  107. border-top: solid 1px bs.$gray-300;
  108. }
  109. }
  110. }