_layout.scss 1.4 KB

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