SearchResultLayout.module.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. @use '~/styles/variables' as var;
  2. @use '~/styles/bootstrap/init' as bs;
  3. .on-search :global {
  4. .page-wrapper {
  5. padding-bottom: unset;
  6. }
  7. .search-control-include-options {
  8. .card-body {
  9. padding: 5px 10px;
  10. }
  11. }
  12. .search-result-list {
  13. .search-result-list-scroll {
  14. // subtract the height of GrowiNavbar + (SearchControl component + other factors)
  15. height: calc(100vh - ((var.$grw-navbar-height + var.$grw-navbar-border-width) + 110px));
  16. overflow-y: scroll;
  17. @include bs.media-breakpoint-down(sm) {
  18. height: calc(100vh - ((var.$grw-navbar-height + var.$grw-navbar-border-width + var.$grw-navbar-bottom-height) + 123px));
  19. }
  20. }
  21. .search-result-keyword {
  22. font-size: 17.5px;
  23. font-weight: bold;
  24. }
  25. .search-result-select-group {
  26. > select {
  27. max-width: 8rem;
  28. }
  29. }
  30. // list group
  31. .page-list {
  32. // not show top label in search result list
  33. .page-list-meta {
  34. .top-label {
  35. display: none;
  36. }
  37. }
  38. }
  39. }
  40. .search-result-content {
  41. .search-result-content-nav {
  42. min-height: var.$grw-subnav-search-preview-min-height;
  43. overflow: auto;
  44. .grw-subnav {
  45. min-height: inherit;
  46. }
  47. }
  48. .search-result-content {
  49. height: calc(100vh - (var.$grw-navbar-height + var.$grw-navbar-border-width));
  50. > h2 {
  51. margin-right: 10px;
  52. font-size: 22px;
  53. line-height: 1em;
  54. }
  55. &:first-child > h2 {
  56. margin-top: 0;
  57. }
  58. .search-result-content-body-container {
  59. // correct apply overflow scrolling for react-markdown on Google Chrome
  60. // see: https://github.com/weseek/growi/pull/6731
  61. position: relative;
  62. overflow-y: auto;
  63. .wiki {
  64. padding: 16px;
  65. font-size: 13px;
  66. }
  67. }
  68. }
  69. }
  70. }
  71. // style to apply when displaying search page
  72. .on-search :global {
  73. // set sidebar height shown in search page
  74. $search-page-sidebar-height: calc(100vh - (var.$grw-navbar-height + var.$grw-navbar-border-width));
  75. .grw-sidebar {
  76. height: $search-page-sidebar-height;
  77. .data-layout-container {
  78. height: 100%;
  79. }
  80. }
  81. }