_layout.scss 2.1 KB

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