_layout.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. .grw-side-contents-container {
  52. margin-bottom: 1rem;
  53. @include bs.media-breakpoint-up(lg) {
  54. width: 250px;
  55. min-width: 250px;
  56. margin-left: 30px;
  57. }
  58. }
  59. .grw-side-contents-sticky-container {
  60. position: sticky;
  61. // growisubnavigation + grw-navbar-boder + some spacing
  62. top: calc(100px + 4px + 20px);
  63. }
  64. // printable style
  65. @media print {
  66. body {
  67. padding: 30px;
  68. }
  69. a:after {
  70. display: none !important;
  71. }
  72. .main {
  73. header {
  74. border-bottom: solid 1px bs.$secondary;
  75. h1 {
  76. font-size: 2em;
  77. color: black;
  78. }
  79. }
  80. .row {
  81. display: block !important;
  82. }
  83. .meta {
  84. margin-top: 32px;
  85. color: bs.$secondary;
  86. border-top: solid 1px bs.$gray-300;
  87. }
  88. }
  89. }