_layout.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. @use '@growi/core-styles/scss/bootstrap/init' as bs;
  2. @use './variables' as var;
  3. body {
  4. min-height: 100vh;
  5. }
  6. .dynamic-layout-root {
  7. @extend .flex-expand-vert;
  8. }
  9. .grw-bg-image-wrapper {
  10. position: fixed;
  11. width: 100%;
  12. height: 100%;
  13. img {
  14. object-fit: cover;
  15. object-position: bottom;
  16. }
  17. }
  18. .grw-scrollable-modal-body {
  19. max-height: calc(100vh - 330px);
  20. overflow-y: scroll;
  21. }
  22. .page-wrapper {
  23. display: flex;
  24. flex-direction: column;
  25. }
  26. // padding settings for GrowiNavbarBottom
  27. .page-wrapper {
  28. padding-bottom: var.$grw-navbar-bottom-height;
  29. @include bs.media-breakpoint-up(md) {
  30. padding-bottom: unset;
  31. }
  32. }
  33. .main {
  34. margin-top: 1rem;
  35. @include bs.media-breakpoint-up(lg) {
  36. margin-top: 2rem;
  37. }
  38. }
  39. // md/lg layout padding
  40. .ps-sidebar {
  41. @include bs.media-breakpoint-between(md, xl) {
  42. padding-left: var.$grw-sidebar-nav-width;
  43. }
  44. }
  45. .wide-gutter-x-lg {
  46. @include bs.media-breakpoint-up(lg) {
  47. &,
  48. .container,
  49. .container-fluid,
  50. .container-xxl,
  51. .container-xl,
  52. .container-lg {
  53. --bs-gutter-x: 3rem;
  54. }
  55. }
  56. // set to double value to allow space for .revision-head-link
  57. @include bs.media-breakpoint-up(xl) {
  58. &,
  59. .container,
  60. .container-fluid,
  61. .container-xxl,
  62. .container-xl,
  63. .container-lg {
  64. padding-left: calc(var(--bs-gutter-x) * 1);
  65. }
  66. }
  67. }
  68. // printable style
  69. @media print {
  70. body {
  71. padding: 30px;
  72. }
  73. a::after {
  74. display: none !important;
  75. }
  76. .main {
  77. header {
  78. border-bottom: solid 1px bs.$secondary;
  79. h1 {
  80. font-size: 2em;
  81. color: black;
  82. }
  83. }
  84. .row {
  85. display: block !important;
  86. }
  87. .meta {
  88. margin-top: 32px;
  89. color: bs.$secondary;
  90. border-top: solid 1px bs.$gray-300;
  91. }
  92. }
  93. }