_layout.scss 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. @use './variables' as var;
  2. @use './bootstrap/init' as bs;
  3. .dynamic-layout-root:not(.growi-layout-fluid) .grw-container-convertible {
  4. @extend .container-lg;
  5. }
  6. .dynamic-layout-root.growi-layout-fluid .grw-container-convertible {
  7. @extend .container-fluid;
  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. body.not-found-page .grw-container-convertible {
  19. @extend .container-lg;
  20. }
  21. .grw-modal-head {
  22. border-bottom: 1px solid transparent;
  23. }
  24. .grw-scrollable-modal-body {
  25. max-height: calc(100vh - 330px);
  26. overflow-y: scroll;
  27. }
  28. // padding settings for GrowiNavbarBottom
  29. .page-wrapper {
  30. padding-bottom: var.$grw-navbar-bottom-height;
  31. @include bs.media-breakpoint-up(md) {
  32. padding-bottom: unset;
  33. }
  34. }
  35. .main {
  36. margin-top: 1rem;
  37. @include bs.media-breakpoint-up(lg) {
  38. margin-top: 2rem;
  39. }
  40. }
  41. .grw-side-contents-container {
  42. margin-bottom: 1rem;
  43. @include bs.media-breakpoint-up(lg) {
  44. width: 250px;
  45. min-width: 250px;
  46. margin-left: 30px;
  47. }
  48. }
  49. .grw-side-contents-sticky-container {
  50. position: sticky;
  51. // growisubnavigation + grw-navbar-boder + some spacing
  52. top: calc(100px + 4px + 20px);
  53. }
  54. // printable style
  55. @media print {
  56. body {
  57. padding: 30px;
  58. }
  59. a:after {
  60. display: none !important;
  61. }
  62. .main {
  63. header {
  64. border-bottom: solid 1px bs.$secondary;
  65. h1 {
  66. font-size: 2em;
  67. color: black;
  68. }
  69. }
  70. .row {
  71. display: block !important;
  72. }
  73. .meta {
  74. margin-top: 32px;
  75. color: bs.$secondary;
  76. border-top: solid 1px bs.$gray-300;
  77. }
  78. }
  79. }